File tree Expand file tree Collapse file tree
fe/fe-core/src/test/java/com/starrocks/alter/reshard Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040import org .junit .jupiter .api .BeforeEach ;
4141import org .junit .jupiter .api .Test ;
4242
43- <<<<<<< HEAD
44- public class TabletReshardJobMgrTest {
45- =======
4643import java .util .Map ;
4744import java .util .concurrent .atomic .AtomicInteger ;
4845
4946public class TabletReshardJobMgrTest {
50- // A JMockit @Mock for a static method must itself be static, so it cannot capture a local of the
51- // enclosing test method; the counters it writes live here instead. Reset before each test.
52- private static final AtomicInteger NODE_COUNT_RESOLUTIONS = new AtomicInteger ();
53-
5447 private static class WarnCounterAppender extends AbstractAppender {
5548 private final AtomicInteger warnCount = new AtomicInteger ();
5649
@@ -70,17 +63,6 @@ int getWarnCount() {
7063 }
7164 }
7265
73- private static void stubCountingNodeCount () {
74- new MockUp <TabletReshardUtils >() {
75- @ Mock
76- public static int adaptiveSplitBoundForTable (long tableId ) {
77- NODE_COUNT_RESOLUTIONS .incrementAndGet ();
78- return TabletReshardUtils .adaptiveSplitBound (8 );
79- }
80- };
81- }
82-
83- >>>>>>> 005 f98bba0 ([BugFix ] Silence expected tablet reshard history lookup warnings (#78059 ))
8466 public static class TestNormalTabletReshardJob extends TabletReshardJob {
8567
8668 private long tableId = 0 ;
You can’t perform that action at this time.
0 commit comments