We found that 5M of our 12M statistics records did not have a uid. The absence of this field caused the sharding process to fail.
-
To check how many of your stats records don't have a uid, run a query like so:
curl --globoff 'http://localhost:8080/solr/statistics/select?q=-uid:[*+TO+*]&rows=0&indent=true' | grep numFound
-
Add the following to solr.xml
<core name="tstatistics" instanceDir="tstatistics" />
-
Actually create that instance directory and copy over the conf subdirectory from the statistics core