Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DocDB] Intents are populated back after restart and not cleaned up #16537

Open
1 task done
suranjan opened this issue Mar 23, 2023 · 0 comments
Open
1 task done

[DocDB] Intents are populated back after restart and not cleaned up #16537

suranjan opened this issue Mar 23, 2023 · 0 comments
Assignees
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/medium Medium priority issue

Comments

@suranjan
Copy link

suranjan commented Mar 23, 2023

Jira Link: DB-5931

Description

On restart, we replay the transactions that were not flushed and also try to clean them up if we find that they were already applied or if we applied it again. While cleaning the intent, cleanup task might fail due to race conditions. Basically, we initialise the thread pool for clean up tasks after bootstrap.

So, the transaction metadata is cleaned up but the intents do remain in IntentDB and they only get cleaned up when compaction takes place as we have some optimisations where we delete the intent files as well.
I think this could have 'intermittent' performance issue

create table sample(a int, primary key(a asc));
insert into sample select generate_series(1,100000);
./build/latest/bin/yb-ts-cli count_intents
0

restart the cluster

./build/latest/bin/yb-ts-cli count_intents
20776

This also causes perf issue.

If we flush all tablets and then restart the intent count goes back to 0.
./build/latest/bin/yb-ts-cli flush_all_tablets

Restart the cluster

./build/latest/bin/yb-ts-cli count_intents
0

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@suranjan suranjan added area/docdb YugabyteDB core features status/awaiting-triage Issue awaiting triage labels Mar 23, 2023
@suranjan suranjan self-assigned this Mar 23, 2023
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue and removed status/awaiting-triage Issue awaiting triage labels Mar 23, 2023
@yugabyte-ci yugabyte-ci assigned es1024 and unassigned suranjan Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

3 participants