diff options
author | Kotresh HR <khiremat@redhat.com> | 2019-06-13 16:23:21 +0530 |
---|---|---|
committer | hari gowtham <hari.gowtham005@gmail.com> | 2019-07-02 07:40:33 +0000 |
commit | b7b76714691d464b09a6363ccc2783080cb17ea2 (patch) | |
tree | 0bf78658d916422d903a0c859e76b9faacf3ded9 /extras/devel-tools/gdb_macros | |
parent | dbb0c4de0d9f3b6cc77649fe8cd683c171eb1c8e (diff) |
posix/ctime: Fix ctime upgrade issue
Problem:
On a EC volume, during upgrade from the older version where
ctime feature is not enabled(or not present) to the newer
version where the ctime feature is available (enabled default),
the self heal hangs and doesn't complete.
Cause:
The ctime feature has both client side code (utime) and
server side code (posix). The feature is driven from client.
Only if the client side sets the time in the frame, should
the server side sets the time attributes in xattr. But posix
setattr/fseattr was not doing that. When one of the server
nodes is updated, since ctime is enabled by default, it
starts setting xattr on setattr/fseattr on the updated node/brick.
On a EC volume the first two updated nodes(bricks) are not a
problem because there are 4 other bricks with consistent data.
However once the third brick is updated, the new attribute(mdata xattr)
will cause an inconsistency on metadata on 3 bricks, which
prevents the file to be repaired.
Fix:
Don't create mdata xattr with utimes/utimensat system call.
Only update if already present.
Backport of:
> Patch: https://review.gluster.org/22858
> Change-Id: Ieacedecb8a738bb437283ef3e0f042fd49dc4c8c
> BUG: 1720201
> Signed-off-by: Kotresh HR <khiremat@redhat.com>
Change-Id: Ieacedecb8a738bb437283ef3e0f042fd49dc4c8c
fixes: bz#1722805
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'extras/devel-tools/gdb_macros')
0 files changed, 0 insertions, 0 deletions