apache / apache/beam

FlinkStateInternals assumes that null value for accumulator means that the accumulator was never created

Open
#20,575 0 comments 0 reactions 0 assignees View on GitHub
bug flink P3 runners
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

FlinkStateInternals assumes that null value for accumulator means that the accumulator was never created. There are combiners which have non-null values returned by createAccumulator but null values after merging.

It would be good to have a ValidatesRunner test that covers an accumulator with a null final value and non-null initial value.

Code link:
https://github.com/apache/beam/blob/v2.24.0/runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/state/FlinkStateInternals.java#L507

Imported from Jira [BEAM-11063](https://issues.apache.org/jira/browse/BEAM-11063). Original Jira may contain additional context.
Reported by: lcwik.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.