[
https://issues.apache.org/jira/browse/IGNITE-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064063#comment-15064063
]
ASF GitHub Bot commented on IGNITE-2209:
----------------------------------------
GitHub user agoncharuk opened a pull request:
https://github.com/apache/ignite/pull/355
IGNITE-2209 - Fixing class casts in query tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/agoncharuk/ignite ignite-2209
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/355.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #355
----
commit 39321b6039e18c0a0f7dfff4fc3a565ebc66bd3d
Author: Alexey Goncharuk <[email protected]>
Date: 2015-12-18T15:10:26Z
IGNITE-2209 - Fixing class casts in query tests.
----
> Some query tests fail with ClassCastException when BinaryMarshaller is
> enabled.
> -------------------------------------------------------------------------------
>
> Key: IGNITE-2209
> URL: https://issues.apache.org/jira/browse/IGNITE-2209
> Project: Ignite
> Issue Type: Bug
> Components: cache, interop
> Affects Versions: ignite-1.4
> Reporter: Vladimir Ozerov
> Assignee: Alexey Goncharuk
> Priority: Critical
> Fix For: 1.5
>
>
> *Problem*
> Sample stack trace:
> {code}
> java.lang.ClassCastException:
> org.apache.ignite.internal.binary.BinaryObjectImpl cannot be cast to
> org.apache.ignite.internal.processors.cache.IgniteCacheAbstractQuerySelfTest$ObjectValue
> at
> org.apache.ignite.internal.processors.cache.IgniteCacheAbstractQuerySelfTest.testObjectQueryWithSwap(IgniteCacheAbstractQuerySelfTest.java:574)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1699)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:116)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1637)
> at java.lang.Thread.run(Thread.java:745)
> {code}
> *Steps to reproduce*
> 1) Set BinaryMarshaller
> 2) Run IgniteCacheLocalQuerySelfTest
> 3) Observe failures due to class-cast in the following tests:
> - testArray
> - testObjectQueryWithSwap
> - testComplexType
> *Reason*
> Unknown; looks like we do not unwrap binary objects in some cases.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)