diff --git a/executor/point_get_test.go b/executor/point_get_test.go index cb408ea7bafaa..3a8f8754f702f 100644 --- a/executor/point_get_test.go +++ b/executor/point_get_test.go @@ -642,6 +642,8 @@ func (s *testPointGetSuite) TestPointGetReadLock(c *C) { c.Assert(ok, IsFalse) tk.MustExec("unlock tables") + // Force reload schema to ensure the cache is released. + c.Assert(s.dom.Reload(), IsNil) tk.MustExec("lock tables point read") rows = tk.MustQuery("explain analyze select * from point where id = 1").Rows()