Commit 51e43b6
committed
[flink][test] fix Flink 2.x open() compatibility and flaky snapshot trigger
- ScanAndCleanFunction: change open(Configuration) to open(OpenContext)
for Flink 2.x compatibility (Flink 2.x removed the Configuration overload)
- FlussClusterExtension: triggerSnapshot() returns null on no-op instead of
failing hard when snapshot ID does not advance (initSnapshot skips when
logOffset <= lastSnapshotOffset)
- triggerAndWaitSnapshots() silently skips null buckets (original behavior)1 parent c57d2c8 commit 51e43b6
2 files changed
Lines changed: 20 additions & 18 deletions
File tree
- fluss-flink/fluss-flink-common/src/main/java/org/apache/fluss/flink/action/orphan/job
- fluss-server/src/test/java/org/apache/fluss/server/testutils
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
Lines changed: 17 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
776 | | - | |
777 | 775 | | |
778 | 776 | | |
779 | 777 | | |
780 | 778 | | |
781 | 779 | | |
782 | 780 | | |
783 | | - | |
| 781 | + | |
784 | 782 | | |
785 | | - | |
786 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
787 | 797 | | |
788 | 798 | | |
789 | 799 | | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
| 800 | + | |
| 801 | + | |
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| |||
0 commit comments