Skip to content

Fix: canary not running #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 12, 2022
Merged

Fix: canary not running #118

merged 8 commits into from
Sep 12, 2022

Conversation

markkuhn
Copy link
Contributor

@markkuhn markkuhn commented Aug 26, 2022

Description of changes

Canary hasn't been running since fba1075.
The execution waits for environmentFuture.join() indefinitely in the MetricsLogger flusher.

This is similar to #95 but I cannot yet confirm this PR will resolve it.

The change I have made is to replace all org.javatuples.Pair in the environments package with java.util.Map since calling new Pair<>() gets the whole thread parked indefinitely. It might be a bug in javatuples or we might not be using it properly, this I am unsure of.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@markkuhn markkuhn self-assigned this Aug 26, 2022
@markkuhn markkuhn added the bug Something isn't working label Aug 30, 2022
@markkuhn markkuhn changed the title explicitly set ecs env Fix: canary not running Aug 30, 2022
@markkuhn markkuhn requested review from evanuk and waifa August 30, 2022 00:36
@markkuhn markkuhn requested a review from paggynie August 31, 2022 20:45
@markkuhn markkuhn requested review from evanuk and waifa September 2, 2022 18:46
@markkuhn
Copy link
Contributor Author

markkuhn commented Sep 2, 2022

Canary successfully running here.

@markkuhn markkuhn requested a review from gordonpn September 2, 2022 19:56
@markkuhn markkuhn requested review from Himtanaya and removed request for waifa September 9, 2022 16:13
@markkuhn markkuhn merged commit 3a7e706 into awslabs:master Sep 12, 2022
@markkuhn
Copy link
Contributor Author

Update: Root cause was org.javatuples.Pair not being present in the build.gradle file in canarytests. This issue was resolves by using Map instead since it wasn't relying on a non-existent package.

@markkuhn markkuhn deleted the canary-fix branch September 18, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants