-
Notifications
You must be signed in to change notification settings - Fork 103
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
base: main
Are you sure you want to change the base?
Conversation
0e283c9
to
7b339d1
Compare
} | ||
|
||
long current = FastTimestamps.coarseCurrentTimeMillis(); | ||
|
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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?
https://issues.apache.org/jira/browse/IGNITE-24156