Skip to content

don't call onMemChange before all work is done in memdb#636

Merged
disksing merged 1 commit intotikv:masterfrom
ekexium:fix-memdb-when-panic
Dec 8, 2022
Merged

don't call onMemChange before all work is done in memdb#636
disksing merged 1 commit intotikv:masterfrom
ekexium:fix-memdb-when-panic

Conversation

@ekexium
Copy link
Contributor

@ekexium ekexium commented Dec 7, 2022

ref pingcap/tidb#39611

This is a workaround.
The real problem is that we broke the assumption that some functions should not panic. This is related to how the memory tracking system works, which should be discussed later.

Signed-off-by: ekexium <eke@fastmail.com>
@ekexium
Copy link
Contributor Author

ekexium commented Dec 7, 2022

Even if we fix this, I doubt transactions or anything stateful in TiDB could be affected by unexpected panic, and bugs occur.

@sticnarf @disksing What do you think?

@disksing
Copy link
Collaborator

disksing commented Dec 8, 2022

It is reasonable. Merging.

@disksing disksing merged commit 6d5cb2d into tikv:master Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants