mbwaheed commented on a change in pull request #1223: SOLR-14213: Configuring
Solr Cloud to use Shared Storage
URL: https://github.com/apache/lucene-solr/pull/1223#discussion_r381679795
##########
File path:
solr/core/src/test/org/apache/solr/cloud/api/collections/SimpleSharedStorageCollectionTest.java
##########
@@ -76,6 +62,28 @@ public void testCreateCollection() throws Exception {
waitForState("Timed-out wait for collection to be created",
collectionName, clusterShape(1, 1));
assertTrue(cloudClient.getZkStateReader().getZkClient().exists(ZkStateReader.COLLECTIONS_ZKNODE
+ "/" + collectionName, false));
}
+
+ /**
+ * Test that verifies that a collection creation command for a "shared" type
collection fails
+ * if the cluster was not enabled with shared storage
+ */
+ @Test
+ public void testCreateCollectionSharedDisabled() throws Exception {
+ setupClusterSharedDisable(3);
Review comment:
Don't need 3 node cluster here, one should be enough?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]