zstan commented on code in PR #13770:
URL: https://github.com/apache/ignite/pull/13770#discussion_r4753083337
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/continuous/CacheContinuousQueryHandler.java:
##########
@@ -1734,16 +1735,22 @@ private CacheContinuousQueryEntry
transformToEntry(IgniteClosure<CacheEntryEvent
oldVal = null;
}
+ // The transformer result is not a cache value, so the keep binary
flag of the cache does not apply to it.
+ // Keep it binary only if the transformer returned a BinaryObject, as
on the local node.
+ boolean keepBinary = transVal instanceof BinaryObject;
Review Comment:
@rezataroosheh I revert all staff from here and :
1. testNonBinaryResultArrivesAsIs - with 'withKeepBinary' returns 2 objects
as BinaryObjectImpl - seems this is ok (othervize plz show me the
documemntation link)
2. testNonBinaryResultArrivesAsIs without 'withKeepBinary' returns 2 objects
as CacheContinuousWithTransformerKeepBinaryTest$PersonId - this is ok too
3. The same for testBinaryValueResultArrivesAsIs - which looks as aligned
behavior for both key and val as for me.
4. Single run for testBinaryKeyResultArrivesAsIs test is failed for me also
with your changes ^
```
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertTrue(Assert.java:53)
at
org.apache.ignite.testframework.junits.JUnitAssertAware.assertTrue(JUnitAssertAware.java:35)
at
org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousWithTransformerKeepBinaryTest.testBinaryKeyResultArrivesAsIs(CacheContinuousWithTransformerKeepBinaryTest.java:175)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
```
there are multiple changes between 2.18 and master in part of 'keepBinary'
probably it been fixed
wdyt ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]