lukecwik commented on a change in pull request #12578:
URL: https://github.com/apache/beam/pull/12578#discussion_r474844750



##########
File path: 
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingDataflowWorker.java
##########
@@ -2205,20 +2238,18 @@ public void completeWork(ByteString key, long 
workToken) {
           throw new NullPointerException(
               String.format(
                   "No active state for key %s, expected token %s",
-                  TextFormat.escapeBytes(key), workToken));
+                  shardedKey.toString(), workToken));
         }
         if (completedWork.getWorkItem().getWorkToken() != workToken) {
           throw new IllegalStateException(
               String.format(
                   "Token mismatch for key %s: %s and %s",
-                  TextFormat.escapeBytes(key),
-                  completedWork.getWorkItem().getWorkToken(),
-                  workToken));
+                  shardedKey.toString(), 
completedWork.getWorkItem().getWorkToken(), workToken));

Review comment:
       ```suggestion
                     shardedKey, completedWork.getWorkItem().getWorkToken(), 
workToken));
   ```




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

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


Reply via email to