mirror of https://github.com/apache/lucene.git
SOLR-7362: enabling more logs
This commit is contained in:
parent
bba7b82ab9
commit
405e084a6c
|
@ -356,11 +356,12 @@ public class SolrConfigHandler extends RequestHandlerBase implements SolrCoreAwa
|
|||
if (ops.isEmpty()) {
|
||||
ZkController.touchConfDir(zkLoader);
|
||||
} else {
|
||||
log.debug("persisting params version : {}", Utils.toJSONString(params.toMap()));
|
||||
log.info("persisting params data : {}", Utils.toJSONString(params.toMap()));
|
||||
int latestVersion = ZkController.persistConfigResourceToZooKeeper(zkLoader,
|
||||
params.getZnodeVersion(),
|
||||
RequestParams.RESOURCE,
|
||||
params.toByteArray(), true);
|
||||
log.info("persisted to version : {} ", latestVersion);
|
||||
waitForAllReplicasState(req.getCore().getCoreDescriptor().getCloudDescriptor().getCollectionName(),
|
||||
req.getCore().getCoreDescriptor().getCoreContainer().getZkController(),
|
||||
RequestParams.NAME,
|
||||
|
|
|
@ -167,7 +167,9 @@ public class TestSolrConfigHandler extends RestTestBase {
|
|||
}
|
||||
|
||||
public static void runConfigCommand(RestTestHarness harness, String uri, String payload) throws IOException {
|
||||
String response = harness.post(uri, SolrTestCaseJ4.json(payload));
|
||||
String json = SolrTestCaseJ4.json(payload);
|
||||
log.info("going to send config command. path {} , payload: ", uri, payload);
|
||||
String response = harness.post(uri, json);
|
||||
Map map = (Map) ObjectBuilder.getVal(new JSONParser(new StringReader(response)));
|
||||
assertNull(response, map.get("errors"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue