Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test TaskManagerTest.tableScanMultipleTasks in CI #24215

Open
zuyu opened this issue Dec 6, 2024 · 2 comments
Open

Flaky test TaskManagerTest.tableScanMultipleTasks in CI #24215

zuyu opened this issue Dec 6, 2024 · 2 comments
Labels

Comments

@zuyu
Copy link
Contributor

zuyu commented Dec 6, 2024

Encountered after #24185 was merged

https://app.circleci.com/pipelines/github/prestodb/presto/23045/workflows/853ec3ce-506a-4667-be25-e241e19ccc1b/jobs/95695

[ RUN      ] TaskManagerTest/TaskManagerTest.tableScanMultipleTasks/0
E20241206 15:53:06.054704  9818 Exceptions.h:66] Line: /root/project/presto-native-execution/velox/velox/common/memory/SharedArbitrator.cpp:308, Function:shutdown, Expression: participants_.size() == 0 (1 vs. 0) Unexpected alive participants on destruction, Source: RUNTIME, ErrorCode: INVALID_STATE
terminate called after throwing an instance of 'facebook::velox::VeloxRuntimeError'
  what():  Exception: VeloxRuntimeError
Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: (1 vs. 0) Unexpected alive participants on destruction
Retriable: False
Expression: participants_.size() == 0
Function: shutdown
File: /root/project/presto-native-execution/velox/velox/common/memory/SharedArbitrator.cpp
Line: 308
Stack trace:
# 0  _ZN8facebook5velox7process10StackTraceC1Ei
# 1  _ZN8facebook5velox14VeloxException5State4makeIZNS1_C4EPKcmS5_St17basic_string_viewIcSt11char_traitsIcEES9_S9_S9_bNS1_4TypeES9_EUlRT_E_EESt10shared_ptrIKS2_ESA_SB_
# 2  _ZN8facebook5velox14VeloxExceptionC1EPKcmS3_St17basic_string_viewIcSt11char_traitsIcEES7_S7_S7_bNS1_4TypeES7_
# 3  _ZN8facebook5velox17VeloxRuntimeErrorC1EPKcmS3_St17basic_string_viewIcSt11char_traitsIcEES7_S7_S7_bS7_
# 4  _ZN8facebook5velox6detail14veloxCheckFailINS0_17VeloxRuntimeErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKNS1_18VeloxCheckFailArgsET0_
# 5  _ZN8facebook5velox6memory16SharedArbitrator8shutdownEv
# 6  _ZN8facebook5velox6memory13MemoryManagerD2Ev
# 7  _ZN8facebook5velox6memory13MemoryManager18testingSetInstanceERKNS1_20MemoryManagerOptionsE
# 8  _ZN8facebook5velox4exec4test16OperatorTestBase11setupMemoryElllllll
# 9  _ZN8facebook5velox4exec4test16OperatorTestBase11resetMemoryEv
# 10 _ZN8facebook5velox4exec4test16OperatorTestBase8TearDownEv
# 11 _ZN8facebook6presto12_GLOBAL__N_115TaskManagerTest8TearDownEv
# 12 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
# 13 _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
# 14 _ZN7testing4Test3RunEv
# 15 _ZN7testing8TestInfo3RunEv
# 16 _ZN7testing9TestSuite3RunEv
# 17 _ZN7testing8internal12UnitTestImpl11RunAllTestsEv
# 18 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc
# 19 _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc
# 20 _ZN7testing8UnitTest3RunEv
# 21 _Z13RUN_ALL_TESTSv
# 22 main
# 23 __libc_start_call_main
# 24 __libc_start_main
# 25 _start

*** Aborted at 1733500386 (Unix time, try 'date -d @1733500386') ***
*** Signal 6 (SIGABRT) (0x265a) received by PID 9818 (pthread TID 0x7fa7ed15c640) (linux TID 9818) (maybe from PID 9818, UID 0) (code: -6), stack trace: ***
(error retrieving stack trace)

CC @yuandagits

@yuandagits
Copy link
Contributor

Hi @zuyu, I am not able to reproduce this in linux env. Can you give me the exact repro command to run this? From a brief look, it doesn't seem related to my change.

@zuyu
Copy link
Contributor Author

zuyu commented Dec 7, 2024

Unfortunately, I also could not reproduce locally on macOS. Seems related to memory arbitrator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 Unprioritized
Development

No branches or pull requests

2 participants