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

Finish generating LogDirectory before booting up any executable #41

Merged
merged 15 commits into from
Jan 7, 2025

Conversation

ryan-gang
Copy link
Contributor

@ryan-gang ryan-gang commented Jan 6, 2025

This pull request makes several changes to improve the logging consistency across multiple stages of the Kafka tester. The primary change is the replacement of the logger variable with stageLogger in various functions to ensure that the correct logger instance is used throughout the stages.

Improvements to logging consistency:

…odedCorrelationId function

- Replaced instances of logger with stageLogger for consistent logging.
- Enhanced error handling by ensuring proper closure of the broker.
- Streamlined log messages for better clarity and maintainability.
…ction

- Replaced instances of logger with stageLogger for consistent logging.
- Improved error handling by ensuring proper closure of the broker.
- Streamlined log messages for better clarity and maintainability.
… function

- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined log messages for better clarity and maintainability.
- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined log messages for better clarity and maintainability.
@ryan-gang ryan-gang self-assigned this Jan 6, 2025
…s function

- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined log messages for better clarity and maintainability.
…function

- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of clients using a deferred function.
- Streamlined log messages for better clarity and maintainability.
…Key function

- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined log messages for better clarity and maintainability.
…unction

- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined log messages for better clarity and maintainability.
…icID function

- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined log messages for better clarity and maintainability.
…unction

- Replaced instances of logger with stageLogger for consistent logging throughout the function.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined the execution flow by moving the broker run check to a more logical position.
- Replaced instances of logger with stageLogger for consistent logging throughout the test functions.
- Improved error handling by ensuring proper closure of the broker using a deferred function.
- Streamlined log messages for better clarity and maintainability across testAPIVersionWithDescribeTopicPartitions, testDTPartitionWithUnknownTopic, testDTPartitionWithTopicAndSinglePartition, testDTPartitionWithTopicAndMultiplePartitions2, and testDTPartitionWithTopics functions.
@andy1li
Copy link
Member

andy1li commented Jan 6, 2025

Thanks @harveysanders for highlighting the issue!

@ryan-gang ryan-gang requested a review from andy1li January 6, 2025 08:17
Copy link
Member

@andy1li andy1li left a comment

Choose a reason for hiding this comment

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

LGreatTM!

@ryan-gang ryan-gang merged commit d726367 into main Jan 7, 2025
2 checks passed
@ryan-gang ryan-gang deleted the logs-before-boot branch January 7, 2025 13:39
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.

2 participants