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

ZkStateReader’s getLeaderRetry method swallowed InterruptedException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: master (9.0), 8.3
    • Fix Version/s: master (9.0), 8.4
    • Component/s: SolrJ
    • Labels:
      None

      Description

      ZkStateReader’s getLeaderRetry(String collection, String shard, int timeout) swallows the InterruptedException and doesn’t interrupt the current thread despite declaring throws InterruptedException.

       

      This small patch calls Thread.currentThread().interrupt() and passes the InterruptedException up.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andy_vuong Andy Vuong
            • Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 50m
                50m