File tree Expand file tree Collapse file tree
sdks/python/apache_beam/runners/worker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,14 +191,14 @@ def __init__(self,
191191 self .windowed_coder )
192192 ]
193193 self .splitting_lock = threading .Lock ()
194+ self .index = - 1
195+ self .stop = float ('inf' )
194196 self .started = False
195197
196198 def start (self ):
197199 # type: () -> None
198200 super (DataInputOperation , self ).start ()
199201 with self .splitting_lock :
200- self .index = - 1
201- self .stop = float ('inf' )
202202 self .started = True
203203
204204 def process (self , windowed_value ):
@@ -317,8 +317,15 @@ def is_valid_split_point(index):
317317 def finish (self ):
318318 # type: () -> None
319319 with self .splitting_lock :
320+ self .index += 1
320321 self .started = False
321322
323+ def reset (self ):
324+ # type: () -> None
325+ self .index = - 1
326+ self .stop = float ('inf' )
327+ super (DataInputOperation , self ).reset ()
328+
322329
323330class _StateBackedIterable (object ):
324331 def __init__ (self ,
You can’t perform that action at this time.
0 commit comments