[NO ISSUE][ACTIVE] Account for force stop while suspending
authorMurtadha Hubail <murtadha.hubail@couchbase.com>
Thu, 9 Sep 2021 22:36:34 +0000 (01:36 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Tue, 14 Sep 2021 14:54:26 +0000 (14:54 +0000)
commit5e110538870c9385f316e0395b80a76f0e6d8e7c
tree81db52778abb95e4a8adedf2da66a0ff114eb2f0
parent20314d118059da634847e1ddb1b1d744e552e713
[NO ISSUE][ACTIVE] Account for force stop while suspending

- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- When a failure happens while trying to suspend ingestion,
  we will force stop the active job. If the job completes
  ungracefully, we set the listener state to TEMPORARILY_FAILED.
  However, since force to stop only waits for STOPPED state,
  the thread waiting for ingestion to be suspended will wait
  forever. This change accounts for such case and makes
  the force stop waits for TEMPORARILY_FAILED too.

Change-Id: Ib33f191be2b84d97a08e3bc6d607b0edbf35bed1
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/13144
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
(cherry picked from commit eed8714ae56bd61656750bf543181e7dd68c26c1)
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/13203
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/ActiveEntityEventsListener.java