Abacn commented on code in PR #41867:
URL: https://github.com/apache/beam/pull/41867#discussion_r4775575726


##########
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/state/FnApiStateAccessor.java:
##########
@@ -517,7 +519,7 @@ public ReadableState<Boolean> readLater() {
 
                   @Override
                   public Iterable<T> read() {
-                    return impl.get();

Review Comment:
   Done. Note that map.entry() isn't yet wrapped due to that Beam doesn't have 
a standard Map.Entry coder registered



##########
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/state/StateBackedIterable.java:
##########
@@ -155,6 +155,9 @@ public boolean hasNext() {
     @Override
     public T next() {
       T value = wrappedIterator.next();
+      if (countObservers() == 0) {
+        return value;
+      }

Review Comment:
   moved allocation of observerProxy outside of create() (thus eliminated the 
obsolete method)



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