Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,12 @@ public void testDistributedQueryDoesNotReadFromZk() throws Exception {
CollectionAdminRequest.createCollection(secondColl, "conf", 1, 1)
.setCreateNodeSet(jettys.get(0).getNodeName())
.processAndWait(cluster.getSolrClient(), DEFAULT_TIMEOUT);
cluster

// Wait on node 1's ZkStateReader (not the cluster client's) to check for ready state
JettySolrRunner nodeWithoutSecondColl = jettys.get(1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this var name. Maybe node 0 should have a similar var name we can use like "nodeWithBothColls". Just an idea.

nodeWithoutSecondColl
.getCoreContainer()
.getZkController()
.getZkStateReader()
.waitForState(
secondColl,
Expand All @@ -735,7 +740,6 @@ public void testDistributedQueryDoesNotReadFromZk() throws Exception {
try {
// Node 1 hosts COLLECTION but not secondColl.
// Send a multi-collection query to trigger LazyCollectionRef get call
JettySolrRunner nodeWithoutSecondColl = jettys.get(1);
try (SolrClient client =
new HttpJettySolrClient.Builder(nodeWithoutSecondColl.getBaseUrl().toString()).build()) {

Expand Down
Loading