SOLR-7362: enabling more logs

This commit is contained in:
Noble Paul 2016-02-24 15:53:11 +05:30
parent bba7b82ab9
commit 405e084a6c
2 changed files with 5 additions and 2 deletions

View File

@ -356,11 +356,12 @@ public class SolrConfigHandler extends RequestHandlerBase implements SolrCoreAwa
if (ops.isEmpty()) { if (ops.isEmpty()) {
ZkController.touchConfDir(zkLoader); ZkController.touchConfDir(zkLoader);
} else { } else {
log.debug("persisting params version : {}", Utils.toJSONString(params.toMap())); log.info("persisting params data : {}", Utils.toJSONString(params.toMap()));
int latestVersion = ZkController.persistConfigResourceToZooKeeper(zkLoader, int latestVersion = ZkController.persistConfigResourceToZooKeeper(zkLoader,
params.getZnodeVersion(), params.getZnodeVersion(),
RequestParams.RESOURCE, RequestParams.RESOURCE,
params.toByteArray(), true); params.toByteArray(), true);
log.info("persisted to version : {} ", latestVersion);
waitForAllReplicasState(req.getCore().getCoreDescriptor().getCloudDescriptor().getCollectionName(), waitForAllReplicasState(req.getCore().getCoreDescriptor().getCloudDescriptor().getCollectionName(),
req.getCore().getCoreDescriptor().getCoreContainer().getZkController(), req.getCore().getCoreDescriptor().getCoreContainer().getZkController(),
RequestParams.NAME, RequestParams.NAME,

View File

@ -167,7 +167,9 @@ public class TestSolrConfigHandler extends RestTestBase {
} }
public static void runConfigCommand(RestTestHarness harness, String uri, String payload) throws IOException { 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))); Map map = (Map) ObjectBuilder.getVal(new JSONParser(new StringReader(response)));
assertNull(response, map.get("errors")); assertNull(response, map.get("errors"));
} }