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-23305 Get rid of client HybridTimestampTracker #4929

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

Conversation

vldpyatkov
Copy link
Contributor

@vldpyatkov vldpyatkov requested a review from xtern December 20, 2024 10:55
@xtern xtern requested a review from korlov42 December 23, 2024 09:39
@@ -35,14 +35,14 @@
public class IgniteTransactionsImpl implements IgniteTransactions {
private final TxManager txManager;

private final HybridTimestampTracker observableTimestampTracker;
private final HybridTimestampTrackerImpl observableTimestampTracker;
Copy link
Contributor

Choose a reason for hiding this comment

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

let's use interface instead of implementation. Besides, there are number of methods which are not used anymore. Let's clean up IgniteTransactionsImpl

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this instance, the field can only be an instance of HybridTimestampTrackerImpl.
It is not worth overdoing with the use of interfaces.

Copy link
Contributor Author

@vldpyatkov vldpyatkov Dec 24, 2024

Choose a reason for hiding this comment

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

there are number of methods which are not used anymore

Good point.

@@ -362,7 +362,7 @@ public class TableManager implements IgniteTablesInternal, IgniteComponent {

private final LowWatermark lowWatermark;

private final HybridTimestampTracker observableTimestampTracker;
private final HybridTimestampTrackerImpl observableTimestampTracker;
Copy link
Contributor

Choose a reason for hiding this comment

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

let's use interface here and below. Please check this kind of changes everywhere in your patch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer to use a concrete implementation until the other is not 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.

3 participants