redpanda icon indicating copy to clipboard operation
redpanda copied to clipboard

cluster: add test for mixing maintenance and decommissioning

Open andrwng opened this issue 2 years ago • 9 comments

Following c1bcf59c057f417288889d344579c29e9c3fef36, we no longer use the removed state, and we no longer keep removed nodes in the members_table::_nodes container. This means that the check preventing multiple nodes in maintenance mode now correctly ignores removed nodes, allowing us to intermix maintenance mode and decommissioning.

This commit adds a test for this, and adjusts some comments to reflect the existing behavior.

Backports Required

  • [x] none - not a bug fix
  • [ ] none - issue does not exist in previous branches
  • [ ] none - papercut/not impactful enough to backport
  • [ ] v22.3.x
  • [ ] v22.2.x
  • [ ] v22.1.x

UX Changes

Release Notes

andrwng avatar Nov 29 '22 02:11 andrwng

/ci-repeat 1

andrwng avatar Dec 12 '22 19:12 andrwng

@andrwng does it make sense to test the inverse case? That putting a node into maintenance mode while it is being decommissioned doesn't cause an issue? (CC @mattschumpert )

jcsp avatar Dec 13 '22 19:12 jcsp

@andrwng does it make sense to test the inverse case? That putting a node into maintenance mode while it is being decommissioned doesn't cause an issue? (CC @mattschumpert )

Done

andrwng avatar Dec 15 '22 00:12 andrwng

Latest push was just a rebase

andrwng avatar Dec 16 '22 23:12 andrwng

/ci-repeat

andrwng avatar Dec 17 '22 03:12 andrwng

Noticed this one hanging around when writing up a related issue. Just pushed a rebase

andrwng avatar Mar 02 '23 18:03 andrwng

is this ready for another review (unrequested reviews)

dotnwat avatar Mar 04 '23 18:03 dotnwat

is this ready for another review (unrequested reviews)

Yes, please do give this a look!

andrwng avatar Mar 06 '23 17:03 andrwng

@andrwng is this PR still valid ?

mmaslankaprv avatar May 22 '24 13:05 mmaslankaprv

@andrwng is this PR still valid ?

I don't think so. Node membership code has been changed pretty significantly since this PR. The test might still be worth having, but reviving this isn't on my near-term TODO list.

andrwng avatar May 22 '24 22:05 andrwng