risdenk commented on code in PR #1108:
URL: https://github.com/apache/solr/pull/1108#discussion_r1008064852


##########
solr/core/src/java/org/apache/solr/cloud/api/collections/SplitShardCmd.java:
##########
@@ -193,7 +194,9 @@ public boolean split(ClusterState clusterState, ZkNodeProps 
message, NamedList<O
     RTimerTree t;
     if (ccc.getCoreContainer().getNodeConfig().getMetricsConfig().isEnabled()) 
{
       // check disk space for shard split
-      if 
(Boolean.parseBoolean(System.getProperty(SHARDSPLIT_CHECKDISKSPACE_ENABLED, 
"true"))) {
+      if (!message.getBool(
+          SKIP_FREE_SPACE_CHECK,
+          
!Boolean.parseBoolean(System.getProperty(SHARDSPLIT_CHECKDISKSPACE_ENABLED, 
"true")))) {

Review Comment:
   Do we need both properties? Doesn't `SHARDSPLIT_CHECKDISKSPACE_ENABLED` 
handle the case we care about already?
   
   If you are running on HDFS you could set `SHARDSPLIT_CHECKDISKSPACE_ENABLED` 
to false?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to