You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/02/11 04:00:31 UTC
[GitHub] [rocketmq] Edisonboy opened a new issue #1769: Empty poll in
haClient when it is master node
Edisonboy opened a new issue #1769: Empty poll in haClient when it is master node
URL: https://github.com/apache/rocketmq/issues/1769
Excuse me, i have a question in code where in the class of HaClient.
If it will be empty polling when the master broker run it?
`
public void run() {
log.info(this.getServiceName() + " service started");
while (!this.isStopped()) {
try {
if (this.connectMaster()) {
................
} else {
this.waitForRunning(1000 * 5);
}
} catch (Exception e) {
log.warn(this.getServiceName() + " service has exception. ", e);
this.waitForRunning(1000 * 5);
}
}
log.info(this.getServiceName() + " service end");
}
`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [rocketmq] RongtongJin commented on issue #1769: Empty poll in
haClient when it is master node
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #1769: Empty poll in haClient when it is master node
URL: https://github.com/apache/rocketmq/issues/1769#issuecomment-586919820
Yep, but it doesn't affect performance much beacuse it will sleep 5s every time.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [rocketmq] RongtongJin closed issue #1769: Empty poll in haClient
when it is master node
Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #1769: Empty poll in haClient when it is master node
URL: https://github.com/apache/rocketmq/issues/1769
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services