Add timeout for waiting on compactor to become ACTIVE in the ring.#4262
Conversation
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
bboreham
left a comment
There was a problem hiding this comment.
Thanks for the PR! It's broadly ok, but a couple of style points.
It looks to me like the tests you've added test similar code, rather than the code you added. If I'm right, could you test the actual code?
What is the user experience if the timeout is hit? Do they see anything in the logs to let them know what happened?
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
I added tests to actually test the starting of the compactor. I also added some logging as to make it clear to why the compactor failed to start. |
|
Sorry but we have begun the process of cutting a new release; please rebase from |
pracucci
left a comment
There was a problem hiding this comment.
Good job and thanks for addressing my feedback. Way easier than the initial version. I left few last comments 🙏
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Albert <ac1214@users.noreply.github.com>
|
Would I be able to get a second review on this PR and get the workflow triggered again? @bboreham |
Signed-off-by: Albert <ac1214@users.noreply.github.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
…ortexproject#4262) * add MaxRetries to WaitInstanceState Signed-off-by: Albert <ac1214@users.noreply.github.com> * update CHANGELOG.md Signed-off-by: Albert <ac1214@users.noreply.github.com> * Add timeout for waiting on compactor to become ACTIVE in the ring. Signed-off-by: Albert <ac1214@users.noreply.github.com> * add MaxRetries variable back to WaitInstanceState Signed-off-by: Albert <ac1214@users.noreply.github.com> * Fix linting issues Signed-off-by: Albert <ac1214@users.noreply.github.com> * Remove duplicate entry from changelog Signed-off-by: Albert <ac1214@users.noreply.github.com> * Address PR comments and set timeout to be configurable Signed-off-by: Albert <ac1214@users.noreply.github.com> * Address PR comments and fix tests Signed-off-by: Albert <ac1214@users.noreply.github.com> * Update unit tests Signed-off-by: Albert <ac1214@users.noreply.github.com> * Update changelog and fix linting Signed-off-by: Albert <ac1214@users.noreply.github.com> * Fixed CHANGELOG entry order Signed-off-by: Marco Pracucci <marco@pracucci.com> Co-authored-by: Albert <ac1214@users.noreply.github.com> Co-authored-by: Marco Pracucci <marco@pracucci.com> Signed-off-by: Alvin Lin <alvinlin@amazon.com>
Signed-off-by: Albert ac1214@users.noreply.github.com
What this PR does:
Addresses #3914
Which issue(s) this PR fixes:
Fixes #3914
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]