You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "anton-vinogradov (via GitHub)" <gi...@apache.org> on 2026/02/09 16:24:09 UTC
[PR] IGNITE-27724 Use MessageSerializer for GridDhtAffinityAssignmentResponse [ignite]
anton-vinogradov opened a new pull request, #12715:
URL: https://github.com/apache/ignite/pull/12715
Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
### The Contribution 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 pull request body describes changes that have been made.
The description explains _WHAT_ and _WHY_ was made instead of _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.
- [ ] A reviewer has been mentioned through the JIRA comments
(see [the Maintainers list](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute#HowtoContribute-ReviewProcessandMaintainers))
- [ ] The pull request has been checked by the Teamcity Bot and
the `green visa` attached to the JIRA ticket (see [TC.Bot: Check PR](https://mtcga.gridgain.com/prs.html))
### Notes
- [How to Contribute](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute)
- [Coding abbreviation rules](https://cwiki.apache.org/confluence/display/IGNITE/Abbreviation+Rules)
- [Coding Guidelines](https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines)
- [Apache Ignite Teamcity Bot](https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+Teamcity+Bot)
If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com _#ignite_ channel.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-27724 Use MessageSerializer for GridDhtAffinityAssignmentResponse [ignite]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #12715:
URL: https://github.com/apache/ignite/pull/12715#issuecomment-3891751121
## [](https://sonarcloud.io/dashboard?id=apache_ignite&pullRequest=12715) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=12715&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=12715&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_ignite&pullRequest=12715&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=12715&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=12715&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_ignite&pullRequest=12715)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-27724 Use MessageSerializer for GridDhtAffinityAssignmentResponse [ignite]
Posted by "anton-vinogradov (via GitHub)" <gi...@apache.org>.
anton-vinogradov merged PR #12715:
URL: https://github.com/apache/ignite/pull/12715
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-27724 Use MessageSerializer for GridDhtAffinityAssignmentResponse [ignite]
Posted by "shishkovilja (via GitHub)" <gi...@apache.org>.
shishkovilja commented on code in PR #12715:
URL: https://github.com/apache/ignite/pull/12715#discussion_r2793186618
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
/** */
- @GridDirectTransient
private List<List<UUID>> idealAffAssignment;
/** Affinity assignment bytes. */
+ @Order(value = 7, method = "idealAffinityAssignmentsBytes")
private byte[] idealAffAssignmentBytes;
/** */
- @GridDirectTransient
private GridDhtPartitionFullMap partMap;
/** */
+ @Order(value = 8, method = "partitionBytes")
private byte[] partBytes;
Review Comment:
Should be removed, see the above comment.
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
Review Comment:
Message framework does not support `List<List<...>>` collections, but we can replace it by collection of specific messages, eg. `List<AffinityAssignmentsList>` (`AffinityAssignmentsList` should encapsulate `List<UUID>`).
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
Review Comment:
Should be removed, see the above comment.
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
/** */
- @GridDirectTransient
private List<List<UUID>> idealAffAssignment;
Review Comment:
The same situatiion as with `affAssignmentIds`: let's use `List<AffinityAssignmentsList>`.
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
/** */
- @GridDirectTransient
private List<List<UUID>> idealAffAssignment;
/** Affinity assignment bytes. */
+ @Order(value = 7, method = "idealAffinityAssignmentsBytes")
private byte[] idealAffAssignmentBytes;
Review Comment:
Should be removed, see the above comment.
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
/** */
- @GridDirectTransient
private List<List<UUID>> idealAffAssignment;
/** Affinity assignment bytes. */
+ @Order(value = 7, method = "idealAffinityAssignmentsBytes")
private byte[] idealAffAssignmentBytes;
/** */
- @GridDirectTransient
private GridDhtPartitionFullMap partMap;
Review Comment:
There are no guarantees for `GridDhtPartitionFullMap` to support RU. But we need to provide it. Because it is not external object we need to transform it to `Message` or use another `Message` as DTO of `GridDhtPartitionFullMap`.
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
/** */
- @GridDirectTransient
private List<List<UUID>> idealAffAssignment;
/** Affinity assignment bytes. */
+ @Order(value = 7, method = "idealAffinityAssignmentsBytes")
private byte[] idealAffAssignmentBytes;
/** */
- @GridDirectTransient
private GridDhtPartitionFullMap partMap;
/** */
+ @Order(value = 8, method = "partitionBytes")
private byte[] partBytes;
/** Indicates that getting required affinity assignments has been failed. */
- @GridDirectTransient
private IgniteCheckedException affAssignmentErr;
/** Serialized error. */
+ @Order(value = 9, method = "affinityAssignmentsErrorBytes")
private byte[] affAssignmentErrBytes;
Review Comment:
Should be removed, see the above comment.
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
/** */
- @GridDirectTransient
private List<List<UUID>> idealAffAssignment;
/** Affinity assignment bytes. */
+ @Order(value = 7, method = "idealAffinityAssignmentsBytes")
private byte[] idealAffAssignmentBytes;
/** */
- @GridDirectTransient
private GridDhtPartitionFullMap partMap;
/** */
+ @Order(value = 8, method = "partitionBytes")
private byte[] partBytes;
/** Indicates that getting required affinity assignments has been failed. */
- @GridDirectTransient
private IgniteCheckedException affAssignmentErr;
Review Comment:
Let's use `ErrorMessage`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-27724 Use MessageSerializer for GridDhtAffinityAssignmentResponse [ignite]
Posted by "wernerdv (via GitHub)" <gi...@apache.org>.
wernerdv commented on code in PR #12715:
URL: https://github.com/apache/ignite/pull/12715#discussion_r2793995798
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtAffinityAssignmentResponse.java:
##########
@@ -41,37 +38,39 @@
*/
public class GridDhtAffinityAssignmentResponse extends GridCacheGroupIdMessage {
/** */
+ @Order(value = 4, method = "futureId")
private long futId;
/** Topology version. */
+ @Order(value = 5, method = "topologyVersion")
private AffinityTopologyVersion topVer;
/** */
- @GridDirectTransient
private List<List<UUID>> affAssignmentIds;
/** */
+ @Order(value = 6, method = "affinityAssignmentIdsBytes")
private byte[] affAssignmentIdsBytes;
/** */
- @GridDirectTransient
private List<List<UUID>> idealAffAssignment;
/** Affinity assignment bytes. */
+ @Order(value = 7, method = "idealAffinityAssignmentsBytes")
private byte[] idealAffAssignmentBytes;
/** */
- @GridDirectTransient
private GridDhtPartitionFullMap partMap;
Review Comment:
JFYI, I'm transforming GridDhtPartitionFullMap into Message in the PR https://github.com/apache/ignite/pull/12527/changes#diff-1864c652f2140e74de57f2fcc1496d2d5007cf0c217b1809a0a0bef2141d8015
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org