Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13563

SPLITSHARD - Using LINK method fails on disk usage checks



    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.7.2
    • 8.4
    • AutoScaling, SolrCloud
    • None


      Raised this on the mailing list and was told to open an issue, copy/pasting the context here:


      Using Solr 7.7.2 Docker image, testing some of the new autoscale features, huge fan so far. Tested with the link method on a 2GB core and found that it took less than 1MB of additional space. Filled the core quite a bit larger, 12GB of a 20GB PVC, and now splitting the shard fails with the following error message on my overseer:




      2019-06-18 16:27:41.754 ERROR 
      [c:test_autoscale s:shard1  ] 
      o.a.s.c.a.c.OverseerCollectionMessageHandler Collection: test_autoscale 
      operation: splitshard
      failed:org.apache.solr.common.SolrException: not enough free disk space 
      to perform index split on node, required: 
      23.35038321465254, available: 7.811378479003906
          at org.apache.solr.cloud.api.collections.SplitShardCmd.checkDiskSpace(SplitShardCmd.java:567)
          at org.apache.solr.cloud.api.collections.SplitShardCmd.split(SplitShardCmd.java:138)
          at org.apache.solr.cloud.api.collections.SplitShardCmd.call(SplitShardCmd.java:94)
          at org.apache.solr.cloud.OverseerTaskProcessor$Runner.run(OverseerTaskProcessor.java:505)
          at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:834)



      I attempted sending the request to the node itself to see if it did anything different, but no luck. My parameters are (Note Python formatting as that is my language of choice):


      splitparams = {'action':'SPLITSHARD',



      And this is confirmed by the log message from the node itself:


      2019-06-18 16:27:41.730 INFO  
      (qtp1107530534-16) [c:test_autoscale   ] o.a.s.s.HttpSolrCall [admin] 
      webapp=null path=/admin/collections 
      status=0 QTime=20



      While it is true I do not have enough space if I were using the rewrite method, the link method on a 2GB core used an additional less than 1MB of space. Is there something I am missing here? is there an option to disable the disk space check that I need to pass? I can't find anything in the documentation at this point.



      After this initial email, I found the issue and compiled with the attached patch and running the modification on the overseer only resolved the issue, as the overseer is what runs the check.




        1. disk_check.patch
          0.8 kB
          Andrew Kettmann



            ab Andrzej Bialecki
            akettmann Andrew Kettmann
            0 Vote for this issue
            4 Start watching this issue