ijioio commented on pull request #595:
URL: https://github.com/apache/solr/pull/595#issuecomment-1036502351


   @HoustonPutman @cpoerschke 
   
   How you think, maybe we should do the same trick for delete snapshot also? I 
mean adding field `startTime` (it is not added for some reason) and adding 
field `endTime` to duplicate `snapshotDeletedAt`?
   
   This is how `deleteNamedSnapshot` looks like right now:
   
   ```java
     protected void deleteNamedSnapshot(ReplicationHandler replicationHandler) {
       log.info("Deleting snapshot: {}", snapshotName);
   
       NamedList<Object> details = new NamedList<>();
       details.add("snapshotName", snapshotName);
         
       try {
         URI path = baseSnapDirPath.resolve("snapshot." + snapshotName);
         backupRepo.deleteDirectory(path);
   
         details.add("status", "success");
         details.add("snapshotDeletedAt", Instant.now().toString());
   
       } catch (IOException e) {
         details.add("status", "Unable to delete snapshot: " + snapshotName);
         log.warn("Unable to delete snapshot: {}", snapshotName, e);
       }
   
       replicationHandler.snapShootDetails = details;
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to