Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glfs: retry 5 times to wait the meta data updated successfully #546

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 16, 2019

  1. 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]>
    lxbsz committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    e0bad03 View commit details
    Browse the repository at this point in the history