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

IGNITE-24156 Tx states overconsume heap #5252

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vldpyatkov
Copy link
Contributor

}

long current = FastTimestamps.coarseCurrentTimeMillis();

Copy link
Contributor

Choose a reason for hiding this comment

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

remove one empty line

@@ -171,39 +170,34 @@ public CompletableFuture<Void> vacuum(
} else if (TxState.isFinalState(meta0.txState())) {
Long initialVacuumObservationTimestamp = meta0.initialVacuumObservationTimestamp();
Copy link
Contributor

Choose a reason for hiding this comment

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

why still Long? maybe make initialVacuumObservationTimestamp() not nullable and add requireNonNull here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It still can be null for not final tx states.

@@ -171,39 +170,34 @@ public CompletableFuture<Void> vacuum(
} else if (TxState.isFinalState(meta0.txState())) {
Long initialVacuumObservationTimestamp = meta0.initialVacuumObservationTimestamp();

if (initialVacuumObservationTimestamp == null && txnResourceTtl > 0) {
markedAsInitiallyDetectedTxnsCount.incrementAndGet();
Copy link
Contributor

Choose a reason for hiding this comment

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

markedAsInitiallyDetectedTxnsCount is it still needed?

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.

2 participants