Skip to content

Commit 7a07853

Browse files
authored
Add SDK request logging to debug failures of S3BlobStoreRepositoryTests#testRequestStats (#89912)
Relates #88841
1 parent 79ec874 commit 7a07853

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/repository-s3/src/internalClusterTest/java/org/elasticsearch/repositories/s3/S3BlobStoreRepositoryTests.java

+7
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.elasticsearch.snapshots.SnapshotsService;
4242
import org.elasticsearch.snapshots.mockstore.BlobStoreWrapper;
4343
import org.elasticsearch.test.ESIntegTestCase;
44+
import org.elasticsearch.test.junit.annotations.TestLogging;
4445
import org.elasticsearch.threadpool.ThreadPool;
4546
import org.elasticsearch.xcontent.NamedXContentRegistry;
4647
import org.elasticsearch.xcontent.XContentFactory;
@@ -140,6 +141,12 @@ protected Settings nodeSettings(int nodeOrdinal, Settings otherSettings) {
140141
return builder.build();
141142
}
142143

144+
@Override
145+
@TestLogging(reason = "Enable request logging to debug #88841", value = "com.amazonaws.request:DEBUG")
146+
public void testRequestStats() throws Exception {
147+
super.testRequestStats();
148+
}
149+
143150
public void testEnforcedCooldownPeriod() throws IOException {
144151
final String repoName = randomRepositoryName();
145152
createRepository(

0 commit comments

Comments
 (0)