Skip to content

IGNITE-28754 Replace SecurityAwareCustomMessageWrapper with OperationContextMessage#13284

Open
Vladsz83 wants to merge 55 commits into
apache:masterfrom
Vladsz83:Replace-SecurityAwareCustomMessageWrapper-with-OpCtxMsg_v2
Open

IGNITE-28754 Replace SecurityAwareCustomMessageWrapper with OperationContextMessage#13284
Vladsz83 wants to merge 55 commits into
apache:masterfrom
Vladsz83:Replace-SecurityAwareCustomMessageWrapper-with-OpCtxMsg_v2

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 added 21 commits June 23, 2026 14:09
…egistry_v2' into IGNITE-28808-Disallow-creation-of-operation-context-attributes-after-node-start
…of-operation-context-attributes-after-node-start

# Conflicts:
#	modules/core/src/main/java/org/apache/ignite/internal/thread/context/DistributedOperationContextManager.java
#	modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ClientImpl.java
#	modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java
#	modules/core/src/test/java/org/apache/ignite/internal/thread/context/OperationContextAttributesTest.java
…n-context-attributes-after-node-start

# Conflicts:
#	modules/core/src/main/java/org/apache/ignite/internal/thread/context/OperationContextDispatcher.java
#	modules/core/src/test/java/org/apache/ignite/internal/thread/context/OperationContextAttributesTest.java
…with-OpCtxMsg_v2

# Conflicts:
#	modules/core/src/main/java/org/apache/ignite/internal/CoreMessagesProvider.java
#	modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
#	modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/reader/StandaloneGridKernalContext.java
#	modules/core/src/main/java/org/apache/ignite/internal/thread/context/OperationContextDispatcher.java
#	modules/core/src/test/java/org/apache/ignite/internal/thread/context/OperationContextAttributesTest.java

/** {@inheritDoc} */
@Override public void start() throws IgniteCheckedException {
ctx.operationContextDispatcher().registerDistributedAttribute(0, SEC_OP_CTX_ATTR);

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.

Here we could put a ticket ref. to consider creation of a determined attributes id enum

withNoSchema(OperationContextMessage.class);
withNoSchema(SecurityContextMessage.class);

// [13500 - 13600]: Rolling Upgrade messages.

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.

We kept a 100-numbers-space earlier.

// [11500 - 11600]: IO, networking messages.
msgIdx = NODE_ID_MSG_TYPE;
withNoSchema(NodeIdMessage.class);
msgIdx = HANDSHAKE_MSG_TYPE;

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.

Minor reliability fix. Wanted to bring long ago.

GridKernalContext kctx = ((IgniteEx)ctx.grid()).context();

kctx.operationContextDispatcher().registerDistributedAttribute(0, dAttr1);
int dAttr1Id = OperationContextDispatcher.MAX_ATTRS_CNT - 2;

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.

Sometimes, we'll fill out the ids.

@github-actions

Copy link
Copy Markdown

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/managers/discovery/SecurityAwareCustomMessageWrapper.java
  • modules/core/src/main/java/org/apache/ignite/internal/processors/security/SecurityContextImpl.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.

1 participant