tvalentyn commented on code in PR #31363:
URL: https://github.com/apache/beam/pull/31363#discussion_r1621198217


##########
sdks/python/apache_beam/runners/worker/data_plane.py:
##########
@@ -129,15 +128,19 @@ def create(
 class SizeBasedBufferingClosableOutputStream(ClosableOutputStream):
   """A size-based buffering OutputStream."""
 
+  _large_flush_last_observed_timestamp = 0.0
+
   def __init__(
       self,
       close_callback=None,  # type: Optional[Callable[[bytes], None]]
       flush_callback=None,  # type: Optional[Callable[[bytes], None]]
-      size_flush_threshold=_DEFAULT_SIZE_FLUSH_THRESHOLD  # type: int
+      size_flush_threshold=_DEFAULT_SIZE_FLUSH_THRESHOLD,  # type: int
+      large_buffer_warn_threshold_mib = 512  # type: int

Review Comment:
   ok, will send a follow up cleanup PR to make sure this catches the release



-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to