NIFI-8128: add support for specifying a password for Sentinel - #7481
NIFI-8128: add support for specifying a password for Sentinel#7481EndzeitBegins wants to merge 5 commits into
Conversation
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for the contribution @EndzeitBegins.
Including the Redis Server binary in the source repository is not a good strategy for testing due to size and version considerations. One option could be to evaluate an integration test using Testcontainers, but in absence of something else, it would be best to remove the server binary and associated integration test methods.
|
@exceptionfactory Thanks for the quick review. I understand. I was thinking the same, but assumed it might be okay-ish due to the fact, that the test library used I'll take a look at replacing If that proves to time consuming I'd propose to remove the binary and I think it's a good thing to at least have a test case that reproduces an undesired behaviour, before fixing it. Would you be fine with both approaches? |
|
I removed both the binary file and the dependency on the unmaintained embedded-redis test library. It proved a little more complicated than anticipated to get the tests working with Testcontainers, due to the auto-discovery mechanisms of Redis (Sentinel), but it seems to work now. I would appreciate if you'd take another look at the PR, @exceptionfactory. |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for making the changes @EndzeitBegins! Using Testcontainers look much better than the previous approach. I noted a couple very minor recommendations, but this looks like a good way to go.
Co-authored-by: exceptionfactory <exceptionfactory@apache.org>
|
I applied the recommended changes, @exceptionfactory. Thank you for the code review. |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for working through the feedback @EndzeitBegins, the latest changes look good and the updated integration tests with Testcontainers work as expected. +1 merging
Summary
NIFI-8128
In order to reproduce the issue in a test case the Redis Sentinel setting
sentinel auth-passis required, which is only available in a newer Redis server binary as the one bundled into thecom.github.kstyrc:embedded-redisdependency.Thus I bundled a more recent binary (for Linux only).
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation