Skip to content

Commit

Permalink
remote unary cop tiflash fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyifangreeneyes committed Mar 10, 2021
1 parent 5f1e205 commit 04894b3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions server/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,12 +778,7 @@ func (ts *ConnTestSuite) TestTiFlashFallback(c *C) {
c.Assert(cc.handleQuery(ctx, "select * from t t1 join t t2 on t1.a = t2.a"), NotNil)
c.Assert(failpoint.Disable("github.com/pingcap/tidb/server/secondNextErr"), IsNil)

// simple TiFlash query (unary + non-streaming)
tk.MustExec("set @@tidb_allow_batch_cop=0; set @@tidb_allow_mpp=0;")

c.Assert(failpoint.Enable("github.com/pingcap/tidb/store/mockstore/unistore/copRpcErrtiflash0", "return(\"tiflash0\")"), IsNil)
testFallbackWork(c, tk, cc, "select sum(a) from t")
c.Assert(failpoint.Disable("github.com/pingcap/tidb/store/mockstore/unistore/copRpcErrtiflash0"), IsNil)
// TODO: simple TiFlash query (unary + non-streaming)

// TiFlash query based on batch cop (batch + streaming)
tk.MustExec("set @@tidb_allow_batch_cop=1; set @@tidb_allow_mpp=0;")
Expand Down

0 comments on commit 04894b3

Please sign in to comment.