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)