[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1138) Double override of BooleanAttributeType doesn't work

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Wed May 25 06:12:00 EDT 2011


    [ https://issues.jboss.org/browse/ISPN-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604261#comment-12604261 ] 

Galder Zamarreño commented on ISPN-1138:
----------------------------------------

The problem in the code shown seems to be the fact when you execute override.fluent().invocationBatching(), a marker is set indicating that invocation batching was changed, so when "test1" is defined, it knows which fields have been modified and is able to apply them to the new "test1" config.

However, when applyOverrides is called, the same thing is not happening and "test2" is essentially created of the base configuration without spotting any of the changes that were applied via applyOverrides.

> Double override of BooleanAttributeType doesn't work
> ----------------------------------------------------
>
>                 Key: ISPN-1138
>                 URL: https://issues.jboss.org/browse/ISPN-1138
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 5.0.0.CR3
>            Reporter: Paul Ferraro
>            Assignee: Galder Zamarreño
>             Fix For: 5.0.0.CR4
>
>
> The following test fails on the last assertion:
> {code}@Test
> public void invocationBatching() {
>     System.out.println(org.infinispan.Version.printVersion());
>     EmbeddedCacheManager manager = new DefaultCacheManager(new GlobalConfiguration(), new Configuration());
>     Configuration override = new Configuration();
>     override.fluent().invocationBatching();
>     assert override.isInvocationBatchingEnabled();
>     assert manager.defineConfiguration("test1", override).isInvocationBatchingEnabled();
>     Configuration config = new Configuration();
>     config.applyOverrides(override);
>     assert config.isInvocationBatchingEnabled();
>     assert manager.defineConfiguration("test2", config).isInvocationBatchingEnabled();
> }{code}
> In the above code, the last assertion fails.
> If you modify the above code to test for isIndexingEnabled(), the same failure occurs.  The problem is likely generalizable to all boolean configuration properties.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list