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

ZkStateReader’s getLeaderRetry method swallowed InterruptedException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.3, 9.0
    • 8.4, 9.0
    • SolrJ
    • 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

            Unassigned Unassigned
            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