Skip to content

Commit

Permalink
[ISSUE #7466] Added fast failure in adminBrokerThreadPoolQueue (#7466) (
Browse files Browse the repository at this point in the history
  • Loading branch information
yp969803 authored Jun 17, 2024
1 parent 38c56cd commit 568950b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ private void cleanExpiredRequest() {

cleanExpiredRequestInQueue(this.brokerController.getAckThreadPoolQueue(),
brokerController.getBrokerConfig().getWaitTimeMillsInAckQueue());

cleanExpiredRequestInQueue(this.brokerController.getAdminBrokerThreadPoolQueue(),
brokerController.getBrokerConfig().getWaitTimeMillsInAdminBrokerQueue());
}

void cleanExpiredRequestInQueue(final BlockingQueue<Runnable> blockingQueue, final long maxWaitTimeMillsInQueue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class BrokerConfig extends BrokerIdentity {
private long waitTimeMillsInHeartbeatQueue = 31 * 1000;
private long waitTimeMillsInTransactionQueue = 3 * 1000;
private long waitTimeMillsInAckQueue = 3000;

private long waitTimeMillsInAdminBrokerQueue = 5 * 1000;
private long startAcceptSendRequestTimeStamp = 0L;

private boolean traceOn = true;
Expand Down Expand Up @@ -1167,6 +1167,14 @@ public String getMsgTraceTopicName() {
return msgTraceTopicName;
}

public long getWaitTimeMillsInAdminBrokerQueue() {
return waitTimeMillsInAdminBrokerQueue;
}

public void setWaitTimeMillsInAdminBrokerQueue(long waitTimeMillsInAdminBrokerQueue) {
this.waitTimeMillsInAdminBrokerQueue = waitTimeMillsInAdminBrokerQueue;
}

public void setMsgTraceTopicName(String msgTraceTopicName) {
this.msgTraceTopicName = msgTraceTopicName;
}
Expand Down

0 comments on commit 568950b

Please sign in to comment.