Skip to content

Commit

Permalink
e2e test is ... not yet
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Dec 16, 2023
1 parent a99e588 commit b44e7f5
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions go/test/endtoend/vreplication/vdiff2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,17 @@ func testWorkflow(t *testing.T, vc *VitessCluster, tc *testCase, tks *Keyspace,
catchup(t, tab, tc.workflow, tc.typ)
}

//vdiff(t, tc.targetKs, tc.workflow, allCellNames, true, true, nil)
doVtctldclientVDiff(t, tc.targetKs, tc.workflow, allCellNames, nil, "--max-diff-time=50ns")

tablet := vc.getPrimaryTablet(t, tc.targetKs, arrTargetShards[0])
stat, err := getDebugVar(t, tablet.Port, []string{"VDiffRestartedTableDiffsCount"})
require.NoError(t, err, "failed to get VDiffRestartedTableDiffsCount stat: %v", err)
restarts := gjson.Parse(stat).Get("customer").Int()
require.Greater(t, restarts, int64(0), "expected VDiffRestartedTableDiffsCount stat to be greater than 0, got %d", restarts)
vdiff(t, tc.targetKs, tc.workflow, allCellNames, true, true, nil)

/*
doVtctldclientVDiff(t, tc.targetKs, tc.workflow, allCellNames, nil, "--max-diff-time=50ns")
tablet := vc.getPrimaryTablet(t, tc.targetKs, arrTargetShards[0])
stat, err := getDebugVar(t, tablet.Port, []string{"VDiffRestartedTableDiffsCount"})
require.NoError(t, err, "failed to get VDiffRestartedTableDiffsCount stat: %v", err)
restarts := gjson.Parse(stat).Get("customer").Int()
require.Greater(t, restarts, int64(0), "expected VDiffRestartedTableDiffsCount stat to be greater than 0, got %d", restarts)
*/

if tc.autoRetryError {
testAutoRetryError(t, tc, allCellNames)
Expand Down

0 comments on commit b44e7f5

Please sign in to comment.