Skip to content

Commit

Permalink
fix deadlock in full drain mode on config update (#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryzhx8 authored Sep 24, 2024
1 parent 02e1a40 commit 7cd66f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/file_server/event_handler/LogInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void LogInput::Resume() {

void LogInput::HoldOn() {
LOG_INFO(sLogger, ("event handle daemon pause", "starts"));
if (BOOL_FLAG(enable_full_drain_mode)) {
if (BOOL_FLAG(enable_full_drain_mode) && Application::GetInstance()->IsExiting()) {
unique_lock<mutex> lock(mThreadRunningMux);
mStopCV.wait(lock, [this]() { return mInteruptFlag; });
} else {
Expand Down

0 comments on commit 7cd66f4

Please sign in to comment.