BiteTheDDDDt commented on PR #62891:
URL: https://github.com/apache/doris/pull/62891#issuecomment-4332258290

   Addressed the review comments:
   
   1. Replaced the timing-based `sleep_for(100ms)` synchronization in the UT 
with a debug-point callback plus `std::promise/std::future`, so the main thread 
deterministically waits until the wake-up thread is paused before running 
close/finalize. Debug-point state is now restored with `Defer`.
   2. Switched `_exec_state` load/CAS to explicit acquire/acq_rel memory 
ordering. `_state_transition()` is not in the block/row hot path, but this 
keeps the required publication semantics without relying on default seq-cst.
   3. Removed the production `sleep(1)` debug-point delay. The debug point now 
only runs the test callback when one is registered, so manually enabling the 
point without a callback is a no-op instead of throwing.
   
   Rechecked:
   - `./run-be-ut.sh --run 
--filter='PipelineTaskTest.TEST_STATE_TRANSITION:PipelineTaskTest.TEST_STATE_TRANSITION_KEEP_FINALIZED_ON_WAKE_UP_RACE'`
   - `build-support/check-format.sh`
   
   `build-support/run-clang-tidy.sh` was retried; it still fails in this 
environment on pre-existing diagnostics in these historical files / 
`jni-util.h` analysis, unrelated to the review changes.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to