1996fanrui opened a new pull request, #30132:
URL: https://github.com/apache/flink/pull/30132

   ## What is the purpose of the change
   
   Backport of #29840 to release-1.20.
   
   ## Verifying this change
   
   - `./mvnw install -DskipTests -Dfast -Pskip-webui-build -pl 
flink-python,flink-dist -am` (JDK 11): `BUILD SUCCESS`, to provide the Flink 
distribution and test jars the PyFlink tests use.
   - `python -m pytest pyflink/datastream/formats/tests/test_avro.py` in 
`flink-python` (Python 3.11, JDK 11), repeated 5 times: `10 passed` every run, 
covering all 5 `FileSinkAvroWritersTests` and all 5 
`FileSourceAvroInputFormatTests`.
   - Same test file with only the 
`.with_bucket_assigner(BucketAssigner.base_path_bucket_assigner())` call 
removed (the new `glob` kept): 
`FileSinkAvroWritersTests::test_avro_basic_write` fails with 
`IsADirectoryError: ... /2026-11-25--21`. This shows that on release-1.20 the 
sink still writes into an hourly bucket directory by default, and that the 
backported assigner puts the part files directly under the base path.
   - `flake8==7.2.0 --config=tox.ini 
pyflink/datastream/formats/tests/test_avro.py`: no findings.
   - `./mvnw -q -pl flink-python spotless:check checkstyle:check` (JDK 11): 
passed.
   
   ## Difference from the original
   
   | Original commit | Conflict | Byte-identical | Changes |
   | --- | --- | --- | --- |
   | 1b7ba60488f | No | Yes | None |
   
   ## Notes
   
   - Cherry-picked from the release-2.3 commit 1b7ba60488f, which is 
byte-identical to the master commit 9a9ce1b84b2 of #29840.
   - The Jira's fix versions list only 2.3.2 and 2.4.0. This is a test-only 
fix, and `test_avro.py` on release-1.20 is identical to the pre-fix file on 
release-2.3, so the same hour-boundary flakiness applies here.
   - The hour-boundary race itself was not reproduced; the verification shows 
the fix's mechanism on this branch.
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code 2.1.332 (Claude Opus 5.5)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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