-
Notifications
You must be signed in to change notification settings - Fork 135
IGNITE-18895 Implement a background GC process #1720
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
Conversation
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java
Outdated
Show resolved
Hide resolved
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java
Outdated
Show resolved
Hide resolved
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java
Show resolved
Hide resolved
| ).join(); | ||
| mvGc.removeStorage(tablePartitionId) | ||
| .thenCompose(unused -> allOf( | ||
| internalTable.storage().destroyPartition(partitionId), |
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.
I hope one day we will refactor all this spaghetti code and extract proper abstractions :(
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.
Of course, in a brave new future!
| class GcStorageHandler { | ||
| final StorageUpdateHandler storageUpdateHandler; | ||
|
|
||
| final AtomicReference<CompletableFuture<Void>> gcInProgressFuture = new AtomicReference<>(); |
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.
Can you please document fields as well?
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.
Also, why have you decided to go with default field visibility instead of encapsulating the logic inside of methods, like it's usually done almost everywhere?
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.
Tried adding documentation. This class is just a container and is used only inside the package, why complicate the code?
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 complicate the code - to make it clearer I guess, encapsulation exists for reasons
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.
This class is package-private, why should we complicate the code?
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/gc/MvGc.java
Outdated
Show resolved
Hide resolved
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/gc/MvGc.java
Outdated
Show resolved
Hide resolved
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/gc/MvGc.java
Outdated
Show resolved
Hide resolved
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/gc/MvGc.java
Outdated
Show resolved
Hide resolved
modules/table/src/test/java/org/apache/ignite/internal/table/distributed/gc/MvGcTest.java
Outdated
Show resolved
Hide resolved
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java
Outdated
Show resolved
Hide resolved
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java
Outdated
Show resolved
Hide resolved
Bumps [io.grpc:protoc-gen-grpc-java](https://github.com/grpc/grpc-java) from 1.69.0 to 1.70.0. - [Release notes](https://github.com/grpc/grpc-java/releases) - [Commits](grpc/grpc-java@v1.69.0...v1.70.0) --- updated-dependencies: - dependency-name: io.grpc:protoc-gen-grpc-java dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: Aleksandr Polovtsev <alex.polovtcev@gmail.com> Co-authored-by: Aleksandr Polovtsev <alex.polovtcev@gmail.com>
https://issues.apache.org/jira/browse/IGNITE-18895