You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Vyacheslav Daradur (JIRA)" <ji...@apache.org> on 2018/12/15 11:47:00 UTC

[jira] [Created] (IGNITE-10705) Wrong check of test's compatible 'dataMode' in IgniteConfigVariationsAbstractTest

Vyacheslav Daradur created IGNITE-10705:
-------------------------------------------

             Summary: Wrong check of test's compatible 'dataMode' in IgniteConfigVariationsAbstractTest
                 Key: IGNITE-10705
                 URL: https://issues.apache.org/jira/browse/IGNITE-10705
             Project: Ignite
          Issue Type: Bug
            Reporter: Vyacheslav Daradur


Found that method {{IgniteConfigVariationsAbstractTest#isCompatible}} works incorrectly.

Here is the actual code:
{code:java}
    protected boolean isCompatible() throws Exception {
        switch (dataMode) {
            case BINARILIZABLE:
            case PLANE_OBJECT:
                return !(getConfiguration().getMarshaller() instanceof JdkMarshaller);
        }
        return false;
    }
{code}
It returns {{false}} if a test mode is [SERIALIZABLE, CUSTOM_SERIALIZABLE], but this is main modes which are supported by any marshaller.

*That means a set of tests which should be executed will be skipped instead.*

Also, modes {{BINARILIZABLE}} and {{PLANE_OBJECT}} are supported only by {{BinaryMarshaller}} and {{OptimizedMarshaller.setRequireSerializable(false)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)