-
Notifications
You must be signed in to change notification settings - Fork 13
fix: adds listener to ShardResult submission to catch errors #3831
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
Conversation
|
|
||
| WriteFuture sendFailure = worker.send(failMessage); | ||
| sendFailure.addListener(failWriteFuture -> { | ||
| if (((WriteFuture)failWriteFuture).isWritten()) { |
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.
yo dawg
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.
Der Listener wird leider noch nicht ausgeführt wenn der OOM kommt 😢
| if (worker.getQueryExecutor().isCancelled(getExecutionId())) { | ||
| // Query is done so we no longer need the cancellation entry. | ||
| worker.getQueryExecutor().unsetQueryCancelled(getQueryId()); | ||
| worker.getQueryExecutor().unsetQueryCancelled(getExecutionId()); | ||
| return; | ||
| } |
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.
@awildturtok Ich glaube das gehört hier eigentlich nicht mehr hin. Der Cancel-Status wird ganz zu anfang in der ExecuteQuery einmal aufgehoben
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.
ich meine, das war einfach nur um das set zu clearen, dass es nicht unnötig wächst.
backend/src/main/java/com/bakdata/conquery/models/error/ErrorMessages.java
Outdated
Show resolved
Hide resolved
| if (worker.getQueryExecutor().isCancelled(getExecutionId())) { | ||
| // Query is done so we no longer need the cancellation entry. | ||
| worker.getQueryExecutor().unsetQueryCancelled(getQueryId()); | ||
| worker.getQueryExecutor().unsetQueryCancelled(getExecutionId()); | ||
| return; | ||
| } |
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.
ich meine, das war einfach nur um das set zu clearen, dass es nicht unnötig wächst.
Co-authored-by: awildturtok <1553491+awildturtok@users.noreply.github.com>
No description provided.