-
Notifications
You must be signed in to change notification settings - Fork 132
IGNITE-27012 Improve partition API #7091
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
base: main
Are you sure you want to change the base?
Conversation
modules/api/src/main/java/org/apache/ignite/table/partition/PartitionDistribution.java
Outdated
Show resolved
Hide resolved
...les/client/src/main/java/org/apache/ignite/internal/client/table/ClientPartitionManager.java
Outdated
Show resolved
Hide resolved
|
@ptupitsyn Should we change the type for the partition ID from int to long? I see changes in #7111, but how it will work for PartitionDistribution#partitions, PartitionDistribution#primaryReplicas() if it uses HashMap, ArrayList with size int. |
|
@nva yes, partition id should be
We don't expect a huge number of partitions so this should not be a problem. |
.idea/codeStyles/Project.xml
Outdated
| </option> | ||
| </AndroidXmlCodeStyleSettings> | ||
| <JSCodeStyleSettings> | ||
| <JSCodeStyleSettings version="0"> |
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.
Should we revert those entire file? Not sure what those changes mean.
| Map<Partition, ClusterNode> primaryReplicas(); | ||
|
|
||
| /** | ||
| * Gets all partitions hosted by the specified node as a primary replica. |
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.
| * Gets all partitions hosted by the specified node as a primary replica. | |
| * Gets all partitions hosted by the specified node as a primary replica as of the time of the call. | |
| * | |
| * <p>Note: This assignment may become outdated if a re-assigment happens on the cluster. |
| return partitionId; | ||
| } | ||
|
|
||
| @Deprecated(since = "3.2", forRemoval = true) |
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 not in the public API so we can just remove the old thing.
Thank you for submitting the pull request.
To streamline the review process of the patch and ensure better code quality
we ask both an author and a reviewer to verify the following:
The Review Checklist
- There is a single JIRA ticket related to the pull request.
- The web-link to the pull request is attached to the JIRA ticket.
- The JIRA ticket has the Patch Available state.
- The description of the JIRA ticket explains WHAT was made, WHY and HOW.
- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
Notes