[jira] [Updated] (SOLR-8779) Fix missing InterruptedException handling in ZkStateReader

2016-04-21 Thread Anshum Gupta (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anshum Gupta updated SOLR-8779:
---
Fix Version/s: 5.5.1

> Fix missing InterruptedException handling in ZkStateReader
> --
>
> Key: SOLR-8779
> URL: https://issues.apache.org/jira/browse/SOLR-8779
> Project: Solr
>  Issue Type: Bug
>Reporter: Varun Thacker
>Assignee: Varun Thacker
> Fix For: 6.0, 5.5.1
>
> Attachments: SOLR-8779.patch
>
>
> I was debugging a zk session expired issue and saw this stack-trace
> {code}
> ERROR - 2016-03-03 06:55:53.873; [   ] org.apache.solr.common.SolrException; 
> OverseerAutoReplicaFailoverThread had an error in its thread work 
> loop.:org.apache.solr.common.SolrException: Error reading cluster properties
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:738)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.doWork(OverseerAutoReplicaFailoverThread.java:153)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.run(OverseerAutoReplicaFailoverThread.java:132)
>   at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.InterruptedException: sleep interrupted
>   at java.lang.Thread.sleep(Native Method)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryDelay(ZkCmdExecutor.java:108)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:76)
>   at 
> org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:308)
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:731)
>   ... 3 more
> {code}
> So I audited ZKStateReader and found a couple of places where an 
> InterruptedException was caught but the interrupt flag wasn't set back.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-8779) Fix missing InterruptedException handling in ZkStateReader

2016-03-03 Thread Varun Thacker (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varun Thacker updated SOLR-8779:

Attachment: SOLR-8779.patch

Simple patch which sets the interrupt flag back in 
{{ZkStateReader#readConfigName}} , {{ZkStateReader#getClusterProps}} , 
{{ZkStateReader#setClusterProperty}} and {{ZkStateReader#getSecurityProps}}

> Fix missing InterruptedException handling in ZkStateReader
> --
>
> Key: SOLR-8779
> URL: https://issues.apache.org/jira/browse/SOLR-8779
> Project: Solr
>  Issue Type: Bug
>Reporter: Varun Thacker
> Fix For: 6.0
>
> Attachments: SOLR-8779.patch
>
>
> I was debugging a zk session expired issue and saw this stack-trace
> {code}
> ERROR - 2016-03-03 06:55:53.873; [   ] org.apache.solr.common.SolrException; 
> OverseerAutoReplicaFailoverThread had an error in its thread work 
> loop.:org.apache.solr.common.SolrException: Error reading cluster properties
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:738)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.doWork(OverseerAutoReplicaFailoverThread.java:153)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.run(OverseerAutoReplicaFailoverThread.java:132)
>   at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.InterruptedException: sleep interrupted
>   at java.lang.Thread.sleep(Native Method)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryDelay(ZkCmdExecutor.java:108)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:76)
>   at 
> org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:308)
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:731)
>   ... 3 more
> {code}
> So I audited ZKStateReader and found a couple of places where an 
> InterruptedException was caught but the interrupt flag wasn't set back.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-8779) Fix missing InterruptedException handling in ZkStateReader

2016-03-03 Thread Varun Thacker (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varun Thacker updated SOLR-8779:

Description: 
I was debugging a zk session expired issue and saw this stack-trace
{code}
ERROR - 2016-03-03 06:55:53.873; [   ] org.apache.solr.common.SolrException; 
OverseerAutoReplicaFailoverThread had an error in its thread work 
loop.:org.apache.solr.common.SolrException: Error reading cluster properties
at 
org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:738)
at 
org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.doWork(OverseerAutoReplicaFailoverThread.java:153)
at 
org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.run(OverseerAutoReplicaFailoverThread.java:132)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at 
org.apache.solr.common.cloud.ZkCmdExecutor.retryDelay(ZkCmdExecutor.java:108)
at 
org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:76)
at 
org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:308)
at 
org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:731)
... 3 more
{code}

So I audited ZKStateReader and found a couple of places where an 
InterruptedException was caught but the interrupt flag wasn't set back.

  was:
