Skip to content

Commit

Permalink
Fix too much warning log
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyWoo committed Nov 22, 2023
1 parent c947616 commit d98236b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion src/Service/ConnectionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ void ConnectionHandler::sendResponse(const Coordination::ZooKeeperResponsePtr &
{
LOG_TRACE(log, "Dispatch response {} to conn handler session {}", response->toString(), toHexString(session_id));

/// TODO should invoked after response sent to client.
updateStats(response);

/// We do not need send anything for close request to client.
Expand Down
8 changes: 1 addition & 7 deletions src/Service/RequestProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ void RequestProcessor::processCommittedRequest(size_t count)
my_pending_requests.erase(committed_request.session_id);
}

LOG_WARNING(
log,
"Session {} is not local, maybe it is because of disconnecting. We still should apply the committed(write) "
"request",
committed_request.session_id);

applyRequest(committed_request);
committed_queue.pop();
}
Expand All @@ -209,7 +203,7 @@ void RequestProcessor::processCommittedRequest(size_t count)
{
if (committed_request.request->getOpNum() == Coordination::OpNum::Auth)
{
LOG_DEBUG(log, "Apply auth request", committed_request.session_id);
LOG_DEBUG(log, "Apply auth request {}", toHexString(committed_request.session_id));
applyRequest(committed_request);
committed_queue.pop();
}
Expand Down

0 comments on commit d98236b

Please sign in to comment.