Skip to content

IGNITE-28512 Message serializer for PartitionKey#13084

Open
Vladsz83 wants to merge 18 commits intoapache:masterfrom
Vladsz83:test-IGNITE-28512-MessageSerializer-for-PartitionKey-VsrTskRes
Open

IGNITE-28512 Message serializer for PartitionKey#13084
Vladsz83 wants to merge 18 commits intoapache:masterfrom
Vladsz83:test-IGNITE-28512-MessageSerializer-for-PartitionKey-VsrTskRes

Conversation

@Vladsz83
Copy link
Copy Markdown
Contributor

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)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see tab PR Check at TC.Bot - Instance 1 or TC.Bot - Instance 2)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@Vladsz83 Vladsz83 changed the title IGNITE-28512 Message serializer for partition key and VisorTaskResult IGNITE-28512 Message serializer for PartitionKey May 4, 2026
* Management task result.
*/
public class VisorTaskResult<R> extends IgniteDataTransferObject {
public class VisorTaskResult<R> implements Serializable {
Copy link
Copy Markdown
Contributor

@shishkovilja shishkovilja May 7, 2026

Choose a reason for hiding this comment

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

Why Serializable, not Message?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because the thin client protocol doesnt support messages. And the realisation is far beyond this ticket.

Copy link
Copy Markdown
Contributor

@shishkovilja shishkovilja May 7, 2026

Choose a reason for hiding this comment

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

Should we remove @Order from fields then?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

this.clientRouterNodeId = node.isClient() ? node.id() : null;

attrs = Collections.singletonMap(ATTR_NODE_CONSISTENT_ID, consistentId);
public static <PK, CK extends PK, V> Map<CK, V> downcast(Map<PK, V> m) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We already have several downcast and upcast methods in ServerImpl, TcpDiscoveryImpl. May be we should move them to IgniteUtils and merge (if possible).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is only about TcoDiscoveryNode and ZookeeperNode which might be removed in future with zookeper discovery removal. With zookeper removal, the upcast and downcast would be even rarer.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Possible compatibility issues. Please, check rolling upgrade cases

This PR modifies protected classes (with Order annotation).
Changes to these classes can break rolling upgrade compatibility.

Affected files:

  • modules/core/src/main/java/org/apache/ignite/internal/management/cache/IdleVerifyDumpResult.java
  • modules/core/src/main/java/org/apache/ignite/internal/management/cache/IdleVerifyResult.java
  • modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IncrementalSnapshotVerifyResult.java
  • modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotCheckPartitionHashesResponse.java
  • modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotPartitionsVerifyHandlerResponse.java
  • modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotPartitionsVerifyResult.java
  • modules/core/src/main/java/org/apache/ignite/internal/processors/cache/verify/PartitionHashRecord.java
  • modules/core/src/main/java/org/apache/ignite/internal/processors/cache/verify/TransactionsHashRecord.java
  • modules/core/src/main/java/org/apache/ignite/internal/visor/VisorTaskResult.java
  • modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/internal/TcpDiscoveryNode.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants