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/09/11 22:32:13 UTC

[S] Change in asterixdb[master]: [ASTERIXDB-3829][RT][API] Reject DDL on node restart

From Ali Alsuliman <al...@gmail.com>:

Attention is currently required from: Ali Alsuliman, Murtadha Hubail.

Hello Jenkins, Michael Blow, Murtadha Hubail, 

I'd like you to reexamine a change. Please visit

    https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21737?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Code-Review+1 by Ali Alsuliman, Verified-1 by Jenkins


Change subject: [ASTERIXDB-3829][RT][API] Reject DDL on node restart
......................................................................

[ASTERIXDB-3829][RT][API] Reject DDL on node restart

A DDL that must suspend an active entity halted the node with
EC_ACTIVE_SUSPEND_FAILURE whenever that suspend was interrupted, which
includes being interrupted by the node's own shutdown. Restarting a node
while such a statement was in flight therefore cut the orderly shutdown
short, and left the statement with nothing useful to report.

The halt is kept for genuine failures, where the entity is left in an
indeterminate state and nothing may run against it. An interrupt that
comes from this JVM already terminating leaves nothing to protect, so
that case is reported to the caller instead, as REJECT_BAD_CLUSTER_STATE
with a stated SHUTTING_DOWN, and answered with 503. The state is stated
rather than read because the cluster state manager still says ACTIVE
until the CC catches up.

ExitUtil.isExiting() tells the two apart. It covers both the exit() path
and a shutdown hook already running, e.g. on SIGTERM.

Ext-ref: MB-73465
Co-Authored-By: Claude Opus 5 <no...@anthropic.com>
Change-Id: I30b191a3767e437f110afc70176fd8e1733a1a25
---
M asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/ActiveNotificationHandler.java
M hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
2 files changed, 48 insertions(+), 1 deletion(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/37/21737/3
-- 
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21737?usp=email
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: I30b191a3767e437f110afc70176fd8e1733a1a25
Gerrit-Change-Number: 21737
Gerrit-PatchSet: 3
Gerrit-Owner: Ali Alsuliman <al...@gmail.com>
Gerrit-Reviewer: Ali Alsuliman <al...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-Reviewer: Murtadha Hubail <mh...@apache.org>
Gerrit-Attention: Murtadha Hubail <mh...@apache.org>
Gerrit-Attention: Ali Alsuliman <al...@gmail.com>