From 009c4894e979d241d1b35f597115ffebd514ea50 Mon Sep 17 00:00:00 2001 From: crazycs Date: Thu, 10 Dec 2020 10:33:52 +0800 Subject: [PATCH] executor: make TestPointGetReadLock stable (#21624) Signed-off-by: crazycs520 --- executor/point_get_test.go | 2 ++ 1 file changed, 2 insertions(+) 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()