Skip to content

Commit

Permalink
TEST: Update logging for testAckedIndexing
Browse files Browse the repository at this point in the history
- Log the response of indexing requests
- Correct logging setting for discovery package
  • Loading branch information
dnhatn committed Jan 15, 2018
1 parent 5ed25f1 commit 6c297ad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public class ClusterDisruptionIT extends AbstractDisruptionTestCase {
* <p>
* This test is a superset of tests run in the Jepsen test suite, with the exception of versioned updates
*/
@TestLogging("_root:DEBUG,org.elasticsearch.action.bulk:TRACE,org.elasticsearch.action.get:TRACE,discovery:TRACE," +
@TestLogging("_root:DEBUG,org.elasticsearch.action.bulk:TRACE,org.elasticsearch.action.get:TRACE," +
"org.elasticsearch.discovery:TRACE,org.elasticsearch.action.support.replication:TRACE," +
"org.elasticsearch.cluster.service:TRACE,org.elasticsearch.indices.recovery:TRACE," +
"org.elasticsearch.indices.cluster:TRACE,org.elasticsearch.index.shard:TRACE")
public void testAckedIndexing() throws Exception {
Expand Down Expand Up @@ -137,7 +138,7 @@ public void testAckedIndexing() throws Exception {
.get(timeout);
assertEquals(DocWriteResponse.Result.CREATED, response.getResult());
ackedDocs.put(id, node);
logger.trace("[{}] indexed id [{}] through node [{}]", name, id, node);
logger.trace("[{}] indexed id [{}] through node [{}], response [{}]", name, id, node, response);
} catch (ElasticsearchException e) {
exceptedExceptions.add(e);
final String docId = id;
Expand Down

0 comments on commit 6c297ad

Please sign in to comment.