kfaraz commented on code in PR #19034:
URL: https://github.com/apache/druid/pull/19034#discussion_r2828908980


##########
server/src/main/java/org/apache/druid/metadata/IndexerSQLMetadataStorageCoordinator.java:
##########
@@ -2319,12 +2321,15 @@ protected SegmentPublishResult 
updateDataSourceMetadataInTransaction(
           + " end state[%s]. Try resetting the supervisor.",
           startMetadata, oldCommitMetadataFromDb
       );
-    }
-
-    if (!startMetadataMatchesExisting) {
-      // Not in the desired start state.
+    } else {
+      // startMetadata is older than committed metadata
+      // The task trying to publish is probably a replica trying to commit 
offsets already published by another task.
+      // OR the metadata has been updated manually
       return SegmentPublishResult.fail(
-          "Inconsistency between stored metadata state[%s] and target 
state[%s]. Try resetting the supervisor.",
+          "Stored metadata state[%s] has already been updated by other tasks 
and"
+          + " has diverged from the expected start metadata state[%s]."
+          + " This task will be replaced by the supervisor with a new task 
using updated start offsets."
+          + " Reset the supervisor if the issue persists.",

Review Comment:
   Thanks for calling this out. Yeah, I guess it's safer to continue with the 
gentler tone for the time being. 😛 



-- 
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]

Reply via email to