Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
6.2.1
-
None
-
None
Description
in Solr back up SnapShooter will try to delete the old backups saved on the disk automatically, but deletion fails as the files may not be the pattern type expected by the OldBackUpDirectory.
```
private static final Pattern dirNamePattern = Pattern.compile("^snapshot[.](.*)$");
```
In this case the following code throws NPE.
```
if (obd.getTimestamp().isPresent())
```
also in OldBackUpDirectory`s pattern match should haver matcher.matches(), to fetch the group(1) value.
Attachments
Attachments
Issue Links
- is related to
-
SOLR-9536 OldBackupDirectory timestamp init bug causes NPEs from SnapShooter?
- Closed