You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "nirutgupta (via GitHub)" <gi...@apache.org> on 2026/01/18 19:32:57 UTC

Re: [PR] KAFKA-12525: Ignoring stale status statuses when reading from Connect status topic [kafka]

nirutgupta commented on code in PR #13453:
URL: https://github.com/apache/kafka/pull/13453#discussion_r2702667534


##########
connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java:
##########
@@ -596,7 +596,11 @@ private void readTaskStatus(String key, byte[] value) {
         synchronized (this) {
             log.trace("Received task {} status update {}", id, status);
             CacheEntry<TaskStatus> entry = getOrAdd(id);
-            entry.put(status);
+            if (entry.canWriteSafely(status)) {
+                entry.put(status);
+            } else {
+                log.trace("Ignoring stale status update {} for task {}", status, id);
+            }

Review Comment:
   @vamossagar12 @yashmayya Did we decide not to add this check for connector status? I have a customer facing an issue where the connector status transitions to UNASSIGNED after a rebalance, while the tasks continue to run fine.



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org