[
https://issues.apache.org/jira/browse/FLINK-41044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18129415#comment-18129415
]
Sangkyoon Nam commented on FLINK-41044:
---------------------------------------
[~martijnvisser], I opened https://github.com/apache/flink/pull/29538 for a
shutdown race that can drop the Python worker's last log entries, which would
explain the missing messages here. The runner closes the logging server before
the control server, but the Python harness drains its remaining log queue after
the control stream ends.
The PR closes control first and waits up to 1 s per environment for the logging
stream to end. The new test fails without the change and passes with it. It can
be backported to release-2.3 with that branch's Beam imports. Could you assign
this to me?
> CommonDataStreamTests.test_logging_msg fails with external log debug-level
> msg not found
> ----------------------------------------------------------------------------------------
>
> Key: FLINK-41044
> URL: https://issues.apache.org/jira/browse/FLINK-41044
> Project: Flink
> Issue Type: Bug
> Components: API / Python
> Affects Versions: 2.3.1
> Reporter: Martijn Visser
> Priority: Major
> Labels: pull-request-available, test-stability
>
> https://github.com/apache/flink/actions/runs/38195297569/job/114649502402
> (release-2.3 nightly 2026-10-12, Java 21, python)
> {code}
> if not find_root_debug_level_msg:
> > raise Exception('external log debug-level msg not found')
> E Exception: external log debug-level msg not found
> pyflink/datastream/tests/test_data_stream.py:1792: Exception
> FAILED
> pyflink/datastream/tests/test_data_stream.py::CommonDataStreamTests::test_logging_msg
> - Exception: external log debug-level msg not found
> ====== 1 failed, 286 passed, 59 skipped, 13 warnings in 307.17s (0:05:07)
> ======
> {code}
> The test came with FLINK-38690. It passed in the other python legs of the
> same nightly and has not failed on master in the last eleven days.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)