gabriellefu commented on PR #24397: URL: https://github.com/apache/kafka/pull/24397#issuecomment-7174851033
Testbed results (`StickyTaskAssignorFuzzTest` from #23556, default base
seed), trunk → this PR. All invariants pass on both.
Only groups with 2 standby replicas can change; with 0 or 1 the assignment
is the same as on trunk. The profiles draw 0–2 standby
replicas, so the averages below include many unaffected scenarios. Lower
is better except for "Distinct tag values".
**LARGE (30 scenarios)**
| Metric (avg) | From empty assignment | From previous assignment |
|---|---|---|
| Tasks lost when one value of key 1 fails | 0.193 → 0.189 | 0.189 → 0.183
|
| Tasks lost when one value of key 2 fails | 0.191 → 0.182 | 0.184 → 0.176
|
| Distinct tag values of key 1 | 0.881 → 0.881 | 0.878 → 0.878 |
| Distinct tag values of key 2 | 0.889 → 0.888 | 0.890 → 0.890 |
| Task balance per member | 1.733 → 1.600 | 1.977 → 1.908 |
| Load balance per process | 1.268 → 1.184 | 1.364 → 1.273 |
| Subtopology balance | 1.000 → 1.000 | 1.710 → 1.702 |
| Standby tasks placed without state | n/a | 32.05 → 30.48 |
| Not converged | 0 → 0 of 30 | 5 → 2 of 131 |
**SMALL (300 scenarios)**
| Metric (avg) | From empty assignment | From previous assignment |
|---|---|---|
| Tasks lost when one value of key 1 fails | 0.169 → 0.151 | 0.191 → 0.183
|
| Tasks lost when one value of key 2 fails | 0.252 → 0.234 | 0.228 → 0.224
|
| Tasks lost when one value of key 3 fails | 0.220 → 0.212 | 0.215 → 0.214
|
| Distinct tag values of key 1 | 0.886 → 0.886 | 0.877 → 0.876 |
| Distinct tag values of key 2 | 0.834 → 0.841 | 0.851 → 0.850 |
| Distinct tag values of key 3 | 0.813 → 0.820 | 0.853 → 0.854 |
| Task balance per member | 1.130 → 1.120 | 1.579 → 1.560 |
| Load balance per process | 0.718 → 0.712 | 1.184 → 1.171 |
| Subtopology balance | 0.233 → 0.233 | 0.558 → 0.562 |
| Standby tasks placed without state | n/a | 1.218 → 1.229 |
| Not converged | 0 → 0 of 300 | 0 → 0 of 1291 |
The other rows about active tasks change by at most 0.003.
These numbers match the code in your working tree, which is still
uncommitted on top of d86d6b5d1b, so commit it before posting.
There are no JMH numbers for this variant yet; the ones I gave earlier
were for the version that flipped both steps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
