Add fdatasync call to shard_save()
This increases the probability that data is flushed to the shard before we claim that it's ready for use.
This also includes a couple of semi-trivial changes to error messages and typing
Staging instance, all changes can be removed at any time
This increases the probability that data is flushed to the shard before we claim that it's ready for use.
This also includes a couple of semi-trivial changes to error messages and typing