This is an automated email from the ASF dual-hosted git repository.

alsuliman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git

commit 7365617d6bb33be9510785cac2a5c08a1a33925e
Author: Ali Alsuliman <[email protected]>
AuthorDate: Tue Apr 30 00:58:46 2024 +0300

    [NO ISSUE][ING] Set Active Entity as Running on recovery
    
    - user model changes: no
    - storage format changes: no
    - interface changes: no
    
    Details:
    When recovery of an active entity is successful, set it
    as running.
    
    Change-Id: I7764287ea48b56a815657cb159582e2118d6bcd8
    Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18258
    Tested-by: Jenkins <[email protected]>
    Reviewed-by: Ali Alsuliman <[email protected]>
    Reviewed-by: Michael Blow <[email protected]>
---
 .../src/main/java/org/apache/asterix/app/active/RecoveryTask.java        | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/RecoveryTask.java
 
b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/RecoveryTask.java
index 34a54d1df8..e4e7b36442 100644
--- 
a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/RecoveryTask.java
+++ 
b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/active/RecoveryTask.java
@@ -140,6 +140,7 @@ public class RecoveryTask {
                         if (!cancelRecovery && listener.getState() == 
ActivityState.TEMPORARILY_FAILED) {
                             listener.setState(ActivityState.RECOVERING);
                             listener.doRecover(metadataProvider);
+                            listener.setRunning(metadataProvider, true);
                         }
                         LOGGER.log(level, "Recovery completed successfully");
                         return null;

Reply via email to