KeDeng has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22987
Change subject: [util] fix delayed task scheduling precision in ARM+TSAN envs ...................................................................... [util] fix delayed task scheduling precision in ARM+TSAN envs This commit resolves flaky TestSubmitAfterShutdown failures observed specifically on ARM platforms under TSAN mode. The root cause was insufficient scheduling precision in the SchedulerThread, where: 1. The default 100ms scheduling period could miss exact task execution timing windows under ARM+TSAN timing variations 2. Delayed tasks might not be dispatched promptly, causing test assertions to fail with unexpected counter values Key improvements implemented: - Added condition variable signaling to SchedulerThread - Implement immediate wake-up on new delayed task submission - Maintained backward-compatible thread pool interface The solution ensures delayed tasks execute within expected time windows even under challenging ARM+TSAN conditions, while maintaining thread pool efficiency. Change-Id: I544488158db84dca580694e884b56d5c546d89c1 --- M src/kudu/util/threadpool.cc M src/kudu/util/threadpool.h 2 files changed, 19 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/87/22987/1 -- To view, visit http://gerrit.cloudera.org:8080/22987 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I544488158db84dca580694e884b56d5c546d89c1 Gerrit-Change-Number: 22987 Gerrit-PatchSet: 1 Gerrit-Owner: KeDeng <[email protected]>
