Records not Disappearing from Archived Page 15/6215/1
authorBelagamSrividya <BS00561090@TechMahindra.com>
Mon, 30 Dec 2019 14:13:00 +0000 (19:43 +0530)
committerBelagamSrividya <BS00561090@TechMahindra.com>
Mon, 30 Dec 2019 14:18:33 +0000 (19:48 +0530)
ISSUE-ID : ACUMOS-3720

After Restoring Not Disapeparing from Archived Logs Page

Change-Id: I1e5dad29489f960fe701b5b1c6212ec3b3e8d363
Signed-off-by: BelagamSrividya <BS00561090@TechMahindra.com>
docs/release-notes.rst
elk-client/src/main/java/org/acumos/elk/client/service/SnapshotRepositoryServiceImpl.java

index 4bcf3c7..e784648 100644 (file)
@@ -22,7 +22,6 @@ Platform Operations, Administration, and Management (OA&M) Release Notes
 
 Version 3.0.5, 20 December 2019
 --------------------------------
-* Platform OAM - Upgrade to CDS-3.0.5  (`ACUMOS-3720 <https://jira.acumos.org/browse/ACUMOS-3720>`_)
 * Platform OAM - Upgrade to CDS-3.0.5  (`ACUMOS-3632 <https://jira.acumos.org/browse/ACUMOS-3632>`_)
 * Platform OAM - Upgrade to CDS-3.0.5  (`ACUMOS-3564 <https://jira.acumos.org/browse/ACUMOS-3564>`_)
 * Platform OAM - Upgrade to CDS-3.0.5  (`ACUMOS-3070 <https://jira.acumos.org/browse/ACUMOS-3070>`_)
index 7d0a6ea..c228e9a 100644 (file)
@@ -232,7 +232,7 @@ public class SnapshotRepositoryServiceImpl extends AbstractELKClientConnection i
                };
 
                String result = null;
-               String resultDelete = null;
+       
                String[] archiveInfoArray;
                List<String> resultList = new ArrayList<>();
                if (action.equalsIgnoreCase(ElkClientConstants.INFO)) {
@@ -249,12 +249,7 @@ public class SnapshotRepositoryServiceImpl extends AbstractELKClientConnection i
                                        result = ElkServiceUtils.executeScript(action, repoName);
                                        resultList.add(result.trim());
 
-                                       if (action != null && !action.isEmpty()
-                                                       && action.equalsIgnoreCase(ElkClientConstants.RESTORE_REQUEST)) {
-                                               resultDelete = ElkServiceUtils.executeScript(ElkClientConstants.DELETE_REQUEST, repoName);
-                                       }
-
-                                       resultList.add(resultDelete.trim());
+                                       
                                }
                        } catch (Exception ex) {
                                logger.debug("Exception:", ex);