[infinispan-issues] [JBoss JIRA] (ISPN-1760) The default value for syncCommitPhase attribute is changed to false by the test framework

Mircea Markus (JIRA) jira-events at lists.jboss.org
Thu Jan 19 09:09:18 EST 2012


     [ https://issues.jboss.org/browse/ISPN-1760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mircea Markus updated ISPN-1760:
--------------------------------

    Description: For the new configuration, the test framework changes the values of syncCommitPhase and syncRollbackPhase to false, which is not correct but inconsistent with the way these values are set for the old configuration.   (was: See UT below.
{code}
public class SimplePutTest extends MultipleCacheManagersTest {
   @Override
   protected void createCacheManagers() throws Throwable {
      ConfigurationBuilder dcc = getDefaultClusteredCacheConfig(CacheMode.DIST_SYNC, true);
      dcc.transaction().transactionManagerLookup(new DummyTransactionManagerLookup());
      assert dcc.build().transaction().syncCommitPhase();
      createCluster(dcc, 2);
      waitForClusterToForm();
      
      //here's the failure
      assert cache(0).getCacheConfiguration().transaction().syncCommitPhase();
   }

   public void testPut() {
      cache(0).put("k","v");
   }
}
{code}
Whilst this unit test is only for this particular attribute it's worth changing that the bug doesn't exhibit for other config attributes, in particular those that changed their default values from 5.0 to 5.1.)

    
> The default value for syncCommitPhase attribute is changed to false by the test framework
> -----------------------------------------------------------------------------------------
>
>                 Key: ISPN-1760
>                 URL: https://issues.jboss.org/browse/ISPN-1760
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Test Suite
>    Affects Versions: 5.1.0.CR4
>            Reporter: Mircea Markus
>            Assignee: Mircea Markus
>             Fix For: 5.1.0.FINAL
>
>
> For the new configuration, the test framework changes the values of syncCommitPhase and syncRollbackPhase to false, which is not correct but inconsistent with the way these values are set for the old configuration. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list