Skip to content

nfs: remove transfer from the door list if pool selection failed - #8251

Open
kofemann wants to merge 1 commit into
11.1from
remove-lost-mover-11.1
Open

kofemann wants to merge 1 commit into
11.1from
remove-lost-mover-11.1

Conversation

@kofemann

@kofemann kofemann commented Oct 9, 2026

Copy link
Copy Markdown
Member

Motivation:
As pNFS layouts are independent of file open, they are invalidated only when layout return is issued. The door logic creates a transfer, adds transfer into transfers list and then performs namespace lookup, pool selection and starting a mover. In cases, when pool selection fails due to stage protection or an attempt to overwrite, the layout get will return "permission deny", thus layout return will never be issued and transfer will stay in the door forever.

Modification:
Update layoutGet error handling such that on permission deny error pool less transfers will be removed. An unexpected conditions are logged.

Result:
orphan transfers like "WriteTransfer null@N/A," are removed when it's safe.

Acked-by: Marina Sahakyan
Target: master, 12.0, 11.2
Require-book: no
Require-notes: yes
(cherry picked from commit ecdd82e)

Motivation:
As pNFS layouts are independent of file open, they are invalidated only
when layout return is issued. The door logic creates a transfer, adds
transfer into transfers list and then performs namespace lookup, pool
selection and starting a mover. In cases, when pool selection fails due
to stage protection or an attempt to overwrite, the layout get will
return "permission deny", thus layout return will never be issued and
transfer will stay in the door forever.

Modification:
Update layoutGet error handling such that on permission deny error pool
less transfers will be removed. An unexpected conditions are logged.

Result:
orphan transfers like "WriteTransfer null@N/A," are removed when it's
safe.

Acked-by: Marina Sahakyan
Target: master, 12.0, 11.2
Require-book: no
Require-notes: yes
(cherry picked from commit ecdd82e)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
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.

1 participant