Commit 4d29a07
committed
Fix case-insensitive delete regression and improve retry loop
Fix _build_delete_files_partition_predicate overwriting _case_sensitive
to True by passing the current value to delete_by_predicate. This
caused case-insensitive deletes to fail when _OverwriteFiles was used
with a user-specified predicate.
Move import random/time to file top level. Add total timeout
(commit.retry.total-timeout-ms) to the retry loop. Add comments for
intentional validation duplication and cached_property clearing.
Stabilize test_commit_retry_on_commit_failed by removing flaky
patch.object assertion.
Signed-off-by: Sotaro Hikita <bering1814@gmail.com>1 parent 3d32e32 commit 4d29a07
2 files changed
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
988 | 990 | | |
989 | 991 | | |
990 | 992 | | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
991 | 1000 | | |
992 | 1001 | | |
993 | 1002 | | |
| |||
999 | 1008 | | |
1000 | 1009 | | |
1001 | 1010 | | |
1002 | | - | |
| 1011 | + | |
| 1012 | + | |
1003 | 1013 | | |
1004 | | - | |
1005 | | - | |
1006 | 1014 | | |
1007 | 1015 | | |
1008 | 1016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| |||
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
| 538 | + | |
| 539 | + | |
537 | 540 | | |
538 | 541 | | |
539 | 542 | | |
540 | 543 | | |
541 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
542 | 551 | | |
543 | 552 | | |
544 | 553 | | |
| |||
746 | 755 | | |
747 | 756 | | |
748 | 757 | | |
749 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
750 | 763 | | |
751 | 764 | | |
752 | 765 | | |
| |||
0 commit comments