[GitHub] lucene-solr issue #294: ZkStateReader: cache LazyCollectionRef (SOLR-8327)

2017-12-19 Thread dragonsinth
Github user dragonsinth commented on the issue: https://github.com/apache/lucene-solr/pull/294 This approach seems fine to me. Remind me why we use nanoTime vs. normal clock? I'm sure you're right I just want to refresh my brain

[GitHub] lucene-solr pull request #257: SOLR-11423: Overseer queue needs a hard cap (...

2017-10-02 Thread dragonsinth
GitHub user dragonsinth opened a pull request: https://github.com/apache/lucene-solr/pull/257 SOLR-11423: Overseer queue needs a hard cap (maximum size) that clients respect You can merge this pull request into a Git repository by running: $ git pull https://github.com

[GitHub] lucene-solr pull request #256: SOLR-11423: Overseer queue needs a hard cap (...

2017-10-02 Thread dragonsinth
GitHub user dragonsinth opened a pull request: https://github.com/apache/lucene-solr/pull/256 SOLR-11423: Overseer queue needs a hard cap (maximum size) that clients respect You can merge this pull request into a Git repository by running: $ git pull https://github.com

[GitHub] lucene-solr pull request #42: SOLR-8744 blockedTasks

2016-06-13 Thread dragonsinth
Github user dragonsinth closed the pull request at: https://github.com/apache/lucene-solr/pull/42 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so

[GitHub] lucene-solr issue #42: SOLR-8744 blockedTasks

2016-06-09 Thread dragonsinth
Github user dragonsinth commented on the issue: https://github.com/apache/lucene-solr/pull/42 FYI: both of these SHAs passed the test suite --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have

[GitHub] lucene-solr pull request #42: SOLR-8744 blockedTasks

2016-06-09 Thread dragonsinth
GitHub user dragonsinth opened a pull request: https://github.com/apache/lucene-solr/pull/42 SOLR-8744 blockedTasks @noblepaul You can merge this pull request into a Git repository by running: $ git pull https://github.com/fullstorydev/lucene-solr SOLR-8744 Alternatively you

[GitHub] lucene-solr issue #41: SOLR-9191: OverseerTaskQueue.peekTopN() fatally flawe...

2016-06-07 Thread dragonsinth
Github user dragonsinth commented on the issue: https://github.com/apache/lucene-solr/pull/41 This passes `ant test`. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled

[GitHub] lucene-solr pull request #41: SOLR-9191: OverseerTaskQueue.peekTopN() fatall...

2016-06-07 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/41#discussion_r66172870 --- Diff: solr/core/src/test/org/apache/solr/cloud/DistributedQueueTest.java --- @@ -137,6 +136,49 @@ public void testDistributedQueueBlocking

[GitHub] lucene-solr pull request #41: SOLR-9191: OverseerTaskQueue.peekTopN() fatall...

2016-06-07 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/41#discussion_r66172805 --- Diff: solr/core/src/java/org/apache/solr/cloud/OverseerTaskProcessor.java --- @@ -466,6 +466,8 @@ private void markTaskComplete(String id, String

[GitHub] lucene-solr pull request #41: SOLR-9191: OverseerTaskQueue.peekTopN() fatall...

