[NO ISSUE][ING] Set active entity as suspended on suspension success

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

Details:

- When an active entity is suspended successfully, set the
  suspended flag regardless of the state.

Change-Id: I42f8d92e1719103d94aa07801b987466e2c1a11d
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/9143
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/ActiveEntityEventsListener.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/ActiveEntityEventsListener.java
index 0f5dec7..c90cde0 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/ActiveEntityEventsListener.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/ActiveEntityEventsListener.java
@@ -609,6 +609,7 @@
             suspendTask.get();
             LOGGER.log(level, "waiting for state to become SUSPENDED or TEMPORARILY_FAILED");
             subscriber.sync();
+            suspended = true;
         } catch (Exception e) {
             synchronized (this) {
                 if (LOGGER.isErrorEnabled()) {