Commit 46d0f64
authored
chore(shard-distirbutor): extend info to debug assignment conflicts (#7506)
<!-- Describe what has changed in this PR -->
**What changed?**
Extending the transaction with operation in the else branch to get the
state in case the comparison fails
<!-- Tell your future self why have you made these changes -->
**Why?**
we need to understand why there is a conflict when we assign the shards
but it is not possible because etcd is not showing which is the failing
comparison, so we need to be able to understand where the conflict is
generated
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
**How did you test it?**
unit tests that cover this case actually reported the mismatch
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
**Potential risks**
<!-- Is it notable for release? e.g. schema updates, configuration or
data migration required? If so, please mention it, and also update
CHANGELOG.md -->
**Release notes**
<!-- Is there any documentation updates should be made for config,
https://cadenceworkflow.io/docs/operation-guide/setup/ ? If so, please
open an PR in https://github.com/cadence-workflow/cadence-docs -->
**Documentation Changes**
Signed-off-by: edigregorio <edigregorio@uber.com>1 parent 24aa35c commit 46d0f64
File tree
1 file changed
+17
-2
lines changed- service/sharddistributor/store/etcd/executorstore
1 file changed
+17
-2
lines changedLines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
351 | 352 | | |
| 353 | + | |
352 | 354 | | |
353 | 355 | | |
354 | 356 | | |
| |||
363 | 365 | | |
364 | 366 | | |
365 | 367 | | |
| 368 | + | |
366 | 369 | | |
367 | 370 | | |
368 | 371 | | |
369 | 372 | | |
| 373 | + | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
| |||
386 | 390 | | |
387 | 391 | | |
388 | 392 | | |
| 393 | + | |
| 394 | + | |
389 | 395 | | |
390 | 396 | | |
391 | 397 | | |
| |||
405 | 411 | | |
406 | 412 | | |
407 | 413 | | |
| 414 | + | |
408 | 415 | | |
409 | 416 | | |
410 | 417 | | |
411 | | - | |
| 418 | + | |
412 | 419 | | |
413 | 420 | | |
414 | 421 | | |
| |||
429 | 436 | | |
430 | 437 | | |
431 | 438 | | |
| 439 | + | |
432 | 440 | | |
433 | 441 | | |
434 | 442 | | |
435 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
436 | 451 | | |
437 | 452 | | |
438 | 453 | | |
| |||
0 commit comments