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

move collectd-apache tests to use golden files. #4534

Merged
merged 2 commits into from Mar 26, 2024
Merged

move collectd-apache tests to use golden files. #4534

merged 2 commits into from Mar 26, 2024

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Mar 26, 2024

No description provided.

@atoulme atoulme requested review from a team as code owners March 26, 2024 05:43
@@ -8,5 +8,4 @@ fi

"$KAFKA_BIN"/kafka-console-consumer.sh \
--bootstrap-server "$KAFKA_BROKER" \
--topic sfx-employee \
--max-messages $((10 + RANDOM % 100))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like important tribal knowledge: any reason why we're removing the --max-messages flag? A short description would suffice, not worried about shipping this modified test as proposed.

Copy link
Contributor

@samiura samiura Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this relate to @atoulme 's slack message gist.
Kafka tests would not detect some of kafka's metrics based on the activity of kafka itself. There were multiple things to it:
The message sender had a random number of messages to send. It would send 10 + at most 100.
The broker would only emit metrics related to its roll stats if it rolled a segment.

In other word this will ensure Kafka's behavior more deterministic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beat me to it

@atoulme atoulme merged commit 17c55c9 into main Mar 26, 2024
27 checks passed
@delete-merged-branch delete-merged-branch bot deleted the apache_golden branch March 26, 2024 22:05
@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants