Whamcloud - gitweb
LU-17306 ofd: return error for reconnection
authorAlexander Boyko <alexander.boyko@hpe.com>
Thu, 16 Nov 2023 22:57:24 +0000 (17:57 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 12 Dec 2023 05:38:47 +0000 (05:38 +0000)
commit53d323fbde29cf228c353784de272bbc99fcca33
tree52ccee0b1610b69b42f081e5c7eaad53e4e56701
parent2cf3b1e972b1d5e37478f1739b3dfde381b6bfc4
LU-17306 ofd: return error for reconnection

During the cleanup orphan phase, reconnection leads to unsynchronized
last id between MDT and OST. This means that MDT could assign non
existing objects to a client for a file create operation.

ofd_create_hdl()) capstor-OST0087: dropping old orphan cleanup request
MDS LAST_ID [0x2540000400:0xb6941:0x0] (747841) is 352 behind OST
    LAST_ID [0x2540000400:0xb6aa1:0x0] (748193), trust the OST

recovery-small 144c reproduce bug where MDT lost synchronization
with OST.

Lustre-change: https://review.whamcloud.com/53195
Lustre-commit: TBD (from 1f0deff150a3087a974adbac687a5019f6c0e39d)

Fixes: 63e17799a3 ("LU-8367 osp: enable replay for precreation request")
HPE-bug-id: LUS-11969
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: I22c3d3b3db2acc9ad8f1b978b234afe7d3eef51d
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53341
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/obd_support.h
lustre/ofd/ofd_dev.c
lustre/tests/recovery-small.sh