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

CachingDirectoryFactory Throwing Error When Closing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.2.1
    • 9.6
    • None

    Description

      Observed occasional ERROR log entries when CachingDirectryFactory#close() is called. The respective snippet from the log is this:

      2023-07-06 08:43:37.618 DEBUG (qtp212011969-1801) [   blueprint_gnylctsgemcz_users] o.a.s.c.CachingDirectoryFactory Removing directory after core close: /var/solr/data/blueprint_gnylctsgemcz_users/data
      2023-07-06 08:43:37.620 DEBUG (qtp212011969-1801) [   blueprint_gnylctsgemcz_users] o.a.s.c.CachingDirectoryFactory Removing directory after core close: /var/solr/data/blueprint_gnylctsgemcz_users/data/index
      2023-07-06 08:43:37.620 ERROR (qtp212011969-1801) [   blueprint_gnylctsgemcz_users] o.a.s.c.CachingDirectoryFactory Error removing directory => java.nio.file.NoSuchFileException: /var/solr/data/blueprint_gnylctsgemcz_users/data/index
      java.nio.file.NoSuchFileException: /var/solr/data/blueprint_gnylctsgemcz_users/data/index
      

      It seems like the order of directory removal is causing this (first parent dir data, then sub-dir data/index). Entries should be re-arranged or just the parent dir be handled.

      Full log with entries dealing with the respective core is attached.

      Attachments

        Issue Links

          Activity

            People

              magibney Michael Gibney
              stefan.pieper Stefan Pieper
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h