Skip to content

bugfix: fix invalid nil pointer when trying to record Store.SlownessStat.#1017

Merged
cfzjywxk merged 3 commits intotikv:masterfrom
LykxSassinator:fix_invalid_addr_bug_1012
Oct 16, 2023
Merged

bugfix: fix invalid nil pointer when trying to record Store.SlownessStat.#1017
cfzjywxk merged 3 commits intotikv:masterfrom
LykxSassinator:fix_invalid_addr_bug_1012

Conversation

@LykxSassinator
Copy link
Contributor

Description

This pr is a bugfix pr, used to fix the panic issue when trying to record Store.SlownessStat if rpcCtx.Store == nil.

Related issue: pingcap/tidb#47531

…tat.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
@LykxSassinator
Copy link
Contributor Author

/cc @cfzjywxk PTAL.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
@LykxSassinator
Copy link
Contributor Author

/run test

@LykxSassinator
Copy link
Contributor Author

/test

Copy link
Contributor

@cfzjywxk cfzjywxk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cfzjywxk
Copy link
Contributor

Why the DCO stucks..

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
@LykxSassinator
Copy link
Contributor Author

Why the DCO stucks..

...It's successful again after I just pick one new tiny pr...

@cfzjywxk cfzjywxk merged commit e70513e into tikv:master Oct 16, 2023
@cfzjywxk
Copy link
Contributor

@LykxSassinator Please also update the dependency in mod of tidb repo.

@LykxSassinator LykxSassinator deleted the fix_invalid_addr_bug_1012 branch October 16, 2023 08:22
crazycs520 pushed a commit to crazycs520/client-go that referenced this pull request Dec 8, 2023
…tat. (tikv#1017)

* bugfix: fix invalid nil pointer when trying to record Store.SlownessStat.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>

* Polish codes.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>

* Polish comments.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>

---------

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
cfzjywxk pushed a commit that referenced this pull request Dec 8, 2023
…tat. (#1017) (#1074)

* bugfix: fix invalid nil pointer when trying to record Store.SlownessStat.



* Polish codes.



* Polish comments.



---------

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
Co-authored-by: lucasliang <nkcs_lykx@hotmail.com>
iosmanthus added a commit that referenced this pull request Dec 20, 2023
Co-authored-by: cfzjywxk <cfzjywxk@gmail.com>
Co-authored-by: cfzjywxk <lsswxrxr@163.com>
Co-authored-by: disksing <i@disksing.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: zzm <zhouzemin@pingcap.com>
Co-authored-by: husharp <jinhao.hu@pingcap.com>
Co-authored-by: you06 <you1474600@gmail.com>
Co-authored-by: buffer <doufuxiaowangzi@gmail.com>
Co-authored-by: 3pointer <qdlc2010@gmail.com>
Co-authored-by: buffer <1045931706@qq.com>
Co-authored-by: husharp <ihusharp@gmail.com>
Co-authored-by: crazycs520 <crazycs520@gmail.com>
Co-authored-by: Smilencer <smityz@qq.com>
Co-authored-by: ShuNing <nolouch@gmail.com>
Co-authored-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: Jack Yu <jackysp@gmail.com>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: lucasliang <nkcs_lykx@hotmail.com>
Co-authored-by: healthwaite <148101100+healthwaite@users.noreply.github.com>
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: ekexium <eke@fastmail.com>
Co-authored-by: 山岚 <36239017+YuJuncen@users.noreply.github.com>
Co-authored-by: glorv <glorvs@163.com>
Co-authored-by: Yongbo Jiang <cabinfeveroier@gmail.com>
resolve locks interface for tidb gc_worker (#945)
fix some issues of replica selector (#910)  (#942)
fix some issues of replica selector (#910)
fix issue of configure kv timeout not work when disable batch client (#980)
fix batch-client wait too long and add some metrics (#973)
fix batch-client wait too long and add some metrics (#973)" (#984)
fix data race at the aggressiveLockingDirty (#913)
fix MinSafeTS might be set to MaxUint64 permanently (#994)
fix: fix invalid nil pointer when trying to record Store.SlownessStat. (#1017)
Fix batch client batchSendLoop panic (#1021)
fix request source tag unset (#1025)
Fix comment of `SuspendTime` (#1057)
@ti-chi-bot ti-chi-bot added needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. and removed needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants