Skip to content

Apache Lucene open-source search software

SOLR-7859: Fix bin/post to rely on SolrJ for RTimer use

Erik Hatcher84c8c5e2285a
diff --git a/solr/bin/post b/solr/bin/post
index 39b2431c656..1207179003e 100755
--- a/solr/bin/post
+++ b/solr/bin/post
@@ -220,8 +220,9 @@ if [[ -n "$RECURSIVE" ]]; then
PROPS+=('-Drecursive=yes')
fi
-echo "$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
-"$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
+SOLRJ_JAR=("$SOLR_TIP/dist"/solr-solrj-*.jar)
+echo "$JAVA" -classpath "${TOOL_JAR[0]}:${SOLRJ_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
+"$JAVA" -classpath "${TOOL_JAR[0]}:${SOLRJ_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
# post smoker:
# bin/post -c signals -out yes -type application/json -d '[{"id": 2, "val": 0.47}]'