You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Kun Liu (Jira)" <ji...@apache.org> on 2021/06/29 05:50:00 UTC
[jira] [Created] (KYLIN-5020) retry the same error url when
coordinator leader changes
Kun Liu created KYLIN-5020:
------------------------------
Summary: retry the same error url when coordinator leader changes
Key: KYLIN-5020
URL: https://issues.apache.org/jira/browse/KYLIN-5020
Project: Kylin
Issue Type: Bug
Reporter: Kun Liu
Assignee: Kun Liu
In the real-time stream, we have two coordinator node,
When the leader changes, the receiver nodes will retry the same error url until timeout.
{code:java}
private Object getRequest(String path) throws IOException {
final String url = getBaseUrl() + path;
CoordinatorResponse response = retryCaller.call(new CoordinatorRetryCallable() {
@Override
public CoordinatorResponse call() throws Exception {
String msg = restService.getRequest(url);
return JsonUtil.readValue(msg, CoordinatorResponse.class);
}
});
return response.getData();
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)