GitHub user tombentley opened a pull request: https://github.com/apache/kafka/pull/4330
[WIP] KAFKA-6359: KIP-236 interruptible reassignments This is a WIP for KIP-236. All the existing tests (via the `/admin/reassign_partitions` path) still pass, and I've added a couple of tests for the new path (via `/admin/reassignment_requests`), but it needs a lot more tests of the new path. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) You can merge this pull request into a Git repository by running: $ git pull https://github.com/tombentley/kafka KIP-236-interruptible-reassignments Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4330.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4330 ---- commit eb856a3009e5cc3d293305fe6a3add0d21267095 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-06T15:18:17Z Split /admin/reassign_partitions commit 6114752becb964041da88e874ce289968c2d2abc Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-07T09:40:42Z KIP-236 wip commit 5caf4e3b6e9fc5ff4be3755ed77057598438017d Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-13T09:21:33Z Jun's idea of using separate path for notification commit 325569c1adfb220eaef3e6deb642d55fbab3d5ce Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-13T13:22:04Z Tidy up commit 6c3a922fde6a2f1b0c6acca80f8c175948b165a9 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-14T10:14:26Z More work commit bb9e3874590cc71825fea37a92f77b6b426744f9 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-14T10:33:28Z Fix to match KIP commit 6096ef2a713e18f13de96d771244bc8e99742322 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-14T12:54:15Z WIP on algo improvment commit 8c60b304283ed13e839b9ad3aee026f23dbaeb72 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-14T13:21:54Z Fixup commit c0b6ac97e7bc8e168123ff6b6f467a035a73a02a Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-15T09:26:19Z Treat [1,2,3]->[1,3,2] as a no-op reassignment Since only the first element in the list is distinguished. commit b97521d81a3c7482f526d6574b3da34e1cfb9ff8 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-15T09:28:02Z Fixes commit 52d61af3191d338222147395f3fe89b9f0015c80 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-15T09:29:12Z WIP: Change onPartitionReassignment() algo to cope with re-reassignment commit 698cf3ef2b253347cddb0a49d5464fcd20781c05 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-15T10:52:36Z Refactor test commit 117a1af116296795cfbd38ef85abd48d4b2643d0 Author: Tom Bentley <tbent...@redhat.com> Date: 2017-12-15T16:38:42Z Improved algo ---- ---