Affects Version/s: 8.4
Fix Version/s: None
Shard Split on HDFS Index will evaluate local disc space instead of HDFS space
When performing a shard split on an index that is stored on HDFS the SplitShardCmd however evaluates the free disc space on the local file system of the server where Solr is installed.
SplitShardCmd assumes that its main phase (when the Lucene index is being split) always executes on the local file system of the shard leader; and indeed the ShardSplitCmd.checkDiskSpace() checks the local file system's free disk space - even though the actual data is written to the HDFS Directory so it (almost) doesn't affect the local FS (except for core.properties file).
My setup to reproduce the issue:
- Solr deployed on Openshift with local disc of about 5GB
- HDFS configuration based on solrconfig.xml with
- Split command: