title: Solr cloud shard splitting fails when index type is native or simple
body: <p>I am using solr 4.10.2. I tried to perform a shard split on my solr cloud test cluster. It fails all the time if the index type is set to "native" or "simple".</p>
  
  <p><strong>Is that normal? I can perform shard splitting if the index type is set to "single" or "none".
  They advertise that shard splitting can be done while solr is running and i hardly imagine poking around changing the lock type of a production server...</strong></p>
  
  <p>Here is the test environment:</p>
  
  <p>1 shard, 2 nodes, 1 collection. 
  Initially the collection was empty. I added few documents, verified that they have been replicated. All worked. </p>
  
  <p>Issued the split shard command:</p>
  
  <p>server1:port/solr/admin/collections?action=SPLITSHARD&amp;collection=mycollection&amp;shard=shard1&amp;async=myhandle</p>
  
  <p>After verifying that the operation had finished, by calling </p>
  
  <p>server1:port/solr/admin/collections?action=REQUESTSTATUS&amp;requestid=myhandle</p>
  
  <p>The status was "complete".</p>
  
  <p>Here is the log:</p>
  
  <pre><code>OverseerCollectionProcessor.processMessage : splitshard , {
    "operation":"splitshard",
    "shard":"shard1",
    "collection":"mycollection",
    "async":"myhandle"}
  
  
    1/26/2015, 1:49:02 PM
  ERROR
  CoreContainer
  Error creating core [mycollection_shard1_0_replica1]: Error opening new searcher
  org.apache.solr.common.SolrException: Error opening new searcher
      at org.apache.solr.core.SolrCore.&lt;init&gt;(SolrCore.java:873)
      at org.apache.solr.core.SolrCore.&lt;init&gt;(SolrCore.java:646)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:491)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:466)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:575)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:199)
      at org.apache.solr.handler.admin.CoreAdminHandler$ParallelCoreAdminHandlerThread.run(CoreAdminHandler.java:1234)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
  Caused by: org.apache.solr.common.SolrException: Error opening new searcher
      at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1565)
      at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1677)
      at org.apache.solr.core.SolrCore.&lt;init&gt;(SolrCore.java:845)
      ... 9 more
  Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/nfs/solr/index/write.lock
      at org.apache.lucene.store.Lock.obtain(Lock.java:89)
      at org.apache.lucene.index.IndexWriter.&lt;init&gt;(IndexWriter.java:753)
      at org.apache.solr.update.SolrIndexWriter.&lt;init&gt;(SolrIndexWriter.java:77)
      at org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64)
      at org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSolrCoreState.java:279)
      at org.apache.solr.update.DefaultSolrCoreState.getIndexWriter(DefaultSolrCoreState.java:111)
      at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1528)
      ... 11 more
  
      org.apache.solr.common.SolrException: Error opening new searcher
      at org.apache.solr.core.SolrCore.&lt;init&gt;(SolrCore.java:873)
      at org.apache.solr.core.SolrCore.&lt;init&gt;(SolrCore.java:646)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:491)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:466)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:575)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:199)
      at org.apache.solr.handler.admin.CoreAdminHandler$ParallelCoreAdminHandlerThread.run(CoreAdminHandler.java:1234)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
  Caused by: org.apache.solr.common.SolrException: Error opening new searcher
      at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1565)
      at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1677)
      at org.apache.solr.core.SolrCore.&lt;init&gt;(SolrCore.java:845)
      ... 9 more
  Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/nfs/solr/index/write.lock
      at org.apache.lucene.store.Lock.obtain(Lock.java:89)
      at org.apache.lucene.index.IndexWriter.&lt;init&gt;(IndexWriter.java:753)
      at org.apache.solr.update.SolrIndexWriter.&lt;init&gt;(SolrIndexWriter.java:77)
      at org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64)
      at org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSolrCoreState.java:279)
      at org.apache.solr.update.DefaultSolrCoreState.getIndexWriter(DefaultSolrCoreState.java:111)
      at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1528)
      ... 11 more
  
      1/26/2015, 1:49:26 PM
  ERROR
  SolrIndexWriter
  SolrIndexWriter was not closed prior to finalize(),​ indicates a bug -- POSSIBLE RESOURCE LEAK!!!
  1/26/2015, 1:49:26 PM
  ERROR
  SolrIndexWriter
  Error closing IndexWriter
  java.lang.NullPointerException
      at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3230)
      at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3203)
      at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:907)
      at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:984)
      at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:954)
      at org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:129)
      at org.apache.solr.update.SolrIndexWriter.finalize(SolrIndexWriter.java:182)
      at java.lang.System$2.invokeFinalize(System.java:1213)
      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
      at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)
  </code></pre>