]
Tristan Tarrant updated ISPN-12102:
-----------------------------------
Sprint: DataGrid Sprint #46, DataGrid Sprint #47 (was: DataGrid Sprint #46)
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
Priority: Major
Fix For: 12.0.0.Dev02
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".