Skip to content

Commit 4ba7971

Browse files
committed
TEST: Update logging for testAckedIndexing
- Log the response of indexing requests - Correct logging setting for discovery package
1 parent b34d648 commit 4ba7971

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/test/java/org/elasticsearch/discovery/ClusterDisruptionIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ public class ClusterDisruptionIT extends AbstractDisruptionTestCase {
8181
* <p>
8282
* This test is a superset of tests run in the Jepsen test suite, with the exception of versioned updates
8383
*/
84-
@TestLogging("_root:DEBUG,org.elasticsearch.action.bulk:TRACE,org.elasticsearch.action.get:TRACE,discovery:TRACE," +
84+
@TestLogging("_root:DEBUG,org.elasticsearch.action.bulk:TRACE,org.elasticsearch.action.get:TRACE," +
85+
"org.elasticsearch.discovery:TRACE,org.elasticsearch.action.support.replication:TRACE," +
8586
"org.elasticsearch.cluster.service:TRACE,org.elasticsearch.indices.recovery:TRACE," +
8687
"org.elasticsearch.indices.cluster:TRACE,org.elasticsearch.index.shard:TRACE")
8788
public void testAckedIndexing() throws Exception {
@@ -137,7 +138,7 @@ public void testAckedIndexing() throws Exception {
137138
.get(timeout);
138139
assertEquals(DocWriteResponse.Result.CREATED, response.getResult());
139140
ackedDocs.put(id, node);
140-
logger.trace("[{}] indexed id [{}] through node [{}]", name, id, node);
141+
logger.trace("[{}] indexed id [{}] through node [{}], response [{}]", name, id, node, response);
141142
} catch (ElasticsearchException e) {
142143
exceptedExceptions.add(e);
143144
final String docId = id;

0 commit comments

Comments
 (0)