Hyukjin Kwon created SPARK-62328:
------------------------------------
Summary: Make
test_a_first_read_of_another_thread_during_the_text_format_finds_the_message
independent of the scheduling of the machine
Key: SPARK-62328
URL: https://issues.apache.org/jira/browse/SPARK-62328
Project: Spark
Issue Type: Bug
Components: Connect
Affects Versions: 5.0.0
Reporter: Hyukjin Kwon
Test-only. Master f30e373b's Python Connect Parity run 45372919906 failed in
its no-protobuf drop-in step with `AssertionError: {'ok': 0, 'errors': {}}` in
test_a_first_read_of_another_thread_during_the_text_format_finds_the_message
(SPARK-62272).
The test relies on the garbage collector's callbacks during the text format (of
an Any expansion that allocates objects) to hand the GIL to a reader thread for
0.2 ms. Since the native parse (SPARK-62266 on), those objects are not tracked
by the GC, so only one collection starts during the 100 formats; the reader
gets a single 0.2 ms window and can miss it under load. It does not reproduce
locally (15/15 with and without protobuf).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]