You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by AsterixDB Code Review <do...@asterix-gerrit.ics.uci.edu> on 2026/10/04 21:13:09 UTC
[XS] Change in asterixdb[master]: [ASTERIXDB-1792][ASTERIXDB-3686][API] Fix async response failure race
From Ali Alsuliman <al...@gmail.com>:
Ali Alsuliman has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21989?usp=email )
Change subject: [ASTERIXDB-1792][ASTERIXDB-3686][API] Fix async response failure race
......................................................................
[ASTERIXDB-1792][ASTERIXDB-3686][API] Fix async response failure race
- user model changes: no
- storage format changes: no
- interface changes: no
Details: ASTERIXDB-3686 made an async request rethrow its job's failure
into the response so that a compilation error is reported there, but
it flagged every failure, including one after the handle was printed.
A job failing right after its handle, before the request thread
resumed, then put its error into the response next to the handle, with
status fatal; this is the sporadic async-failed failure. Only a failure
before the handle is printed now goes into the response; one after it
is reported by the status the handle names, as before ASTERIXDB-3686.
Generated-by: Claude Opus 5.5 <no...@anthropic.com>
Change-Id: I5c2f7bf3214e7adeae52004c663fd7cc3252f097
---
M asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/89/21989/1
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
index e49ff63..50ffbc7 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
@@ -6340,7 +6340,10 @@
} catch (Exception e) {
jobIdFuture.completeExceptionally(e);
synchronized (printed) {
- exceptionThrown.setTrue();
+ // once the handle is out, a failure belongs to the status the client polls, not this response
+ if (printed.isFalse()) {
+ exceptionThrown.setTrue();
+ }
}
throw new RuntimeException(e);
}
--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21989?usp=email
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: I5c2f7bf3214e7adeae52004c663fd7cc3252f097
Gerrit-Change-Number: 21989
Gerrit-PatchSet: 1
Gerrit-Owner: Ali Alsuliman <al...@gmail.com>