Healthcheck v2 failed#13525
Conversation
liudezhi2098
left a comment
There was a problem hiding this comment.
can you add a test?
c32a2ef to
b50c1ab
Compare
|
@liudezhi2098 The test is already covered by |
eolivelli
left a comment
There was a problem hiding this comment.
This PR looks like adding some tweaks specific for this special topic.
Did you check if there is a better way?
(I am sorry I don't have time today to send you a suggestion)
49c2da7 to
e1c4aec
Compare
@eolivelli The direct reason is that heartbeat namespace was not created. just registered by |
|
/pulsarbot run-failure-checks |
|
There may also be namespaces under the |
e1c4aec to
b168fa6
Compare
Fixed in the last commit. |
|
I think |
|
/pulsarbot run-failure-checks |
5539b5c to
edde84b
Compare
* fix healthcheck v2 * fix failed testHealthCheckupV2 because of error web port Co-authored-by: gavingaozhangmin <gavingaozhangmin@didiglobal.com> (cherry picked from commit b38d850)
* fix healthcheck v2 * fix failed testHealthCheckupV2 because of error web port Co-authored-by: gavingaozhangmin <gavingaozhangmin@didiglobal.com> (cherry picked from commit b38d850)
…#14658) Original PR #14367 Because the PR #14367 is based on PR #14091, so I want to cherry-pick these two PRs to branch-2.9, the PR #13525 is also needed. --- Fix Issue: #14362 ### Motivation According to relative PR #7724, we will force delete all subscriptions when calling ``healthCheck`` REST API. but it has a race condition when two threads call this API. Please consider this case: > Thread A: Clean up all subscriptions, then create a reader. > Thread B: Prepare to force delete all subscriptions. So, in this case, the reader of thread A is deleted and then an NPE or other exception occurs. ### Modifications - Use ``Completable#handle`` to fix problem 1, the reader needs to be closed regardless of whether there is an exception. - Recheck the subscription after closing reading, and force deletion if it still exists after closing reading. - Added multi-threaded tests for health checks.
|
The #14658 cherry-pick this PR to |
fix #13520
Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
doc-required(If you need help on updating docs, create a doc issue)
no-need-doc(Please explain why)
doc(If this PR contains doc changes)