Skip to content

Conversation

@tkalkirill
Copy link
Contributor

).join();
mvGc.removeStorage(tablePartitionId)
.thenCompose(unused -> allOf(
internalTable.storage().destroyPartition(partitionId),
Copy link
Contributor

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 :(

Copy link
Contributor Author

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<>();
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor Author

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?

@tkalkirill tkalkirill merged commit 9fa4922 into apache:main Mar 2, 2023
@tkalkirill tkalkirill deleted the ignite-18895 branch March 2, 2023 15:18
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Mar 18, 2023
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Apr 19, 2023
isapego pushed a commit to isapego/ignite-3 that referenced this pull request Feb 4, 2025
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>
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