Apache Flink 1.20.6 Release Announcement
December 5, 2026 - Rui FanThe Apache Flink Community is pleased to announce the sixth bug fix release of the Flink 1.20 series.
This release fixes 56 issues in Flink 1.20, including a log4j upgrade for CVE-2025-68161 (FLINK-39146), redaction of sensitive configuration values in SQL Gateway responses (FLINK-40539), watermark fixes for inputs that become active again after idleness (FLINK-40475), correct CAST results for timestamps before 1970 (FLINK-41280), and a fix for batch sorts that could emit unsorted rows (FLINK-40959). The list below excludes test-only, CI and build, documentation-only, and release-tooling changes; for a complete list of all changes see JIRA.
We highly recommend all users upgrade to Flink 1.20.6.
Release Artifacts #
Maven Dependencies #
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>1.20.6</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java</artifactId>
<version>1.20.6</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<version>1.20.6</version>
</dependency>
Binaries #
You can find the binaries on the updated Downloads page.
Docker Images #
- library/flink (official images)
- apache/flink (ASF repository)
PyPi #
Release Notes #
Bug #
- FLINK-18476 - PyFlink reports a Python process that exits quickly with status 0 as failed to start
- FLINK-23758 - PyFlink expression inversion (
~) has wrong semantics for NULL values - FLINK-25802 - OVER window queries fail in batch mode
- FLINK-30499 - Batch OVER window operators fail to compile because of wrong generated comparator code
- FLINK-32040 - PyFlink watermark strategies lose their timestamp assigner after
with_idleness()orwith_watermark_alignment(), so records carry no timestamps - FLINK-33123 - The autoscaler and the adaptive scheduler wrongly replace a FORWARD partitioner with REBALANCE after a parallelism change
- FLINK-33404 - A PyFlink job whose plain CoProcessFunction registers a timer fails when the timer fires, because the function has no
on_timer() - FLINK-34923 - PyFlink
Table.to_pandas()fails on results that contain nested rows, such as an ARRAY of ROW - FLINK-34985 - PyFlink thread mode does not support accessing Row fields by name in map functions
- FLINK-35661 - Group aggregations with mini-batch enabled can silently drop records when a bundle contains a key that has only retraction messages and no state
- FLINK-36146 - Sources can fail with a NoSuchElementException from SingleThreadFetcherManager
- FLINK-37663 - A thread synchronization issue in source split fetching can make sources unresponsive
- FLINK-38500 - PyFlink jobs using the thread mode cannot run consecutively on a session cluster on macOS
- FLINK-38558 - Rescaling and restoring from a checkpoint fails with the RocksDB state backend and heap timers
- FLINK-38574 - RocksDB incremental checkpoints may reuse re-uploaded SST files when a checkpoint notification is delayed
- FLINK-39146 - Upgrade log4j to 2.25.3 to fix CVE-2025-68161
- FLINK-39226 - Embedded (thread mode) Python operators fail with a ClassCastException on pemja PyIterator
- FLINK-39481 - A watermark deferred by interruptible timers is lost at end of input, dropping window results
- FLINK-39572 - PyFlink logs sensitive environment information when its Beam runner is closed
- FLINK-39720 - Correlated EXISTS subqueries with HAVING on aggregate outputs are planned incorrectly
- FLINK-39951 - PyFlink truncates the values of Python long arrays (typecode
l) to int when passing them to Java - FLINK-39984 - Thread dump requests can cause heartbeat timeouts and unnecessary JobManager/TaskManager failover
- FLINK-40003 - Listeners notified when a task finishes or fails now see its final IO metrics and accumulators instead of stale values
- FLINK-40143 - The web UI shows an incorrect restart strategy for jobs configured with restart-strategy options
- FLINK-40236 - PyFlink infers ARRAY
for a list whose first element is None - FLINK-40269 - Unaligned checkpoint restore may fail after rescale when a two-input task reads from the same upstream
- FLINK-40322 - PyFlink ArrayType and MultisetType fail to convert from SQL types
- FLINK-40335 - Hybrid shuffle index files can be corrupted by a ByteBuffer shared across result partitions
- FLINK-40475 - When all inputs of a multi-input task are idle, Flink now emits the maximum watermark across all inputs regardless of the order in which they became idle, and emits watermarks of inputs resuming from idleness promptly instead of stalling
- FLINK-40539 - The SQL Gateway shows sensitive configuration values in
SET;and session configuration responses - FLINK-40628 - PyFlink TTL initialization can hang task threads and leave jobs stuck in INITIALIZING
- FLINK-40657 - Source readers retain memory for every split fetcher ever created
- FLINK-40705 - PyFlink pandas UDFs fail on MAP inputs across Arrow batches
- FLINK-40780 - The new option
pipeline.forward-edge.parallelism-mismatch-modecan fail the job or keep the FORWARD edge instead of the default REBALANCE replacement, which corrupts changelog (upsert/retract) streams on a parallelism mismatch - FLINK-40904 - The FORWARD-to-REBALANCE downgrade compares the wrong parallelism and can miss a mismatch
- FLINK-40959 - Batch sort can emit unsorted rows when its generated comparator is large enough to be split
- FLINK-40986 - Equal named Rows can have different hash values in PyFlink
- FLINK-40997 - A regular join can pick a different state key for the same SQL when its input has several equally short upsert keys
- FLINK-41032 - PyFlink Table.to_pandas() loses column dtypes when the result is empty
- FLINK-41078 - A delayed resource requirements check or resource declaration in the slot manager that throws an exception no longer stops all later checks from being scheduled
- FLINK-41090 - Operator coordinators of vertices that were never initialized are not closed
- FLINK-41102 - PyFlink keyed state clear() is lost on key changes when python.state.cache-size is 0
- FLINK-41103 - PyFlink ValueState.update(None) fails instead of clearing the state
- FLINK-41104 - PyFlink MapState.contains() returns false for an existing key whose value is None
- FLINK-41106 - PyFlink MapState.put_all() fails because it iterates dictionary keys instead of key-value pairs
- FLINK-41108 - PyFlink returns stale TTL-enabled ListState values after session window merges
- FLINK-41196 - PyFlink pandas conversions and Python UDFs shift TIMESTAMP_LTZ values in non-UTC session time zones
- FLINK-41199 - PyFlink result collection fails for NULL values inside nested rows and collections
- FLINK-41228 - PyFlink thread-mode DataStream converters mishandle rows in arrays, lists, and maps
- FLINK-41271 - PyFlink tasks stay RUNNING after a Beam data RPC failure instead of failing
- FLINK-41280 - CAST of a TIMESTAMP before 1970 to DATE, TIME, or a lower TIMESTAMP precision now rounds down instead of toward 1970, which changes results for such values, also in restored compiled plans
- FLINK-41291 - Upgrade snappy-java to 1.1.10.12 for its security fixes
- FLINK-41307 - PyFlink
TableResult.collect()changes TIMESTAMP values that fall in a daylight saving time gap or are before 1902 - FLINK-41467 - The apache-flink PyPI package is missing the NOTICE file
- FLINK-41487 - The protobuf format fails to generate its serializer when the
write-null-string-literaloption contains a quote or a backslash - FLINK-41538 - The binary distribution and bundled jars such as flink-dist, flink-python, the file system plugins, and the SQL JDBC driver do not ship all licenses and notices of the third-party code bundled in Netty, conscrypt, and native libraries such as RocksDB