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
DBZ-6763 Fix CI tests caused by MongoDbReplicaSet which is trying to stop not running containers almost infinitely #4947
Merged
rk3rn3r
merged 1 commit into
debezium:main
from
rk3rn3r:DBZ-6763_fix_CI_tests_for_MondoDbReplicaSet
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entire class is not designed as a fluent builder. I don't see a reason why a single message should behave differently. This should be in the builder. Please place it there and be careful about mixing various design patterns into single thing.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcechace This just goes back to your own comment here:
https://github.com/debezium/debezium/blob/main/debezium-testing/debezium-testing-testcontainers/src/main/java/io/debezium/testing/testcontainers/testhelper/RestExtensionTestInfrastructure.java#L135-L140
The Oracle Connect REST extension PR will then use this method instead of the code linked, but I decided to add it to this bugfix PR so it can be used early before we finish that other PR. Maybe you want to log a Jira to change and refactor this part/class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rk3rn3r There is a structure to those classes. Put it into the builder, pass it from the builder to the RS class and then over to the underlying containers in a similar fashion.
I don't see a need for Jira. The code was not refactored correctly and the PR was merged before I could review it. Please make it consistent with the rest of the class design. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcechace This is not how we work and I only applied a change that you suggested in the comment that I linked above, which was a good comment. The class is
Startable
and suggested to reflect a running container. Thus, a timeout config makes sense. Feel free to fix it that it fits your individual idea of that class or provide a Jira explaining what you want to achieve.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jira is here https://issues.redhat.com/browse/DBZ-7054
Timeout config does make sense. I have no problem with having it (we talked about that). I am just saying that the configuration wasn't added to that class consistently with other configuration options.