baeminbo opened a new issue, #32892: URL: https://github.com/apache/beam/issues/32892
### What happened? [The pipeline with MapState](https://github.com/baeminbo/dataflow-pipelines/blob/master/multimap-timer/src/main/java/baeminbo/MapStatePipeline.java) was tested in Dataflow Java legacy runner without Streaming Engine. The pipeline tests "clear", "put" and "remove" with a `MapState`. But, the job was stuck with a protobuf error thrown in `WorkItemCommitRequest` build when a key is removed from the `MapState`. The work was retried locally but hit the error indefinitely. I believe this is because [WindmillMap.persistDirect()]( https://github.com/apache/beam/blob/v2.60.0/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/state/WindmillMap.java#L140-L145) doesn't set any value to `Value.data` while it's a required field in [windmill.proto](https://github.com/apache/beam/blob/v2.60.0/runners/google-cloud-dataflow-java/worker/windmill/src/main/proto/windmill.proto#L208-L211). It should set an empty data to delete a value state. See [WindmillValue.peristDirect()](https://github.com/apache/beam/blob/v2.60.0/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/state/WindmillValue.java#L122-L126).   ### 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 - [X] 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]
