[infinispan-issues] [JBoss JIRA] (ISPN-12102) Validate configuration before storing it

Pedro Ruivo (Jira) issues at jboss.org
Thu Jul 9 06:28:00 EDT 2020


Pedro Ruivo created ISPN-12102:
----------------------------------

             Summary: Validate configuration before storing it
                 Key: ISPN-12102
                 URL: https://issues.redhat.com/browse/ISPN-12102
             Project: Infinispan
          Issue Type: Bug
          Components: Core
    Affects Versions: 11.0.1.Final
            Reporter: Pedro Ruivo
            Assignee: Pedro Ruivo
             Fix For: 12.0.0.Dev01


Although {{ConfigurationBuilder}} does some validation, sometimes it needs something more. As an example, the cross-site replication needs a running {{Transport}} to check if xsite is really supported.

As a side effect, the console is broken when you try to define the following cache without {{RELAY2}} being present in the JGroups stack.

{code:xml}
<infinispan>
<cache-container>
<distributed-cache name="xsite">
<backups>
<backup site="site2"/>
</backups>
</distributed-cache>
</cache-container>
</infinispan>
{code}

This happens because the {{Configuration}} is stored and the {{Cache}} with the exception is stored as well.

The fix proposed it adds a method to {{ModuleLifecyle}} where the {{Configuration}} can be validated before it is store in the "global state". 



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list