[
https://issues.redhat.com/browse/ISPN-12102?page=com.atlassian.jira.plugi...
]
Tristan Tarrant updated ISPN-12102:
-----------------------------------
Sprint: DataGrid Sprint #46, DataGrid Sprint #47, DataGrid Sprint #48, DataGrid Sprint
#49 (was: DataGrid Sprint #46, DataGrid Sprint #47, DataGrid Sprint #48)
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.Dev04
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)