[ 
https://issues.apache.org/jira/browse/SOLR-7081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14307734#comment-14307734
 ] 

Christine Poerschke commented on SOLR-7081:
-------------------------------------------

Here's extract of interesting things from the test (`ant test 
-Dtestcase=DoubleTestMiniSolrCloudCluster`) output:

{code}
   [junit4]   2> 37011 T207 oasc.SolrException.log ERROR Failed to delete 
instance dir for core:testSolrCloudCollection_shard1_replica2 
dir:/mydirectory/solr/build/solr-core/test/J0/temp/solr.cloud.DoubleTestMiniSolrCloudCluster
 A33CCC8883EFD522-001/tempDir-001/./testSolrCloudCollection_shard1_replica2
   [junit4]   2> 37012 T207 oasc.ElectionContext.cancelElection canceling 
election 
/collections/testSolrCloudCollection/leader_elect/shard1/election/93266847936610328-core_node2-n_0000000003
   ...
   [junit4]   2> 37024 T206 oasc.SolrException.log ERROR Failed to delete 
instance dir for core:testSolrCloudCollection_shard1_replica1 
dir:/mydirectory/solr/build/solr-core/test/J0/temp/solr.cloud.DoubleTestMiniSolrCloudCluster
 A33CCC8883EFD522-001/tempDir-001/./testSolrCloudCollection_shard1_replica1
   [junit4]   2> 37024 T206 oasc.ElectionContext.cancelElection canceling 
election 
/collections/testSolrCloudCollection/leader_elect/shard1/election/93266847936610328-core_node3-n_0000000002
{code}
Some errors deleting the instance directory (on T206 and T207).

{code}
   [junit4]   2> 37677 T13 
oasc.TestMiniSolrCloudCluster.waitForCollectionToDisappear Wait for collection 
to disappear - collection: testSolrCloudCollection failOnTimeout:true timeout 
(sec):330
   ...
   [junit4]   2> 37679 T13 
oasc.TestMiniSolrCloudCluster.waitForCollectionToDisappear Collection has 
disappeared - collection: testSolrCloudCollection
{code}
But the collection is being reported as having disappeared (on T13).

{code}
   [junit4]   2> 37710 T13 oasu.DefaultSolrCoreState.closeIndexWriter closing 
IndexWriter with IndexWriterCloser
   [junit4]   2> 37709 T212 oasco.ClusterStateMutator.createCollection building 
a new cName: testSolrCloudCollection
   [junit4]   2> 37716 T13 oasc.SolrCore.closeSearcher 
[testSolrCloudCollection_shard2_replica2] Closing main searcher on request.
{code}
Though on T13 there are also still traces of shard2 replica still being around 
(after the reported disappearance of the collection). Note that this is shard2 
and the deleting errors earlier were for shard1. At this point T212 is 
beginning the second create operation.

Now on T264 some replaying of operations (delete sub-operations?).
{code}
   [junit4]   2> 37793 T264 oasc.Overseer$ClusterStateUpdater.run Replaying 
operations from work queue.
   [junit4]   2> 37794 T264 oasc.Overseer$ClusterStateUpdater.run 
processMessage: queueSize: 0, message = {
   [junit4]   2>          "core":"testSolrCloudCollection_shard2_replica2",
   [junit4]   2>          "core_node_name":"core_node4",
   [junit4]   2>          "roles":null,
   [junit4]   2>          "base_url":"http://127.0.0.1:55554/solr";,
   [junit4]   2>          "node_name":"127.0.0.1:55554_solr",
   [junit4]   2>          "numShards":"2",
   [junit4]   2>          "state":"down",
   [junit4]   2>          "shard":"shard2",
   [junit4]   2>          "collection":"testSolrCloudCollection",
   [junit4]   2>          "operation":"state"}
   [junit4]   2> 37795 T264 oasco.ReplicaMutator.updateState Update state 
numShards=2 message={
   [junit4]   2>          "core":"testSolrCloudCollection_shard2_replica2",
   [junit4]   2>          "core_node_name":"core_node4",
   [junit4]   2>          "roles":null,
   [junit4]   2>          "base_url":"http://127.0.0.1:55554/solr";,
   [junit4]   2>          "node_name":"127.0.0.1:55554_solr",
   [junit4]   2>          "numShards":"2",
   [junit4]   2>          "state":"down",
   [junit4]   2>          "shard":"shard2",
   [junit4]   2>          "collection":"testSolrCloudCollection",
   [junit4]   2>          "operation":"state"}
   [junit4]   2> 37796 T264 oasco.ClusterStateMutator.createCollection building 
a new cName: testSolrCloudCollection
{code}
Following the replay the second collection create progresses on T264.

{code}
   [junit4]   2> 41121 T280 oasc.OverseerCollectionProcessor.processMessage 
WARN OverseerCollectionProcessor.processMessage : create , {
   [junit4]   2>          "operation":"create",
   [junit4]   2>          "fromApi":"true",
   [junit4]   2>          "name":"testSolrCloudCollection",
   [junit4]   2>          "replicationFactor":"2",
   [junit4]   2>          "collection.configName":"solrCloudCollectionConfig",
   [junit4]   2>          "numShards":"2",
   [junit4]   2>          "stateFormat":"2",
   [junit4]   2>          "property.solr.tests.ramBufferSizeMB":"100",
   [junit4]   2>          "property.solr.tests.maxIndexingThreads":"-1",
   [junit4]   2>          
"property.solr.tests.mergeScheduler":"org.apache.lucene.index.ConcurrentMergeScheduler",
   [junit4]   2>          "property.config":"solrconfig-tlog.xml",
   [junit4]   2>          "property.solr.tests.maxBufferedDocs":"100000",
   [junit4]   2>          
"property.solr.tests.mergePolicy":"org.apache.lucene.index.TieredMergePolicy",
   [junit4]   2>          
"property.solr.directoryFactory":"solr.RAMDirectoryFactory"}
   ...
   [junit4]   2> 41122 T280 oasc.SolrException.log ERROR Collection: 
testSolrCloudCollection operation: create 
failed:org.apache.solr.common.SolrException: collection already exists: 
testSolrCloudCollection
   [junit4]   2>                at 
org.apache.solr.cloud.OverseerCollectionProcessor.createCollection(OverseerCollectionProcessor.java:2314)
   [junit4]   2>                at 
org.apache.solr.cloud.OverseerCollectionProcessor.processMessage(OverseerCollectionProcessor.java:605)
   [junit4]   2>                at 
org.apache.solr.cloud.OverseerCollectionProcessor$Runner.run(OverseerCollectionProcessor.java:2875)
   [junit4]   2>                at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   [junit4]   2>                at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2>                at java.lang.Thread.run(Thread.java:745)
{code}
But then on T280 the second collection create fails.

> create/delete/create collection (new test case)
> -----------------------------------------------
>
>                 Key: SOLR-7081
>                 URL: https://issues.apache.org/jira/browse/SOLR-7081
>             Project: Solr
>          Issue Type: Test
>            Reporter: Christine Poerschke
>            Priority: Minor
>
> Unexpectedly the second collection create fails (saying that the collection 
> already exists) despite the collection delete having apparently succeeded.
> Collection create/delete/create is probably an uncommon operational sequence 
> but perhaps the test failure indicates that something unexpected is happening 
> elsewhere.
> github pull request and test log extracts to follow.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to