Project

General

Profile

Actions

Bug #65545

closed
LU LU

Quiesce may fail randomly with EBADF due to the same root submitted to the MDCache multiple times under the same quiesce request

Bug #65545: Quiesce may fail randomly with EBADF due to the same root submitted to the MDCache multiple times under the same quiesce request

Added by Leonid Usov over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Leonid Usov
Category:
-
Target version:
Due date:
% Done:

0%

Source:
Backport:
squid
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS, quiesce
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Reported by the QE team at https://bugzilla.redhat.com/show_bug.cgi?id=2275459

2024-04-17T07:26:33.666+0000 7fa0a7c0b640 10 quiesce.mgr.44189 <sanitize_roots> Normalized root '/volumes/_nogroup/sv_def_6/c37e6c79-a83a-4b1d-96e8-16584f440626' to 'file:/volumes/_nogroup/sv_def_6/c37e6c79-a83a-4b1d-96e8-16584f440626'
...
2024-04-17T07:26:33.666+0000 7fa0a840c640 10 quiesce.mds.0 <operator()> submit_request: value:file:/volumes/_nogroup/sv_def_6/c37e6c79-a83a-4b1d-96e8-16584f440626
2024-04-17T07:26:33.667+0000 7fa0a840c640 10 quiesce.agt <agent_thread_main> got request handle < mds.0:3431> for 'file:/volumes/_nogroup/sv_def_6/c37e6c79-a83a-4b1d-96e8-16584f440626'
...
2024-04-17T07:26:33.669+0000 7fa0a840c640 10 quiesce.mds.0 <operator()> submit_request: value:file:/volumes/_nogroup/sv_def_6/c37e6c79-a83a-4b1d-96e8-16584f440626
...
2024-04-17T07:26:33.670+0000 7fa0a840c640 10 quiesce.agt <agent_thread_main> got request handle < mds.0:3437> for 'file:/volumes/_nogroup/sv_def_6/c37e6c79-a83a-4b1d-96e8-16584f440626'
...
2024-04-17T07:26:33.674+0000 7fa0a7c0b640  5 quiesce.mgr.44189 <leader_upkeep_set> [cg_test1_p00@106,file:/volumes/_nogroup/sv_def_6/c37e6c79-a83a-4b1d-96e8-16584f440626] reported by at least one peer as: QS_FAILED (6)

This problem is due to a race condition that appears when multiple db updates are posted to the agent rapidly.
When new roots begin processing but don't yet make it into the currently tracked set, there is a window for the next update with the same roots to treat them as new.


Related issues 1 (0 open — 1 closed)

Copied to CephFS - Backport #65570: squid: Quiesce may fail randomly with EBADF due to the same root submitted to the MDCache multiple times under the same quiesce requestResolvedLeonid Usov

Actions

LU Updated by Leonid Usov over 2 years ago Actions #1

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 56956

LU Updated by Leonid Usov over 2 years ago Actions #2

  • Description updated (diff)

LU Updated by Leonid Usov over 2 years ago Actions #3

  • Component(FS) quiesce added

LU Updated by Leonid Usov over 2 years ago Actions #4

  • Description updated (diff)

LU Updated by Leonid Usov over 2 years ago Actions #5

  • Backport set to squid

LU Updated by Leonid Usov over 2 years ago Actions #6

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot over 2 years ago Actions #7

  • Copied to Backport #65570: squid: Quiesce may fail randomly with EBADF due to the same root submitted to the MDCache multiple times under the same quiesce request added

LU Updated by Leonid Usov over 2 years ago Actions #9

  • Component(FS) MDS added

LU Updated by Leonid Usov over 2 years ago Actions #10

  • Status changed from Pending Backport to Closed
Actions

Also available in: PDF Atom