F64116045 commented on code in PR #11199:
URL: https://github.com/apache/ozone/pull/11199#discussion_r3971359944
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ReplicationManager.java:
##########
@@ -367,6 +372,8 @@ public synchronized void processAll() {
ReplicationManagerReport report = new ReplicationManagerReport(
rmConf.getContainerSampleLimit());
ReplicationQueue newRepQueue = new ReplicationQueue();
+ checksumMismatchCheckHandler.startScan();
Review Comment:
~~I was thinking about whether to remove this scan lifecycle.~~
~~Now that the debounce is gone, `handle()` could write the mismatch
directly to `ReplicationManagerReport`, so these methods are no longer needed
for detection.~~
~~But if we remove it, SCM would calculate the mismatch again when the CLI
calls the RPC instead of returning the last full-scan result. The same warning
would also be logged on every scan unless we keep separate state for it.~~
Update: Thinking about this a bit more, I’m leaning toward removing the
lifecycle. The RPC already reads the current replicas for the CLI, so
calculating the mismatch from the same data seems clearer than returning a
cached result from the last scan. `handle()` can also write directly to the
report like the other health handlers, while warning deduplication can remain
separate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]