baeminbo opened a new issue, #32727:
URL: https://github.com/apache/beam/issues/32727

   ### What happened?
   
   The pipeline [1] has a `DoFn` to set a processing time timer in 30 seconds 
for each input element and add the input value to a bag state. The source 
generates an element every second, and the window size is 60s with 20s lateness 
allowed. 
   
   In a test with Dataflow Java Legacy Runner, I expected the processing timer 
wouldn't be fired since the window was closed after the late element arrived. 
But, actually, the processing timer was fired and the state was **empty**.
   
   
![AdyeWWofQq3z3b7](https://github.com/user-attachments/assets/a3f00778-1f6c-4cf1-b610-361dade17601)
   
![B63TUQhPxNgGi23](https://github.com/user-attachments/assets/6672f235-5f1a-4de7-8775-ccd64894fddf)
   
   I believe the timers should be cleaned up, the same as states are cleaned 
up. 
   
   FYI. This issue also happens in Runner v2. b/366283709
   
   [1] https://gist.github.com/baeminbo/84220c9a7aa593e6bb480802afcf286c
   
   
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [X] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


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