Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10777

Replication Backup creation fails with NPE, while deleting the old backups

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.2.1
    • Fix Version/s: None
    • Labels:
      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())

      { dirs.add(obd); }

      ```

      also in OldBackUpDirectory`s pattern match should haver matcher.matches(), to fetch the group(1) value.

        Attachments

        1. Screen Shot 2017-05-30 at 7.53.50 PM.png
          136 kB
          Nilesh Singh
        2. Screen Shot 2017-05-30 at 7.54.18 PM.png
          86 kB
          Nilesh Singh
        3. SOLR-10777.patch
          2 kB
          Nilesh Singh

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                singh.nilesh@hotmail.com Nilesh Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 20m
                  20m
                  Remaining:
                  Remaining Estimate - 20m
                  20m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified