Skip to content

Commit 08d3f4c

Browse files
authored
increase retry times for log/trace validation (#288)
*Issue description:* *Description of changes:* Increase retry times for log/trace validation to resolve the random node canary failures. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent bf26943 commit 08d3f4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

validator/src/main/java/com/amazon/aoc/validators/CWLogValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
@Log4j2
3838
public class CWLogValidator implements IValidator {
39-
private static int DEFAULT_MAX_RETRY_COUNT = 20;
39+
private static int DEFAULT_MAX_RETRY_COUNT = 40;
4040

4141
private MustacheHelper mustacheHelper = new MustacheHelper();
4242
private Context context;

validator/src/main/java/com/amazon/aoc/validators/ValidatorFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public IValidator launchValidator(ValidationConfig validationConfig) throws Exce
4242
FileConfig expectedData = null;
4343
switch (validationConfig.getValidationType()) {
4444
case "trace":
45-
validator = new TraceValidator(new XRayService(context.getRegion()), 2, 5);
45+
validator = new TraceValidator(new XRayService(context.getRegion()), 2, 10);
4646
expectedData = validationConfig.getExpectedTraceTemplate();
4747
break;
4848
case "cw-metric":

0 commit comments

Comments
 (0)