Skip to content

IGNITE-28255 Fix java.io.NotSerializableException: org.apache.ignite.…#12901

Open
abashev wants to merge 1 commit intoapache:masterfrom
abashev:feature/IGNITE-28255
Open

IGNITE-28255 Fix java.io.NotSerializableException: org.apache.ignite.…#12901
abashev wants to merge 1 commit intoapache:masterfrom
abashev:feature/IGNITE-28255

Conversation

@abashev
Copy link
Contributor

@abashev abashev commented Mar 17, 2026

…internal.processors.marshaller.MarshallerMappingItem

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.

@github-actions
Copy link

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/processors/marshaller/MarshallerMappingItem.java

…internal.processors.marshaller.MarshallerMappingItem
@abashev abashev force-pushed the feature/IGNITE-28255 branch from 94e744c to 950fc89 Compare March 17, 2026 10:16
* See {@link GridMarshallerMappingProcessor} javadoc for more information.
*/
public final class MarshallerMappingItem implements Message {
public final class MarshallerMappingItem implements Message, Serializable {
Copy link
Contributor

Choose a reason for hiding this comment

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

The goal is to get rid of serialisable, not to add

Copy link
Contributor

Choose a reason for hiding this comment

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

Correct, but now many places require Serializable, for example TcpDiscoveryNodeAddedMessage#msgs, TcpDiscoveryClientReconnectMessage#msgs. In these and some other java SerDer (called via U.marshal(jdkMarshaller)) requires Serializable.

I suggest removing Serializable when it becomes possible.

Copy link
Contributor

@Vladsz83 Vladsz83 Mar 17, 2026

Choose a reason for hiding this comment

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

@anton-vinogradov , @NSAmelchev pls. note #12890 . Useful message. Should be removed in future but currently helps in development a lot.

@sonarqubecloud
Copy link

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.

4 participants