Data inconsistency
maruta.s Apr 15, 2014 9:49 AMHello all,
we are facing the problem, that when using infinispan rest servers in cluster some nodes sometimes seems to get to state with inconsistent data.
GET on one node returns incorrect data, other node have correct data.
We are using following cluster configuration:
<global>
<transport clusterName="orscluster">
<properties>
<property name="configurationFile" value="ors-cluster-configuration.xml"/>
</properties>
</transport>
<globalJmxStatistics enabled="true" jmxDomain="distCache"/>
</global>
<default>
<locking isolationLevel="REPEATABLE_READ"
lockAcquisitionTimeout="30000"
writeSkewCheck="false"
concurrencyLevel="512"
useLockStriping="false"/>
<clustering mode="distribution">
<sync replTimeout="120000"/>
<l1 enabled="true"/>
<hash numOwners="2"/>
</clustering>
<jmxStatistics enabled="true"/>
<invocationBatching enabled="true"/>
</default>
and also operations over rest api are synchronous:
URL url = new URL(address + cache + key.toString());
connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("PUT");
connection.setRequestProperty("Content-Type", "application/x-java-serialized-object");
connection.setDoOutput(true);
connection.setReadTimeout(readTimout);
outputStreamWriter = new ObjectOutputStream(connection.getOutputStream());
outputStreamWriter.writeObject(data);
connection.connect();
We are using jgroups with udp configuration.
Could you provide us some hint how this inconsistent state can be invoked? Are there known any bugs or limitations about data inconsistency?
Thanks
Marta