You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2019/05/14 11:43:33 UTC

[lucene-solr] branch branch_8x updated: SOLR-13407: Make sure we always have the latest version of aliases in cache before asserting.

This is an automated email from the ASF dual-hosted git repository.

ab pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new 65d9b49  SOLR-13407: Make sure we always have the latest version of aliases in cache before asserting.
65d9b49 is described below

commit 65d9b4979f4c28410ac0deff9ec14091bddf3937
Author: Andrzej Bialecki <ab...@apache.org>
AuthorDate: Tue May 14 13:42:00 2019 +0200

    SOLR-13407: Make sure we always have the latest version of aliases in cache before asserting.
---
 solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java b/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java
index 32842dc..2ee0cfd 100644
--- a/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java
@@ -282,6 +282,8 @@ public class AliasIntegrationTest extends SolrCloudTestCase {
     setAliasProperty.process(cluster.getSolrClient());
     checkFooAndBarMeta(aliasName, zkStateReader);
     SolrCloudManager cloudManager = cluster.getJettySolrRunner(0).getCoreContainer().getZkController().getSolrCloudManager();
+    // make sure we have the latest version in cache
+    zkStateReader.aliasesManager.update();
     ClusterStateProvider stateProvider = cloudManager.getClusterStateProvider();
     List<String> collections = stateProvider.resolveAlias(aliasName);
     assertEquals(collections.toString(), 2, collections.size());
@@ -298,6 +300,7 @@ public class AliasIntegrationTest extends SolrCloudTestCase {
     setAliasProperty.addProperty(CollectionAdminParams.ROUTER_PREFIX + "foo","baz");
     setAliasProperty.process(cluster.getSolrClient());
     // refresh
+    zkStateReader.aliasesManager.update();
     stateProvider = cloudManager.getClusterStateProvider();
     assertTrue("should be a routed alias", stateProvider.isRoutedAlias(aliasName));