Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glfs: retry 5 times to wait the meta data updated successfully
For the 'gluster-block modify' we can hit one issue in the same client with multi-precesses, here is the gluster-blockd and tcmu-runner. We do glfs_ftruncate in gluster-blockd to resize the volume file and then in tcmu-runner to check the size by using the glfs_lstat but get the old size, which hasn't been updated yet. But from the mountpoint's ls command, we can see that the size is already upated to new one. Here we will went to wait for most 5 seconds and retry 5 times to make sure the cache has been flushed successfully to the volume. Fixes: gluster/gluster-block#204 Signed-off-by: Xiubo Li <[email protected]>
- Loading branch information