Skip to content
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

Sleep for 30 secs before flush cycles for collectd metrics #210

Merged
merged 3 commits into from
May 9, 2023

Conversation

sky333999
Copy link
Contributor

@sky333999 sky333999 commented May 8, 2023

Description of the issue

Collectd tests are currently failing with the following error:

2023/05/07 06:10:11 CollectD test group failed due to: %!w(*fmt.wrapError=&{Failed to complete setup after agent run due to: write udp 127.0.0.1:44705->127.0.0.1:25826: write: connection refused 0xc00026f400})

The issue seems to have started since https://github.com/aws/amazon-cloudwatch-agent-test/pull/165/files#diff-781bb3810ede78771b4deb63bb6bb797a2d06434f0d844429b5ad16a20304e0fR56-R88 was merged.

Description of changes

Adding a small sleep before the flush cycles seemingly fixes the issue but root cause analysis to understand why the first flush call does not receive a connection refused but the subsequent one does is pending.

License

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

Tests

@sky333999 sky333999 changed the title Sleep for 5 secs between flush cycles for collectd metrics Sleep for 30 secs before flush cycles for collectd metrics May 9, 2023
@sky333999 sky333999 marked this pull request as ready for review May 9, 2023 14:13
@sky333999 sky333999 requested a review from a team as a code owner May 9, 2023 14:13
@chadpatel chadpatel self-requested a review May 9, 2023 14:21
@sky333999 sky333999 merged commit 737cef1 into aws:main May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants