You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mustExec(t, seV63, fmt.Sprintf("update mysql.tidb set variable_value=%d where variable_name='tidb_server_version'", ver63))
1295
+
mustExec(t, seV63, fmt.Sprintf("update mysql.GLOBAL_VARIABLES set variable_value='%s' where variable_name='%s'", "1", variable.TiDBEnableGCAwareMemoryTrack))
1296
+
mustExec(t, seV63, "commit")
1297
+
unsetStoreBootstrapped(store.UUID())
1298
+
ver, err:=getBootstrapVersion(seV63)
1299
+
require.NoError(t, err)
1300
+
require.Equal(t, int64(ver63), ver)
1301
+
1302
+
// We are now in 6.3, tidb_enable_gc_aware_memory_track is ON.
1303
+
res:=mustExec(t, seV63, fmt.Sprintf("select * from mysql.GLOBAL_VARIABLES where variable_name='%s'", variable.TiDBEnableGCAwareMemoryTrack))
1304
+
chk:=res.NewChunk(nil)
1305
+
err=res.Next(ctx, chk)
1306
+
require.NoError(t, err)
1307
+
require.Equal(t, 1, chk.NumRows())
1308
+
row:=chk.GetRow(0)
1309
+
require.Equal(t, 2, row.Len())
1310
+
require.Equal(t, "1", row.GetString(1))
1311
+
1312
+
// Upgrade to 6.5.
1313
+
domCurVer, err:=BootstrapSession(store)
1314
+
require.NoError(t, err)
1315
+
deferdomCurVer.Close()
1316
+
seCurVer:=createSessionAndSetID(t, store)
1317
+
ver, err=getBootstrapVersion(seCurVer)
1318
+
require.NoError(t, err)
1319
+
require.Equal(t, currentBootstrapVersion, ver)
1320
+
1321
+
// We are now in 6.5.
1322
+
res=mustExec(t, seCurVer, fmt.Sprintf("select * from mysql.GLOBAL_VARIABLES where variable_name='%s'", variable.TiDBEnableGCAwareMemoryTrack))
0 commit comments