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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to