Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-06 Thread via GitHub
dsmiley merged PR #2737: URL: https://github.com/apache/solr/pull/2737 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.or

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-05 Thread via GitHub
psalagnac commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1829398709 ## solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java: ## @@ -242,45 +240,15 @@ public static void waitForCollectionToDisappear( log.

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-04 Thread via GitHub
dsmiley commented on PR #2737: URL: https://github.com/apache/solr/pull/2737#issuecomment-2455879410 Probably just a one-liner left and I'll merge away :-) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-04 Thread via GitHub
dsmiley commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1828513954 ## solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java: ## @@ -242,45 +240,15 @@ public static void waitForCollectionToDisappear( log.in

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-04 Thread via GitHub
psalagnac commented on PR #2737: URL: https://github.com/apache/solr/pull/2737#issuecomment-2454956000 > One thought, is there a way to enforce the use of waitForState() pattern via any of our code quality tools? Not sure how we can automate decision on whether usages of `Timeout` are

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-04 Thread via GitHub
psalagnac commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1827860425 ## solr/core/src/test/org/apache/solr/cloud/TestRebalanceLeaders.java: ## @@ -604,74 +572,61 @@ private void forceUpdateCollectionStatus() { // Since we have to res

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-04 Thread via GitHub
psalagnac commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1827855744 ## solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java: ## @@ -242,45 +240,15 @@ public static void waitForCollectionToDisappear( log.

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-11-04 Thread via GitHub
psalagnac commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1827843673 ## solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java: ## @@ -221,24 +223,19 @@ public void call(ClusterState clusterState, ZkNodeProps m

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-10-23 Thread via GitHub
epugh commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1812438320 ## solr/core/src/test/org/apache/solr/cloud/TestRebalanceLeaders.java: ## @@ -604,74 +572,61 @@ private void forceUpdateCollectionStatus() { // Since we have to restart

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-10-22 Thread via GitHub
dsmiley commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1811699448 ## solr/core/src/test/org/apache/solr/cloud/TestRebalanceLeaders.java: ## @@ -604,74 +572,61 @@ private void forceUpdateCollectionStatus() { // Since we have to resta

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-10-14 Thread via GitHub
dsmiley commented on PR #2737: URL: https://github.com/apache/solr/pull/2737#issuecomment-2411992713 A line of javadocs on TimeOut recommending waitForState would be good but perhaps arguably a distraction to a general utility -- :shrug: whatever. I don't think we'll backslide much if all/

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-10-14 Thread via GitHub
epugh commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1799884914 ## solr/core/src/test/org/apache/solr/cloud/TestRebalanceLeaders.java: ## @@ -604,74 +572,61 @@ private void forceUpdateCollectionStatus() { // Since we have to restart

Re: [PR] SOLR-17453: Leverage waitForState() instead of busy waiting [solr]

2024-10-13 Thread via GitHub
dsmiley commented on code in PR #2737: URL: https://github.com/apache/solr/pull/2737#discussion_r1798764375 ## solr/core/src/test/org/apache/solr/cloud/TestRebalanceLeaders.java: ## @@ -604,74 +572,61 @@ private void forceUpdateCollectionStatus() { // Since we have to resta