Skip to content

Conversation

@lxbsz
Copy link
Collaborator

@lxbsz lxbsz commented Apr 16, 2019

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]

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
Copy link
Collaborator Author

lxbsz commented Apr 16, 2019

@pkalever @amarts
Please help review, thanks.

@mikechristie
Copy link
Collaborator

Patch looks sane to me. Let me know when you guys have reviewed and I will merge it.

@lxbsz
Copy link
Collaborator Author

lxbsz commented Apr 18, 2019

Patch looks sane to me. Let me know when you guys have reviewed and I will merge it.

Hi Mike,
This is hack code, we have raise one bug in Gluster, let's wait for days.
More detail please see: gluster/gluster-block#209

Thanks.

@lxbsz lxbsz changed the base branch from master to main August 10, 2022 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to delete the blocks due to the data couldn't flushed in time

2 participants