Skip to content
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

[v24.1.x] CORE-5766 Validate target node id when collecting health report #22910

Conversation

mmaslankaprv
Copy link
Member

Backport of PR #22811

Introduced an error code that indicates the node that the request was
sent to is not the one that received it.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 221a0b7)
Added validation that checks if the node replying request is the one the
request was sent to. The validation is important as the receiving node
id might have changed while the RPC endpoint address stays the same.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit c514c9e)
Added a field indicating what node the request was targeted to. If
present the `target_node_id` will be validated when processing the
request.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 7886aec)
The health report is used to determine if a cluster node is online and
available. When a node id changes but the RPC endpoint does not change
the requester may incorrectly assume that the node with the previous
node_id but the same endpoint is still operational. Added validation of
the node that the request was sent to before collecting the health
report. This way a sender will have correct information about the node
availability as only the request targeted to the node with the correct
node id will be replied with success.

Fixes: CORE-5766

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 90eafa8)
The node folder deletion test checks if a node joins the cluster with
the new node id after its data folder was deleted. Introduced a new
validation checking if in this case the node with the old node_id
is reported as offline

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 6a8f390)
Added validation of the node_id of the reply received from the node. The
report is not considered as valid if the reply node id doesn't match the
id of node the report was sent to.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 08de93d)
@mmaslankaprv mmaslankaprv added this to the v24.1.x-next milestone Aug 16, 2024
@mmaslankaprv mmaslankaprv added the kind/backport PRs targeting a stable branch label Aug 16, 2024
@mmaslankaprv mmaslankaprv marked this pull request as ready for review August 16, 2024 13:10
@mmaslankaprv mmaslankaprv merged commit 8183d4c into redpanda-data:v24.1.x Aug 19, 2024
19 checks passed
@mmaslankaprv mmaslankaprv deleted the vbotbuildovich/backport-22811-v24.1.x-825 branch August 19, 2024 11:03
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.15 Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v24.1.x] CORE-5766 Validate target node id when collecting health report
3 participants