Here are two cases where we catch InterruptedException and do different
things:


   1.  Log a warn / error and move on : Example
   
https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/update/UpdateLog.java#L1248
   2. Throw an SolrException : Example
   
https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java#L925


Would this be the correct way to deal with these :


   1. For 1, we should restore the interrupted thread by doing this
   - Thread.currentThread().interrupt();
   2. For 2, do we need to interrupt the thread before throwing an
   exception?


I wanted to understand the usage and then file a Jira to fix any mistakes
there is currently.

Reply via email to