Repository navigation
test: Fix the NiFi upgrade kuttl test - #1032
Open
siegfriedweber wants to merge 1 commit into
Open
siegfriedweber wants to merge 1 commit into
siegfriedweber wants to merge 1 commit into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The upgrade test was flaky, and failed outright once it got past the rotation. Two causes:
readyReplicasreturns to 3 after every single pod is replaced, so step 7 started against a half-upgraded cluster and retried against restarting pods.flow.pylost itsrun/querysubcommands when it was rewritten for NiFi 2.x in e10a273, so step 7's arguments were silently ignored:queryre-uploaded the process group, restarted the canvas and counted an arbitrary copy. Every retry of the assertion added another copy, so the flow file counts before and after the upgrade could never match.Fixed by additionally asserting
updatedReplicasin step 6, which only reaches 3 once every pod runs the new revision (the sleep in06-sleep.yamlis still required, since both fields are also 3 before the rotation starts), and by restoringrun/query, requiring exactly one process group, exiting non-zero on failure and moving informational output to stderr so stdout holds only the count. That last change also revives the so-far-deadgrep -Eov 'Error|\b0\b'guard.Definition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker