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

CoreStatus requests can fail if executed during a core reload

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      CoreStatus requests delegate some of their response down to a core's IndexWriter. If the core is being reloaded, then there's a race between these calls and the IndexWriter being closed, which can lead to the request failing with an AlreadyClosedException.

      1. SOLR-9699.patch
        6 kB
        Mikhail Khludnev
      2. SOLR-9699.patch
        5 kB
        Mikhail Khludnev

        Issue Links

          Activity

          Hide
          romseygeek Alan Woodward added a comment -

          I think the fix here is probably to check for AlreadyClosedExceptions in StatusOp, and retry if one is hit.

          Show
          romseygeek Alan Woodward added a comment - I think the fix here is probably to check for AlreadyClosedExceptions in StatusOp, and retry if one is hit.
          Hide
          daisy_yu Daisy.Yuan added a comment -

          I'm having the same problem as you. It's better to return to nomal automaticly by iteself. Manual reload is the second option.

          Show
          daisy_yu Daisy.Yuan added a comment - I'm having the same problem as you. It's better to return to nomal automaticly by iteself. Manual reload is the second option.
          Hide
          mkhludnev Mikhail Khludnev added a comment - - edited

          Can it be fixed under SOLR-9330 ? What is the stacktrace, btw?

          Show
          mkhludnev Mikhail Khludnev added a comment - - edited Can it be fixed under SOLR-9330 ? What is the stacktrace, btw?
          Hide
          daisy_yu Daisy.Yuan added a comment -

          I'think https://issues.apache.org/jira/browse/SOLR-4668 is the same problem. The satcktrace is provided.

          Show
          daisy_yu Daisy.Yuan added a comment - I'think https://issues.apache.org/jira/browse/SOLR-4668 is the same problem. The satcktrace is provided.
          Hide
          erickerickson Erick Erickson added a comment -

          Easier to track if linked.

          Show
          erickerickson Erick Erickson added a comment - Easier to track if linked.
          Hide
          mkhludnev Mikhail Khludnev added a comment -

          here is the reproducer SOLR-9699.patch

          Show
          mkhludnev Mikhail Khludnev added a comment - here is the reproducer SOLR-9699.patch
          Hide
          mkhludnev Mikhail Khludnev added a comment -

          Here is the slightly over engineered fix. WDYT?

          Show
          mkhludnev Mikhail Khludnev added a comment - Here is the slightly over engineered fix. WDYT?
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 393e36e1ce0144a412bc8ea78e98a897a0ac77dd in lucene-solr's branch refs/heads/master from Mikhail Khludnev
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=393e36e ]

          SOLR-9699: fixing exception on core status during concurrent reload

          Show
          jira-bot ASF subversion and git services added a comment - Commit 393e36e1ce0144a412bc8ea78e98a897a0ac77dd in lucene-solr's branch refs/heads/master from Mikhail Khludnev [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=393e36e ] SOLR-9699 : fixing exception on core status during concurrent reload
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit fa1ee56fd39e2c297890d2363699f7bccf7c883c in lucene-solr's branch refs/heads/branch_6x from Mikhail Khludnev
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=fa1ee56 ]

          SOLR-9699: fixing exception on core status during concurrent reload

          Show
          jira-bot ASF subversion and git services added a comment - Commit fa1ee56fd39e2c297890d2363699f7bccf7c883c in lucene-solr's branch refs/heads/branch_6x from Mikhail Khludnev [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=fa1ee56 ] SOLR-9699 : fixing exception on core status during concurrent reload

            People

            • Assignee:
              mkhludnev Mikhail Khludnev
              Reporter:
              romseygeek Alan Woodward
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development