Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void pullMessage(final PullRequest pullRequest) {

long rt = System.currentTimeMillis() - beginPullRequestTime;
if (rt >= brokerHealthyManager.getIsolateThreshold()) {
brokerHealthyManager.isolateBroker(pullRequest.getMessageQueue().getBrokerName());
brokerHealthyManager.isolateBroker(pullRequest.getMessageQueue().getBrokerName(), rt);
}
} else {
log.warn("No matched consumer for the PullRequest {}, drop it", pullRequest);
Expand Down Expand Up @@ -154,10 +154,10 @@ public void removeIsolateBroker(String brokerName) {
}
}

public void isolateBroker(String brokerName) {
public void isolateBroker(String brokerName, long rt) {
isolatedBroker.put(brokerName, System.currentTimeMillis());
if (isolatedBroker.containsKey(brokerName)) {
log.info("isolate broker for slow pull message success, {}", brokerName);
log.info("isolate broker for slow pull message success, {}, cost:{} ms", brokerName, rt);
}
}

Expand Down