I was debugging a zk session expired issue and saw this stack-trace
{code}
ERROR - 2016-03-03 06:55:53.873; [   ] org.apache.solr.common.SolrException; 
OverseerAutoReplicaFailoverThread had an error in its thread work 
loop.:org.apache.solr.common.SolrException: Error reading cluster properties
at 
org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:738)
at 
org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.doWork(OverseerAutoReplicaFailoverThread.java:153)
at 
org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.run(OverseerAutoReplicaFailoverThread.java:132)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at 
org.apache.solr.common.cloud.ZkCmdExecutor.retryDelay(ZkCmdExecutor.java:108)
at 
org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:76)
at 
org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:308)
at 
org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:731)
... 3 more
{code}


> Fix missing InterruptedException handling in ZkStateReader
> --
>
> Key: SOLR-8779
> URL: https://issues.apache.org/jira/browse/SOLR-8779
> Project: Solr
>  Issue Type: Bug
>Reporter: Varun Thacker
> Fix For: 6.0
>
>
> I was debugging a zk session expired issue and saw this stack-trace
> {code}
> ERROR - 2016-03-03 06:55:53.873; [   ] org.apache.solr.common.SolrException; 
> OverseerAutoReplicaFailoverThread had an error in its thread work 
> loop.:org.apache.solr.common.SolrException: Error reading cluster properties
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:738)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.doWork(OverseerAutoReplicaFailoverThread.java:153)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.run(OverseerAutoReplicaFailoverThread.java:132)
>   at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.InterruptedException: sleep interrupted
>   at java.lang.Thread.sleep(Native Method)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryDelay(ZkCmdExecutor.java:108)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:76)
>   at 
> org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:308)
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:731)
>   ... 3 more
> {code}
> So I audited ZKStateReader and found a couple of places where an 
> InterruptedException was caught but the interrupt flag wasn't set back.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-8779) Fix missing InterruptedException handling in ZkStateReader

2016-03-03 Thread Varun Thacker (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varun Thacker updated SOLR-8779:

Description: 
I was debugging a zk session expired issue and saw this stack-trace
{code}
ERROR - 2016-03-03 06:55:53.873; [   ] org.apache.solr.common.SolrException; 
OverseerAutoReplicaFailoverThread had an error in its thread work 
loop.:org.apache.solr.common.SolrException: Error reading cluster properties
at 
org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:738)
at 
org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.doWork(OverseerAutoReplicaFailoverThread.java:153)
at 
org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.run(OverseerAutoReplicaFailoverThread.java:132)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at 
org.apache.solr.common.cloud.ZkCmdExecutor.retryDelay(ZkCmdExecutor.java:108)
at 
org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:76)
at 
org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:308)
at 
org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:731)
... 3 more
{code}

> Fix missing InterruptedException handling in ZkStateReader
> --
>
> Key: SOLR-8779
> URL: https://issues.apache.org/jira/browse/SOLR-8779
> Project: Solr
>  Issue Type: Bug
>Reporter: Varun Thacker
> Fix For: 6.0
>
>
> I was debugging a zk session expired issue and saw this stack-trace
> {code}
> ERROR - 2016-03-03 06:55:53.873; [   ] org.apache.solr.common.SolrException; 
> OverseerAutoReplicaFailoverThread had an error in its thread work 
> loop.:org.apache.solr.common.SolrException: Error reading cluster properties
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:738)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.doWork(OverseerAutoReplicaFailoverThread.java:153)
>   at 
> org.apache.solr.cloud.OverseerAutoReplicaFailoverThread.run(OverseerAutoReplicaFailoverThread.java:132)
>   at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.InterruptedException: sleep interrupted
>   at java.lang.Thread.sleep(Native Method)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryDelay(ZkCmdExecutor.java:108)
>   at 
> org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:76)
>   at 
> org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:308)
>   at 
> org.apache.solr.common.cloud.ZkStateReader.getClusterProps(ZkStateReader.java:731)
>   ... 3 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-8779) Fix missing InterruptedException handling in ZkStateReader

2016-03-03 Thread Varun Thacker (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varun Thacker updated SOLR-8779:

Fix Version/s: 6.0

> Fix missing InterruptedException handling in ZkStateReader
> --
>
> Key: SOLR-8779
> URL: https://issues.apache.org/jira/browse/SOLR-8779
> Project: Solr
>  Issue Type: Bug
>Reporter: Varun Thacker
> Fix For: 6.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org