[BUG] In ten_utils_unit_test
, the RWLockTest.single_writer_multi_readers
test will seldomly hang
#200
Labels
bug
Something isn't working
Description
2024-10-24T14:58:51.4755520Z [----------] 9 tests from RWLockTest
2024-10-24T14:58:51.4756110Z [ RUN ] RWLockTest.no_writer_no_reader
2024-10-24T14:58:51.8527820Z [ OK ] RWLockTest.no_writer_no_reader (386 ms)
2024-10-24T14:58:51.8591890Z [ RUN ] RWLockTest.no_writer_single_reader
2024-10-24T14:58:51.9588780Z [ LOG ] [PhaseFair] [Reader] threads 000001; acquire 1083537 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 1083537, max 1083537, avg 1083537
2024-10-24T14:58:52.1277700Z [ LOG ] [ Native] [Reader] threads 000001; acquire 1485943 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 1485943, max 1485943, avg 1485943
2024-10-24T14:58:52.1280810Z [ OK ] RWLockTest.no_writer_single_reader (275 ms)
2024-10-24T14:58:52.1283860Z [ RUN ] RWLockTest.no_writer_multi_readers
2024-10-24T14:58:53.1329720Z [ LOG ] [PhaseFair] [Reader] threads 000050; acquire 8795389 times, min 000000000 us, max 000000945 us, avg 000000000 us; balance: min 033578, max 235816, avg 175907
2024-10-24T14:58:54.1876260Z [ LOG ] [ Native] [Reader] threads 000050; acquire 8458268 times, min 000000000 us, max 000000929 us, avg 000000000 us; balance: min 034077, max 237287, avg 169165
2024-10-24T14:58:54.1878970Z [ OK ] RWLockTest.no_writer_multi_readers (2060 ms)
2024-10-24T14:58:54.1880940Z [ RUN ] RWLockTest.single_writer_no_reader
2024-10-24T14:58:54.3794940Z [ LOG ] [PhaseFair] [Writer] threads 000001; acquire 1535261 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 1535261, max 1535261, avg 1535261
2024-10-24T14:58:54.5029460Z [ LOG ] [ Native] [Writer] threads 000001; acquire 1206255 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 1206255, max 1206255, avg 1206255
2024-10-24T14:58:54.5031870Z [ OK ] RWLockTest.single_writer_no_reader (315 ms)
2024-10-24T14:58:54.5037180Z [ RUN ] RWLockTest.multi_writers_no_reader
2024-10-24T14:58:54.7035930Z [ LOG ] [PhaseFair] [Writer] threads 000050; acquire 002217 times, min 000000000 us, max 000000007 us, avg 000000004 us; balance: min 000041, max 000159, avg 000044
2024-10-24T14:58:54.8081930Z [ LOG ] [ Native] [Writer] threads 000050; acquire 004628 times, min 000000000 us, max 000000003 us, avg 000000001 us; balance: min 000090, max 000198, avg 000092
2024-10-24T14:58:54.8084450Z [ OK ] RWLockTest.multi_writers_no_reader (305 ms)
2024-10-24T14:58:54.8086200Z [ RUN ] RWLockTest.single_writer_single_reader
2024-10-24T14:58:54.9303610Z [ LOG ] [PhaseFair] [Writer] threads 000001; acquire 373861 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 373861, max 373861, avg 373861
2024-10-24T14:58:54.9308040Z [ LOG ] [PhaseFair] [Reader] threads 000001; acquire 390006 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 390006, max 390006, avg 390006
2024-10-24T14:58:55.1304120Z [ LOG ] [ Native] [Writer] threads 000001; acquire 005269 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 005269, max 005269, avg 005269
2024-10-24T14:58:55.7303310Z [ LOG ] [ Native] [Reader] threads 000001; acquire 005783 times, min 000000000 us, max 000000001 us, avg 000000000 us; balance: min 005783, max 005783, avg 005783
2024-10-24T14:58:55.7317370Z [ OK ] RWLockTest.single_writer_single_reader (322 ms)
2024-10-24T14:58:55.7332100Z [ RUN ] RWLockTest.single_writer_multi_readers
2024-10-24T14:58:55.7343530Z [ LOG ] [PhaseFair] [Writer] threads 000001; acquire 000001 times, min 000000001 us, max 000000001 us, avg 000000001 us; balance: min 000001, max 000001, avg 000001
2024-10-24T14:58:55.7350040Z [ LOG ] [PhaseFair] [Reader] threads 000050; acquire 5384307 times, min 000000000 us, max 000000400 us, avg 000000000 us; balance: min 000000, max 313076, avg 107686
2024-10-24T20:39:17.9025440Z ##[error]The operation was canceled.
Environment
Mac x64 release
Steps to reproduce
Execute ten_utils_unit_test
Expected behavior
It can normally finish execution within one or two minutes.
Actual behavior
The
RWLockTest.single_writer_multi_readers
test hung for five to six hours, causing the CI test to fail.Version
main
Severity
Critical
Additional Information
No response
The text was updated successfully, but these errors were encountered: