1.3 Go practices in TiDB 姚维mockCommitError && kv.IsMockCommitErrorEnable() { // kv.MockCommitErrorDisable() // return errors.New("mock commit error") // } …. } https://github.com/pingcap/tidb/blob/master/store/tikv/txn.go#L223 The mockCommitError && kv.IsMockCommitErrorEnable() { kv.MockCommitErrorDisable() return errors.New("mock commit error") }; __badTypemockCommitError: __fp_mockCommitError.BadType(vmockCommitError, "bool"); Value) { return errors.Errorf("mock failpoint error") }) var outVar = "declare in outer scope" if ok, val := failpoint.Eval("failpoint-name"); ok { return errors.Errorf("mock failpoint error") } AST Rewrite0 码力 | 32 页 | 1.76 MB | 6 月前3
TiDB v6.1 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 538 5.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 539 · · · · 1040 10.12.2 Cannot start tidb-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1040 10.12.3 Cannot start tikv-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1041 10.12.4 Cannot start pd-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1041 10.12.5 The TiDB/TiKV/PD process aborts unexpectedly·0 码力 | 4487 页 | 84.44 MB | 1 年前3
TiDB v5.1 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 90 4.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 90 · · · · · · 441 8.9.2 Cannot start tidb-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 442 8.9.3 Cannot start tikv-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 442 8.9.4 Cannot start pd-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 443 8.9.5 The TiDB/TiKV/PD process aborts unexpectedly·0 码力 | 2745 页 | 47.65 MB | 1 年前3
TiDB v5.3 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 110 4.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 110 · · · · · 481 8.10.2 Cannot start tidb-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 481 8.10.3 Cannot start tikv-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 482 8.10.4 Cannot start pd-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 482 8.10.5 The TiDB/TiKV/PD process aborts unexpectedly·0 码力 | 2996 页 | 49.30 MB | 1 年前3
TiDB v5.2 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 98 4.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 98 · · · · · · 457 8.9.2 Cannot start tidb-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 458 8.9.3 Cannot start tikv-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 458 8.9.4 Cannot start pd-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 459 8.9.5 The TiDB/TiKV/PD process aborts unexpectedly·0 码力 | 2848 页 | 47.90 MB | 1 年前3
TiDB v5.4 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 114 4.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 114 · · · · · 578 8.11.2 Cannot start tidb-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 578 8.11.3 Cannot start tikv-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 579 8.11.4 Cannot start pd-server · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 579 8.11.5 The TiDB/TiKV/PD process aborts unexpectedly·0 码力 | 3650 页 | 52.72 MB | 1 年前3
TiDB v6.5 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 607 5.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 607 · · · · · · · · · · · 4436 15.8.3 TiDB server management · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 4438 15.8.4 TiKV server management · · · · · · · · · · · · · · · · · · · · · · · · · · · 4448 15.10.2 Does TiDB support modifying the MySQL version string of the server to a specific one that is required by the security vulnerability scanning tool?· · · · · · · · ·0 码力 | 5282 页 | 99.69 MB | 1 年前3
TiDB v7.6 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 615 5.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 615 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 3171 14.6 Server Status Variables · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 4917 15.8.3 TiDB server management · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 4919 15.8.4 TiKV server management · · · · · · · · · · · · · · ·0 码力 | 6123 页 | 107.24 MB | 1 年前3
TiDB v7.5 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 602 5.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 603 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 3131 14.6 Server Status Variables · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 4845 15.8.3 TiDB server management · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 4847 15.8.4 TiKV server management · · · · · · · · · · · · · · ·0 码力 | 6020 页 | 106.82 MB | 1 年前3
TiDB v7.1 Documentationrecommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 621 5.1.3 Server recommendations · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 621 · · · · · · · · · · 4674 15.8.3 TiDB server management · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 4676 22 15.8.4 TiKV server management · · · · · · · · · · · · · · · · · · · · · · · · · · 4686 15.10.2 Does TiDB support modifying the MySQL version string of the server to a specific one that is required by the security vulnerability scanning tool?· · · · · · · · ·0 码力 | 5716 页 | 104.74 MB | 1 年前3
共 47 条
- 1
- 2
- 3
- 4
- 5