2016-06-07 Thread dragonsinth
GitHub user dragonsinth opened a pull request: https://github.com/apache/lucene-solr/pull/41 SOLR-9191: OverseerTaskQueue.peekTopN() fatally flawed @noblepaul CC: @shalinmangar You can merge this pull request into a Git repository by running: $ git pull https

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-11 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62900842 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1069,32 +1100,190 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-11 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62900820 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1069,32 +1100,190 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on the pull request: https://github.com/apache/lucene-solr/pull/32#issuecomment-218321437 Almost LGTM. There's a few nits, but the only real issue is potentially setting up a StateWatcher on legacy. Nice work, I think we're almost done

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62771180 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1069,32 +1100,190 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62771165 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1069,32 +1100,190 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62771056 --- Diff: solr/solrj/src/test/org/apache/solr/common/cloud/TestCollectionStateWatchers.java --- @@ -0,0 +1,235 @@ +package

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62770640 --- Diff: solr/solrj/src/java/org/apache/solr/common/util/ExecutorUtil.java --- @@ -154,6 +147,20 @@ public static ExecutorService

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62770569 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1069,32 +1100,190 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62770248 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -635,6 +669,8 @@ public Object getUpdateLock

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62770279 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -635,6 +669,8 @@ public Object getUpdateLock

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62770082 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -485,6 +506,20 @@ private void refreshLegacyClusterState(Watcher

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r62769742 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -485,6 +506,20 @@ private void refreshLegacyClusterState(Watcher

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-10 Thread dragonsinth
Github user dragonsinth commented on the pull request: https://github.com/apache/lucene-solr/pull/32#issuecomment-218226081 Hmm, isn't an executor a fancier way of doing a Queue + Thread(s)? :) --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-09 Thread dragonsinth
Github user dragonsinth commented on the pull request: https://github.com/apache/lucene-solr/pull/32#issuecomment-217984743 I did like the idea of a dedicated executor for collection events, just to ensure clean separation. But I'll take a look in its current form. --- If your

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-04 Thread dragonsinth
Github user dragonsinth commented on the pull request: https://github.com/apache/lucene-solr/pull/32#issuecomment-216931783 Correct, the queuing implementation where the waiting thread loops only helps waitForState(). Maybe we should just go with that for now and consider making CSW

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-02 Thread dragonsinth
Github user dragonsinth commented on the pull request: https://github.com/apache/lucene-solr/pull/32#issuecomment-216351404 BTW, here's an implementation of waitForState() that does the work on the calling thread. This passes your tests: ``` public void waitForState

[GitHub] lucene-solr pull request: SOLR-8323

2016-05-02 Thread dragonsinth
Github user dragonsinth commented on the pull request: https://github.com/apache/lucene-solr/pull/32#issuecomment-216333963 @romseygeek nice job on the changes so far, and sorry to have so much feedback and so many asks. This is a pretty complicated change so I feel like it merits

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-29 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61644721 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -491,19 +493,28 @@ private void refreshLegacyClusterState

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-29 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61643877 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -256,9 +257,10 @@ public void updateClusterState() throws

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-29 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61643749 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/CollectionStatePredicate.java --- @@ -30,8 +30,9 @@ /** * Check

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-29 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61643539 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1066,32 +1079,201 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-29 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61622572 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/CollectionStateWatcher.java --- @@ -0,0 +1,42 @@ +package org.apache.solr.common.cloud

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on the pull request: https://github.com/apache/lucene-solr/pull/32#issuecomment-215576790 Looking good, a little more high-level feedback. @shalinmangar I think you should take a look also. Have you run the tests extensively? The first time

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61510208 --- Diff: solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java --- @@ -348,7 +358,13 @@ public JettySolrRunner

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61510100 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/CollectionStateWatcher.java --- @@ -0,0 +1,42 @@ +package org.apache.solr.common.cloud

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61509937 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1066,32 +1079,201 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61509699 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1066,32 +1079,201 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61508998 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -1066,32 +1079,201 @@ public static String getCollectionPath

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61507961 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -131,6 +132,19 @@ private final Runnable

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61507382 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java --- @@ -484,6 +498,12 @@ private void refreshLegacyClusterState(Watcher

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61504824 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java --- @@ -210,6 +213,38 @@ public Replica getReplica(String coreNodeName

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61504670 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/CollectionStateWatcher.java --- @@ -0,0 +1,42 @@ +package org.apache.solr.common.cloud

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61504017 --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/CollectionStatePredicate.java --- @@ -0,0 +1,41 @@ +package

[GitHub] lucene-solr pull request: SOLR-8323

2016-04-28 Thread dragonsinth
Github user dragonsinth commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/32#discussion_r61503724 --- Diff: solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java --- @@ -572,6 +574,40 @@ public void downloadConfig(String