Skip to content

Commit d6e16b6

Browse files
ywangdsmalyshev
authored andcommitted
[Test] Enable logging for AmazonHttpClient (elastic#116560)
If sending request fails locally without reaching the server, the retryable exception is logged differently. This PR enables the logging for this scenario. Relates: elastic#88841 Relates: elastic#101608
1 parent 649a3bf commit d6e16b6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ protected Settings nodeSettings(int nodeOrdinal, Settings otherSettings) {
188188
}
189189

190190
@Override
191-
@TestIssueLogging(issueUrl = "https://github.com/elastic/elasticsearch/issues/88841", value = "com.amazonaws.request:DEBUG")
191+
@TestIssueLogging(
192+
issueUrl = "https://github.com/elastic/elasticsearch/issues/88841",
193+
value = "com.amazonaws.request:DEBUG,com.amazonaws.http.AmazonHttpClient:TRACE"
194+
)
192195
public void testRequestStats() throws Exception {
193196
super.testRequestStats();
194197
}
@@ -234,7 +237,10 @@ public void testAbortRequestStats() throws Exception {
234237
assertEquals(assertionErrorMsg, mockCalls, sdkRequestCounts);
235238
}
236239

237-
@TestIssueLogging(issueUrl = "https://github.com/elastic/elasticsearch/issues/101608", value = "com.amazonaws.request:DEBUG")
240+
@TestIssueLogging(
241+
issueUrl = "https://github.com/elastic/elasticsearch/issues/101608",
242+
value = "com.amazonaws.request:DEBUG,com.amazonaws.http.AmazonHttpClient:TRACE"
243+
)
238244
public void testMetrics() throws Exception {
239245
// Create the repository and perform some activities
240246
final String repository = createRepository(randomRepositoryName(), false);

0 commit comments

Comments
 (0)