Whamcloud - gitweb
LU-17306 ofd: return error for reconnection 95/53195/2
authorAlexander Boyko <alexander.boyko@hpe.com>
Thu, 16 Nov 2023 22:57:24 +0000 (17:57 -0500)
committerAlexander Boyko <alexander.boyko@hpe.com>
Thu, 16 Nov 2023 23:08:14 +0000 (18:08 -0500)
commit1f0deff150a3087a974adbac687a5019f6c0e39d
tree7131c7dc539b006a725f066420f109946bead67d
parent1bb972b8bf86accb5e53f0a35e64c89e5908a889
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.

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
lustre/include/obd_support.h
lustre/ofd/ofd_dev.c
lustre/tests/recovery-small.sh