-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Exit getLabelState() if retry for more than a certain time #212
Conversation
Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
@@ -105,17 +105,29 @@ public Map<String, Object> doStreamLoad(StarRocksSinkBufferEntity bufferEntity) | |||
} else if (RESULT_LABEL_EXISTED.equals(loadResult.get(keyStatus))) { | |||
LOG.error(String.format("Stream Load response: \n%s\n", JSON.toJSONString(loadResult))); | |||
// has to block-checking the state to get the final result | |||
checkLabelState(host, bufferEntity.getLabel()); | |||
int timeoutSecond = 600; | |||
String configuredTimeout = sinkOptions.getSinkStreamLoadProperties().get("timeout"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better to get it early, and Isn't it ten minutes by default if you don't set it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by "get it early"? 600s is just ten minutes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (StarRocks#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (StarRocks#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (StarRocks#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (StarRocks#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (StarRocks#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
…ime (#212) Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
What type of PR is this:
Which issues of this PR fixes :
Fixes #
Problem Summary(Required) :
currently
StarRocksStreamLoadVisitor#checkLabelState
andDefaultStreamLoader#getLabelState
will continue retrying if not get the expected label state. This may be caused by the bug of StarRocks, such as StarRocks/starrocks#21127. In this case, connector is better to throw some exception to tell the flink user what happens rather than stuck here, and then can investigate the problem.Checklist: