steveniemitz commented on code in PR #17802:
URL: https://github.com/apache/beam/pull/17802#discussion_r891563773


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/util/common/worker/ByteArrayShufflePosition.java:
##########
@@ -58,15 +65,15 @@ public static byte[] getPosition(@Nullable ShufflePosition 
shufflePosition) {
     }
     Preconditions.checkArgument(shufflePosition instanceof 
ByteArrayShufflePosition);
     ByteArrayShufflePosition adapter = (ByteArrayShufflePosition) 
shufflePosition;
-    return adapter.getPosition();
+    return adapter.getPosition().toByteArray();

Review Comment:
   this and all the ones below you commented on seem to only be used in unit 
tests, so I didn't put a lot of effort into optimizing them.



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