Repository navigation
Conversation
The ignorer only knows absolute paths, but the cephfs watcher passed it the path from the event, which is relative to the watch root, and for moves the empty path. So only lock files were ever ignored. Since the MDS change notifier does not filter anything, every write to the metadata, tmp, upload and trash dirs triggered a scan. We now make each path absolute first and check the source and destination of a move separately, like the inotify watcher does: a move from the tmp dir only scans the destination, a move into an ignored dir only the source. Events were scanned in one goroutine each, which threw away the order the MDS keeps per rank and raced on the shared err variable. We now scan them in the order they arrive. Scan mostly just debounces, deletes and moves have to happen before later events for the same path anyway. The kafka reader could only talk to plaintext brokers. The new kafkawatcher options configure TLS and SASL (PLAIN, SCRAM-SHA-256, SCRAM-SHA-512). related: ceph/ceph#72437 Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic
marked this pull request as draft
November 2, 2026 12:21
Member
Author
|
Two things this PR does not address:
|
5 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While checking out ceph/ceph#72437 I revisited oure cephfs watcher implementation.
The cephfs watcher passed the event path to the ignorer as-is, but the path is relative to the watch root and the ignorer only knows absolute paths. For moves it even passed the empty path. So only lock files were ever ignored. Since the MDS change notifier in ceph/ceph#72437 does not filter anything, every write to the metadata, tmp, upload and trash dirs triggered a scan. We now make the paths absolute first and check both ends of a move separately, like the inotify watcher does.
Events were scanned in one goroutine each, which threw away the per-rank order the MDS keeps and raced on a shared
err. We now scan them in the order they arrive.The kafka reader could only talk to plaintext brokers. The new
kafkawatcheroptions configure TLS and SASL:opencloud still needs to pass these options through to the storage-users config. The gpfswatchfolder watcher has the same relative-path ignore bug, I left it alone for now.
Assisted by Claude Code (claude-opus-5-5): it reviewed the watcher against the ceph PR's wire format and wrote the change, the tests and this description.