Skip to content

IGNITE-27845 Use MessageSerializer for CacheContinuousQueryEntry#12744

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

IGNITE-27845 Use MessageSerializer for CacheContinuousQueryEntry#12744
abashev wants to merge 1 commit intoapache:masterfrom
abashev:feature/IGNITE-27845

Conversation

@abashev
Copy link

@abashev abashev commented Feb 16, 2026

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 TC.Bot: Check PR)

Notes

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

@abashev abashev force-pushed the feature/IGNITE-27845 branch 2 times, most recently from 2ef00de to c0ce88e Compare February 18, 2026 08:44
@sonarqubecloud
Copy link

*
*/
public class IgniteCacheContinuousQueryImmutableEntryTest extends GridCommonAbstractTest {
/** Message factory. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it moved here? Why protected? Are there any significant reason for this?

@Test
public void testCacheContinuousQueryEntrySerialization() {
CacheContinuousQueryEntry e0 = new CacheContinuousQueryEntry(
var srcMsg = new CacheContinuousQueryEntry(
Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary edit

}
/** Cache name. */
@Order(0)
private int cacheId;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why moved? Purpose of change?


/** */
@Order(2)
private long filteredCnt;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why moved?


/** Flags. */
@Order(3)
private byte flags;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why moved?

private long filteredCnt;
/** Update counter. */
@Order(9)
private long updateCntr;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why moved?

// Skip write class header.
writer.onHeaderWritten();
e0.writeTo(buf, writer);
var resMsg = doMarshalUnmarshal(srcMsg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep old logic, except for usage of deprecated methods? Just replace logic, where serializer is necessry for test to work correctly.

@shishkovilja
Copy link
Contributor

@abashev , also there are many duplications of getters and setters in message class.

@abashev abashev force-pushed the feature/IGNITE-27845 branch from 4549244 to 46c1e7e Compare February 19, 2026 16:24
@abashev abashev force-pushed the feature/IGNITE-27845 branch from 46c1e7e to 0a58a22 Compare February 20, 2026 07:55
@abashev abashev requested a review from shishkovilja February 20, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments