Abacn commented on PR #41867:
URL: https://github.com/apache/beam/pull/41867#issuecomment-7331874262

   The review comments is odd
   
   > This PR adds ElementByteSizeObservableIterable support to 
FnApiStateAccessor.CachingStateIterable,
   
   There is no CachingStateIterable under FnApiStateAccessor. The PR only 
touches `FnApiStateAccessor.bindBag().read()` and  
`StateBackedIterable.WrappedObservingIterator`
   
   > Relying solely on instanceof ElementByteSizeObservableIterable drops lazy 
byte-size observation and PrefetchableIterator delegation whenever 
StateBackedIterable is wrapped or not used.
   
   `FnApiStateAccessor.observeIterable` does not use instanceof at all — it 
unconditionally wraps `impl.get()` with  `WrappedObservingIterator` using 
elemCoder, so all 3 branches of  `BagUserState.get()` (oldValues, 
concat(oldValues, newValues), and limit(newValues)) are lazily observed.
   
   etc
   
   


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