Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
8e8bb8f
WIP
anton-vinogradov Apr 30, 2026
d7c9348
WIP
anton-vinogradov May 4, 2026
bac9529
WIP
anton-vinogradov May 4, 2026
2793feb
WIP
anton-vinogradov May 4, 2026
6d317df
WIP
anton-vinogradov May 4, 2026
802f7e1
WIP
anton-vinogradov May 4, 2026
7c5d2e1
WIP
anton-vinogradov May 4, 2026
05253c6
WIP
anton-vinogradov May 5, 2026
b2fe338
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 7, 2026
63110cd
WIP
anton-vinogradov May 7, 2026
880c9b7
WIP
anton-vinogradov May 7, 2026
e65ee21
WIP
anton-vinogradov May 7, 2026
01892b9
WIP
anton-vinogradov May 7, 2026
0774499
WIP
anton-vinogradov May 8, 2026
a87dcde
WIP
anton-vinogradov May 8, 2026
ee4c879
WIP
anton-vinogradov May 8, 2026
53036be
WIP
anton-vinogradov May 8, 2026
76802b7
WIP
anton-vinogradov May 8, 2026
854aeb8
WIP
anton-vinogradov May 8, 2026
049abc9
WIP
anton-vinogradov May 8, 2026
b95ccef
WIP
anton-vinogradov May 10, 2026
0c02ce6
WIP
anton-vinogradov May 10, 2026
0f87076
WIP
anton-vinogradov May 12, 2026
7aaa915
WIP
anton-vinogradov May 12, 2026
46df8f3
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 12, 2026
5737bcd
WIP
anton-vinogradov May 13, 2026
b59531f
WIP
anton-vinogradov May 14, 2026
95f9b90
WIP
anton-vinogradov May 14, 2026
9ef8a15
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 14, 2026
1b2d240
WIP
anton-vinogradov May 14, 2026
9f4b276
WIP
anton-vinogradov May 14, 2026
aecd605
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 18, 2026
1f7b0fc
WIP
anton-vinogradov May 18, 2026
bd9c1bc
WIP
anton-vinogradov May 18, 2026
95d6445
WIP
anton-vinogradov May 19, 2026
4e392b6
WIP
anton-vinogradov May 19, 2026
faa5d29
WIP
anton-vinogradov May 19, 2026
9b04411
WIP
anton-vinogradov May 19, 2026
4de48b4
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 19, 2026
0ec4e94
WIP
anton-vinogradov May 19, 2026
dfd0812
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 20, 2026
2948fb3
WIP
anton-vinogradov May 20, 2026
104d4c2
WIP
anton-vinogradov May 20, 2026
3156323
WIP
anton-vinogradov May 20, 2026
9a10693
WIP
anton-vinogradov May 20, 2026
25f391b
WIP
anton-vinogradov May 20, 2026
5eca804
WIP
anton-vinogradov May 21, 2026
1915b2d
WIP
anton-vinogradov May 21, 2026
7acf8c2
WIP
anton-vinogradov May 21, 2026
2b5417c
WIP
anton-vinogradov May 21, 2026
3b547e8
WIP
anton-vinogradov May 21, 2026
6da0195
WIP
anton-vinogradov May 21, 2026
d2eea1f
WIP
anton-vinogradov May 21, 2026
e98f17d
WIP
anton-vinogradov May 22, 2026
4a5f0c0
WIP
anton-vinogradov May 22, 2026
c972d42
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 22, 2026
3c10d5a
WIP
anton-vinogradov May 22, 2026
e5e8e67
WIP
anton-vinogradov May 22, 2026
a6ecdbe
WIP
anton-vinogradov May 22, 2026
aba6a86
WIP
anton-vinogradov May 24, 2026
09da2ce
WIP
anton-vinogradov May 25, 2026
d2c5ea2
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 26, 2026
aaafe76
WIP
anton-vinogradov May 26, 2026
d60a650
WIP
anton-vinogradov May 26, 2026
e2c4570
Revert "WIP"
anton-vinogradov May 26, 2026
b8df115
WIP
anton-vinogradov May 26, 2026
5cff2da
WIP
anton-vinogradov May 27, 2026
78c19b6
WIP
anton-vinogradov May 27, 2026
ebe56fa
WIP
anton-vinogradov May 28, 2026
b12be02
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov May 28, 2026
503e6a9
WIP
anton-vinogradov May 28, 2026
267449f
WIP
anton-vinogradov May 28, 2026
788527e
WIP
anton-vinogradov May 28, 2026
20e3f84
WIP
anton-vinogradov May 28, 2026
d5bfdee
WIP
anton-vinogradov May 28, 2026
83e19fc
WIP
anton-vinogradov May 28, 2026
e5e77f5
WIP
anton-vinogradov May 28, 2026
679cbc7
WIP
anton-vinogradov May 29, 2026
4a0ab1d
WIP
anton-vinogradov May 29, 2026
5a80f0b
WIP
anton-vinogradov Jun 1, 2026
c18d43b
WIP
anton-vinogradov Jun 1, 2026
d1e889a
WIP
anton-vinogradov Jun 1, 2026
a3c81ff
WIP
anton-vinogradov Jun 1, 2026
9699848
WIP
anton-vinogradov Jun 2, 2026
df98f64
WIP
anton-vinogradov Jun 2, 2026
7e89c3f
WIP
anton-vinogradov Jun 2, 2026
cf915a6
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 2, 2026
b93b940
WIP
anton-vinogradov Jun 2, 2026
c2de145
WIP
anton-vinogradov Jun 2, 2026
cf1f904
WIP
anton-vinogradov Jun 2, 2026
a121eec
WIP
anton-vinogradov Jun 2, 2026
761fa74
WIP
anton-vinogradov Jun 2, 2026
95301d1
WIP
anton-vinogradov Jun 2, 2026
4a5a25b
WIP
anton-vinogradov Jun 2, 2026
4b32a93
WIP
anton-vinogradov Jun 3, 2026
acc45d9
WIP
anton-vinogradov Jun 3, 2026
9426f97
WIP
anton-vinogradov Jun 4, 2026
b13b16b
WIP
anton-vinogradov Jun 4, 2026
442c531
WIP
anton-vinogradov Jun 4, 2026
3f81a46
WIP
anton-vinogradov Jun 4, 2026
cca847f
WIP
anton-vinogradov Jun 4, 2026
aa5c0a6
WIP
anton-vinogradov Jun 4, 2026
86acbcb
WIP
anton-vinogradov Jun 4, 2026
bf148ab
WIP
anton-vinogradov Jun 4, 2026
4bf1468
WIP
anton-vinogradov Jun 4, 2026
30b3e6f
WIP
anton-vinogradov Jun 4, 2026
8746006
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 4, 2026
104da1a
WIP
anton-vinogradov Jun 4, 2026
39a6d0b
WIP
anton-vinogradov Jun 4, 2026
dc66ed7
WIP
anton-vinogradov Jun 4, 2026
fc25e5e
WIP
anton-vinogradov Jun 4, 2026
108f662
WIP
anton-vinogradov Jun 5, 2026
6a28ac9
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 15, 2026
21c959c
WIP
anton-vinogradov Jun 15, 2026
579c370
WIP
anton-vinogradov Jun 15, 2026
84db8ab
WIP
anton-vinogradov Jun 15, 2026
bc766d0
WIP
anton-vinogradov Jun 15, 2026
6607ab7
WIP
anton-vinogradov Jun 15, 2026
f820df2
WIP
anton-vinogradov Jun 15, 2026
19d8e7a
WIP
anton-vinogradov Jun 15, 2026
b1170c5
WIP
anton-vinogradov Jun 16, 2026
428232c
WIP
anton-vinogradov Jun 16, 2026
fb119f7
WIP
anton-vinogradov Jun 16, 2026
bef3f87
WIP
anton-vinogradov Jun 16, 2026
a34f972
WIP
anton-vinogradov Jun 16, 2026
d6d5651
WIP
anton-vinogradov Jun 16, 2026
1039bae
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 16, 2026
4593fd5
WIP
anton-vinogradov Jun 17, 2026
b957980
WIP
anton-vinogradov Jun 17, 2026
212f465
WIP
anton-vinogradov Jun 17, 2026
43d2124
WIP
anton-vinogradov Jun 17, 2026
bf8c45f
WIP
anton-vinogradov Jun 17, 2026
9087802
WIP
anton-vinogradov Jun 17, 2026
a770f39
WIP
anton-vinogradov Jun 17, 2026
5cb3bcc
WIP
anton-vinogradov Jun 18, 2026
d2e169c
WIP
anton-vinogradov Jun 18, 2026
3b781e7
WIP
anton-vinogradov Jun 18, 2026
82a93af
WIP
anton-vinogradov Jun 18, 2026
3efaf5f
WIP
anton-vinogradov Jun 18, 2026
ef766e7
WIP
anton-vinogradov Jun 18, 2026
b011b3d
WIP
anton-vinogradov Jun 18, 2026
4f6d581
WIP
anton-vinogradov Jun 18, 2026
f8e95ec
WIP
anton-vinogradov Jun 18, 2026
9b96c56
WIP
anton-vinogradov Jun 18, 2026
9f1fda4
WIP
anton-vinogradov Jun 18, 2026
31b4912
WIP
anton-vinogradov Jun 18, 2026
ae0d761
WIP
anton-vinogradov Jun 19, 2026
132abcf
WIP
anton-vinogradov Jun 19, 2026
75dea23
WIP
anton-vinogradov Jun 19, 2026
d1f0543
WIP
anton-vinogradov Jun 19, 2026
a0dbcbe
WIP
anton-vinogradov Jun 19, 2026
187f773
WIP
anton-vinogradov Jun 19, 2026
f737f3d
WIP
anton-vinogradov Jun 19, 2026
fbe4df7
WIP
anton-vinogradov Jun 19, 2026
6766755
WIP
anton-vinogradov Jun 19, 2026
d471c0c
WIP
anton-vinogradov Jun 19, 2026
12321d4
WIP
anton-vinogradov Jun 19, 2026
9838350
WIP
anton-vinogradov Jun 19, 2026
fef9f9e
WIP
anton-vinogradov Jun 19, 2026
616af67
WIP
anton-vinogradov Jun 19, 2026
70615f4
WIP
anton-vinogradov Jun 19, 2026
fb2e17f
WIP
anton-vinogradov Jun 19, 2026
e2cab91
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 19, 2026
c95163d
WIP
anton-vinogradov Jun 22, 2026
88c3f73
WIP
anton-vinogradov Jun 23, 2026
63e5f51
WIP
anton-vinogradov Jun 23, 2026
1ace5ed
WIP
anton-vinogradov Jun 23, 2026
aefccbc
WIP
anton-vinogradov Jun 23, 2026
c93620d
WIP
anton-vinogradov Jun 23, 2026
0ade8bb
WIP
anton-vinogradov Jun 23, 2026
5b571f5
WIP
anton-vinogradov Jun 24, 2026
c4b62d5
WIP
anton-vinogradov Jun 24, 2026
387f167
WIP
anton-vinogradov Jun 24, 2026
1a77a5b
WIP
anton-vinogradov Jun 24, 2026
2aa54c9
WIP
anton-vinogradov Jun 24, 2026
20cb63e
WIP
anton-vinogradov Jun 24, 2026
623469a
WIP
anton-vinogradov Jun 24, 2026
f4a4cd2
WIP
anton-vinogradov Jun 24, 2026
d909601
WIP
anton-vinogradov Jun 24, 2026
a8b014f
WIP
anton-vinogradov Jun 24, 2026
11f5901
WIP
anton-vinogradov Jun 24, 2026
78f1904
WIP
anton-vinogradov Jun 24, 2026
ec5ed63
WIP
anton-vinogradov Jun 25, 2026
5858490
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 25, 2026
72fb5d5
WIP
anton-vinogradov Jun 25, 2026
86a31ec
WIP
anton-vinogradov Jun 26, 2026
3f77c74
WIP
anton-vinogradov Jun 26, 2026
f2eab1e
WIP
anton-vinogradov Jun 27, 2026
b5d144a
WIP
anton-vinogradov Jun 27, 2026
99b7c96
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 27, 2026
fb22cfe
WIP
anton-vinogradov Jun 27, 2026
a46d916
WIP
anton-vinogradov Jun 27, 2026
0418e2b
WIP
anton-vinogradov Jun 27, 2026
4b7adb3
WIP
anton-vinogradov Jun 28, 2026
eada8a0
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 28, 2026
4a013f1
WIP
anton-vinogradov Jun 28, 2026
d5800c3
WIP
anton-vinogradov Jun 28, 2026
b0dd3c2
WIP
anton-vinogradov Jun 28, 2026
dae107f
WIP
anton-vinogradov Jun 28, 2026
dd7e0f4
WIP
anton-vinogradov Jun 28, 2026
a382a7e
WIP
anton-vinogradov Jun 28, 2026
cb085d7
WIP
anton-vinogradov Jun 28, 2026
fb0f25d
WIP
anton-vinogradov Jun 28, 2026
06e05fe
WIP
anton-vinogradov Jun 29, 2026
5caad1d
WIP
anton-vinogradov Jun 29, 2026
c817fcd
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 29, 2026
d732f64
WIP
anton-vinogradov Jun 29, 2026
3dbb32b
WIP
anton-vinogradov Jun 29, 2026
a1c828c
WIP
anton-vinogradov Jun 30, 2026
98c3175
WIP
anton-vinogradov Jun 30, 2026
031d3d8
WIP
anton-vinogradov Jun 30, 2026
7688844
WIP
anton-vinogradov Jun 30, 2026
ecff3ee
WIP
anton-vinogradov Jun 30, 2026
507b405
WIP
anton-vinogradov Jun 30, 2026
e1cd796
WIP
anton-vinogradov Jun 30, 2026
6e3d9ff
WIP
anton-vinogradov Jun 30, 2026
3503d84
WIP
anton-vinogradov Jun 30, 2026
c17673d
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 30, 2026
7adece9
WIP
anton-vinogradov Jun 30, 2026
2d412cf
WIP
anton-vinogradov Jun 30, 2026
878278a
WIP
anton-vinogradov Jun 30, 2026
4d5cdb7
WIP
anton-vinogradov Jun 30, 2026
3656926
WIP
anton-vinogradov Jun 30, 2026
b09b1b5
WIP
anton-vinogradov Jun 30, 2026
6cc12af
WIP
anton-vinogradov Jun 30, 2026
d558a0c
WIP
anton-vinogradov Jun 30, 2026
9b22ac2
WIP
anton-vinogradov Jun 30, 2026
2c0cf95
WIP
anton-vinogradov Jun 30, 2026
dc709a9
WIP
anton-vinogradov Jun 30, 2026
7f6ccf9
WIP
anton-vinogradov Jun 30, 2026
0288131
WIP
anton-vinogradov Jun 30, 2026
780001b
WIP
anton-vinogradov Jun 30, 2026
fe7d554
Merge remote-tracking branch 'origin/master' into ignite-28520
anton-vinogradov Jun 30, 2026
6d09b4a
WIP
anton-vinogradov Jun 30, 2026
e4ef03b
WIP
anton-vinogradov Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ public interface CacheObject {
* @param ldr Class loader.
* @throws IgniteCheckedException If failed.
*/
public void finishUnmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException;
public void unmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException;

/**
* @param ctx Context.
* @throws IgniteCheckedException If failed.
*/
public void prepareMarshal(CacheObjectValueContext ctx) throws IgniteCheckedException;
public void marshal(CacheObjectValueContext ctx) throws IgniteCheckedException;

/**
* @return {@code True} if postWriteHashCode call required, {@code false} otherwise.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ private <T> T uncachedValue(Class<?> cls) throws BinaryObjectException {
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException {
@Override public void unmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException {
this.ctx = ctx.binaryContext();
}

/** {@inheritDoc} */
@Override public void prepareMarshal(CacheObjectValueContext ctx) throws IgniteCheckedException {
@Override public void marshal(CacheObjectValueContext ctx) throws IgniteCheckedException {
// No-op.
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ public BinaryObjectImpl(BinaryContext ctx, byte[] arr, int start) {
@Override public CacheObject prepareForCache(CacheObjectValueContext ctx) {
BinaryObjectImpl res = detached() ? this : detach(false);

res.prepareMarshal(ctx);
res.marshal(ctx);

return res;
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException {
@Override public void unmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException {
assert arr != null || valBytes != null;

if (arr == null)
Expand All @@ -238,7 +238,7 @@ public BinaryObjectImpl(BinaryContext ctx, byte[] arr, int start) {
}

/** {@inheritDoc} */
@Override public void prepareMarshal(CacheObjectValueContext ctx) {
@Override public void marshal(CacheObjectValueContext ctx) {
assert arr != null || valBytes != null;

if (valBytes == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,12 @@ else if (fieldOffLen == BinaryUtils.OFFSET_2)
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException {
@Override public void unmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException {
throw new UnsupportedOperationException();
}

/** {@inheritDoc} */
@Override public void prepareMarshal(CacheObjectValueContext ctx) throws IgniteCheckedException {
@Override public void marshal(CacheObjectValueContext ctx) throws IgniteCheckedException {
throw new UnsupportedOperationException();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ public class CalciteMessageFactory extends AbstractMarshallableMessageFactoryPro

/** {@inheritDoc} */
@Override public void registerAll(MessageFactory factory) {
register(factory, QueryStartRequest.class, (short)300, schemaAwareMarsh, resolvedClsLdr);
register(factory, QueryStartResponse.class, (short)301, dfltMarsh, dftlClsLdr);
register(factory, CalciteErrorMessage.class, (short)302, dfltMarsh, resolvedClsLdr);
register(factory, QueryBatchMessage.class, (short)303, dfltMarsh, dftlClsLdr);
register(factory, QueryBatchAcknowledgeMessage.class, (short)304, dfltMarsh, dftlClsLdr);
register(factory, QueryInboxCloseMessage.class, (short)305, dfltMarsh, dftlClsLdr);
register(factory, QueryCloseMessage.class, (short)306, dfltMarsh, dftlClsLdr);
register(factory, GenericValueMessage.class, (short)307, schemaAwareMarsh, resolvedClsLdr);
register(factory, FragmentMapping.class, (short)308, dfltMarsh, dftlClsLdr);
register(factory, ColocationGroup.class, (short)309, dfltMarsh, dftlClsLdr);
register(factory, FragmentDescription.class, (short)310, dfltMarsh, dftlClsLdr);
register(factory, QueryTxEntry.class, (short)311, dfltMarsh, dftlClsLdr);
register(factory, QueryStartRequest.class, (short)300, schemaAwareMarsh);
register(factory, QueryStartResponse.class, (short)301, dfltMarsh);
register(factory, CalciteErrorMessage.class, (short)302, dfltMarsh);
register(factory, QueryBatchMessage.class, (short)303, dfltMarsh);
register(factory, QueryBatchAcknowledgeMessage.class, (short)304, dfltMarsh);
register(factory, QueryInboxCloseMessage.class, (short)305, dfltMarsh);
register(factory, QueryCloseMessage.class, (short)306, dfltMarsh);
register(factory, GenericValueMessage.class, (short)307, schemaAwareMarsh);
register(factory, FragmentMapping.class, (short)308, dfltMarsh);
register(factory, ColocationGroup.class, (short)309, dfltMarsh);
register(factory, FragmentDescription.class, (short)310, dfltMarsh);
register(factory, QueryTxEntry.class, (short)311, dfltMarsh);
}

/** */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
package org.apache.ignite.internal.processors.query.calcite.message;

import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.internal.MarshallableMessage;
import org.apache.ignite.internal.Order;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.marshaller.Marshaller;
import org.apache.ignite.plugin.extensions.communication.MarshallableMessage;

/** */
public final class GenericValueMessage implements MarshallableMessage {
Expand All @@ -48,13 +48,13 @@ public Object value() {
}

/** {@inheritDoc} */
@Override public void prepareMarshal(Marshaller marsh) throws IgniteCheckedException {
@Override public void marshal(Marshaller marsh) throws IgniteCheckedException {
if (val != null && serialized == null)
serialized = U.marshal(marsh, val);
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(Marshaller marsh, ClassLoader clsLdr) throws IgniteCheckedException {
@Override public void unmarshal(Marshaller marsh, ClassLoader clsLdr) throws IgniteCheckedException {
if (serialized != null && val == null)
val = U.unmarshal(marsh, serialized, clsLdr);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.lang.IgniteUuid;
import org.apache.ignite.plugin.extensions.communication.Message;
import org.apache.ignite.plugin.extensions.communication.MessageMarshaller;

/**
*
Expand Down Expand Up @@ -154,11 +155,8 @@ public FailureProcessor failureProcessor() {
@Override public void send(UUID nodeId, Message msg) throws IgniteCheckedException {
if (localNodeId().equals(nodeId))
onMessage(nodeId, msg);
else {
prepareMarshal(msg);

else
ioManager().sendToGridTopic(nodeId, GridTopic.TOPIC_QUERY, msg, GridIoPolicy.CALLER_THREAD);
}
}

/** {@inheritDoc} */
Expand All @@ -181,24 +179,10 @@ public FailureProcessor failureProcessor() {
}
}

/** */
protected void prepareMarshal(Message msg) throws IgniteCheckedException {
try {
if (msg instanceof CalciteContextMarshallableMessage)
((CalciteContextMarshallableMessage)msg).prepareMarshal(ctx);
}
catch (Exception e) {
failureProcessor().process(new FailureContext(FailureType.CRITICAL_ERROR, e));

throw e;
}
}

/** */
protected void prepareUnmarshal(Message msg) throws IgniteCheckedException {
try {
if (msg instanceof CalciteContextMarshallableMessage)
((CalciteContextMarshallableMessage)msg).finishUnmarshal(ctx, clsLdr);
MessageMarshaller.unmarshal(ctx.kernalContext().messageFactory(), msg, ctx.kernalContext(), null, clsLdr);
}
catch (Exception e) {
failureProcessor().process(new FailureContext(FailureType.CRITICAL_ERROR, e));
Expand All @@ -221,22 +205,24 @@ protected void onMessage(UUID nodeId, Message msg) {
);
}

/** */
/** Listener for messages arriving from remote nodes; they are marshalled and must be finish-unmarshalled here. */
private void onMessage(UUID nodeId, Object msg, byte plc) {
if (msg instanceof Message && CalciteMessageFactory.isCalciteMessage((Message)msg))
if (msg instanceof Message && CalciteMessageFactory.isCalciteMessage((Message)msg)) {
try {
prepareUnmarshal((Message)msg);
}
catch (IgniteCheckedException e) {
throw U.convertException(e);
}

onMessage(nodeId, (Message)msg);
}
}

/** */
private void onMessageInternal(UUID nodeId, Message msg) {
try {
prepareUnmarshal(msg);
MessageListener lsnr = Objects.requireNonNull(lsnrs.get(msg.getClass()));

MessageListener lsnr = Objects.requireNonNull(lsnrs.get(msg.getClass()));
lsnr.onMessage(nodeId, msg);
}
catch (IgniteCheckedException e) {
throw U.convertException(e);
}
lsnr.onMessage(nodeId, msg);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@
import java.util.Map;
import java.util.UUID;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.internal.MarshallableMessage;
import org.apache.ignite.internal.Order;
import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion;
import org.apache.ignite.internal.processors.cache.GridCacheSharedContext;
import org.apache.ignite.internal.processors.query.calcite.metadata.FragmentDescription;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.marshaller.Marshaller;
import org.apache.ignite.plugin.extensions.communication.MarshallableMessage;
import org.jetbrains.annotations.Nullable;

/**
*
*/
public class QueryStartRequest implements MarshallableMessage, CalciteContextMarshallableMessage, ExecutionContextAware {
/** Message sent to remote nodes to start a query fragment execution. */
public class QueryStartRequest implements MarshallableMessage, ExecutionContextAware {
/** */
@Order(0)
String schema;
Expand Down Expand Up @@ -215,32 +212,16 @@ public boolean keepBinaryMode() {
}

/** {@inheritDoc} */
@Override public void prepareMarshal(Marshaller marsh) throws IgniteCheckedException {
@Override public void marshal(Marshaller marsh) throws IgniteCheckedException {
if (paramsBytes == null && params != null)
paramsBytes = U.marshal(marsh, params);
}

/** {@inheritDoc} */
@Override public void prepareMarshal(GridCacheSharedContext<?, ?> ctx) throws IgniteCheckedException {
if (qryTxEntries != null) {
for (QueryTxEntry e : qryTxEntries)
e.prepareMarshal(ctx);
}
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(Marshaller marsh, ClassLoader clsLdr) throws IgniteCheckedException {
@Override public void unmarshal(Marshaller marsh, ClassLoader clsLdr) throws IgniteCheckedException {
if (params == null && paramsBytes != null)
params = U.unmarshal(marsh, paramsBytes, clsLdr);

paramsBytes = null;
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(GridCacheSharedContext<?, ?> ctx, ClassLoader clsLdr) throws IgniteCheckedException {
if (qryTxEntries != null) {
for (QueryTxEntry e : qryTxEntries)
e.finishUnmarshal(ctx, clsLdr);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@
import java.util.Collection;
import java.util.Comparator;
import java.util.function.Function;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.configuration.TransactionConfiguration;
import org.apache.ignite.internal.Order;
import org.apache.ignite.internal.processors.cache.CacheObject;
import org.apache.ignite.internal.processors.cache.CacheObjectContext;
import org.apache.ignite.internal.processors.cache.GridCacheSharedContext;
import org.apache.ignite.internal.processors.cache.KeyCacheObject;
import org.apache.ignite.internal.processors.cache.version.GridCacheVersion;
import org.apache.ignite.internal.processors.query.calcite.exec.ExecutionContext;
import org.apache.ignite.plugin.extensions.communication.CacheIdAware;
import org.apache.ignite.plugin.extensions.communication.Message;

/**
* Class to pass to remote nodes transaction changes.
Expand All @@ -38,7 +37,7 @@
* @see ExecutionContext#transactionChanges(int, int[], Function, Comparator)
* @see QueryStartRequest#queryTransactionEntries()
*/
public class QueryTxEntry implements CalciteContextMarshallableMessage {
public class QueryTxEntry implements Message, CacheIdAware {
/** Cache id. */
@Order(0)
int cacheId;
Expand Down Expand Up @@ -75,8 +74,8 @@ public QueryTxEntry(int cacheId, KeyCacheObject key, CacheObject val, GridCacheV
this.ver = ver;
}

/** @return Cache id. */
public int cacheId() {
/** {@inheritDoc} */
@Override public int cacheId() {
return cacheId;
}

Expand All @@ -94,24 +93,4 @@ public CacheObject value() {
public GridCacheVersion version() {
return ver;
}

/** {@inheritDoc} */
@Override public void prepareMarshal(GridCacheSharedContext<?, ?> ctx) throws IgniteCheckedException {
CacheObjectContext coctx = ctx.cacheContext(cacheId).cacheObjectContext();

key.prepareMarshal(coctx);

if (val != null)
val.prepareMarshal(coctx);
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(GridCacheSharedContext<?, ?> ctx, ClassLoader ldr) throws IgniteCheckedException {
CacheObjectContext coctx = ctx.cacheContext(cacheId).cacheObjectContext();

key.finishUnmarshal(coctx, ldr);

if (val != null)
val.finishUnmarshal(coctx, ldr);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.stream.Collectors;
import java.util.stream.LongStream;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.internal.MarshallableMessage;
import org.apache.ignite.internal.Order;
import org.apache.ignite.internal.processors.cache.distributed.dht.topology.GridDhtPartitionState;
import org.apache.ignite.internal.processors.query.calcite.util.Commons;
Expand All @@ -39,6 +38,7 @@
import org.apache.ignite.internal.util.typedef.F;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.marshaller.Marshaller;
import org.apache.ignite.plugin.extensions.communication.MarshallableMessage;

/** */
public class ColocationGroup implements MarshallableMessage {
Expand Down Expand Up @@ -314,8 +314,8 @@ public int[] partitions(UUID nodeId) {
}

/** {@inheritDoc} */
@Override public void prepareMarshal(Marshaller marsh) throws IgniteCheckedException {
if (assignments == null || primaryAssignment)
@Override public void marshal(Marshaller marsh) throws IgniteCheckedException {
if (!F.isEmpty(marshalledAssignments) || assignments == null || primaryAssignment)
return;

Map<UUID, Integer> nodeIdxs = new HashMap<>();
Expand Down Expand Up @@ -343,7 +343,7 @@ public int[] partitions(UUID nodeId) {
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(Marshaller marsh, ClassLoader clsLdr) throws IgniteCheckedException {
@Override public void unmarshal(Marshaller marsh, ClassLoader clsLdr) throws IgniteCheckedException {
if (F.isEmpty(marshalledAssignments))
return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ private TestMessageServiceImpl(GridKernalContext kernal, TestIoManager mgr) {
@Override public boolean alive(UUID nodeId) {
return true;
}

/** {@inheritDoc} */
@Override protected void prepareUnmarshal(Message msg) {
// No-op: TestIoManager delivers messages in-memory, no deserialization needed.
}
}

/**
Expand Down
Loading
Loading