Repository navigation
tools/cephfs_mirror: Fix dir sync hang - #68128
Conversation
joscollin
left a comment
There was a problem hiding this comment.
Otherwise, looks good to me
|
@joscollin I found an issue in checksum calculation when the directory is empty. I will be refreshing the PR in sometime |
368167d to
09e16c6
Compare
|
@joscollin Could you please review and test #67546 before this ? |
@kotreshhr |
Yes, I fixed it up (09e16c6) |
The snapshot mirror sync can hang if all of the following
are true.
1. The snapshot being synced contain only directories and
no files.
2. The crawler finishes syncing dirs and completes crawling
before datasync threads picks it up from syncm queue.
The above scenario can be achieved as below.
1. Configure say /d0 and /d1 for mirroring.
2. Create around 10k files in /d0
3. Create a single dir say /d1/dir0
4. snapshot /d0 and wait for status to change 'syncing'
5. Now, snapshot /d1.
The /d1 snapshot will be stuck in syncing, as datasync
thread's has_pending_work logic would never pick it up
as there are no files to be synced (i.e. dataq is empty
and crawl is finished which is essentially job done) and
never notifies crawler thread to proceed with taking
snapshot.
The fix is to pick up the syncm if the crawler is finished
and dataq is empty to avoid missing notification to the
crawler thread.
Fixes: https://tracker.ceph.com/issues/75804
Signed-off-by: Kotresh HR <[email protected]>
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
09e16c6 to
f9197b4
Compare
f9197b4 to
683ba28
Compare
|
rebased+updated @karthik-us1 @joscollin PTAL |
@vshankar Still there are two unresolved comments. Please check above. |
|
This PR is under test in https://tracker.ceph.com/issues/76232. |
@vshankar I don't this this is taken cared when this is rebased ? |
Probably I missed that and only fixed up pending comments. Please push an update. |
683ba28 to
3ea2d45
Compare
Done |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
tools/cephfs_mirror: Fix snapshot sync hang
The snapshot mirror sync can hang if all of the following
are true.
1. The snapshot being synced contain only directories and
no files.
2. The crawler finishes syncing dirs and completes crawling
before datasync threads picks it up from syncm queue.
The above scenario can be achieved as below.
The /d1 snapshot will be stuck in syncing, as datasync
thread's has_pending_work logic would never pick it up
as there are no files to be synced (i.e. dataq is empty
and crawl is finished which is essentially job done) and
never notifies crawler thread to proceed with taking
snapshot.
The fix is to pick up the syncm if the crawler is finished
and dataq is empty to avoid missing notification to the
crawler thread.
Fixes: https://tracker.ceph.com/issues/75804
Signed-off-by: Kotresh HR [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.