After upgrade from ignite version 2.7 to 2.10.0 the operation cache.repalce(K,V,V) return false. but with version 2.7 it was working fine.
No exception is thrown just the operation return false. the class is annotated with @EqualsAndHashCode(onlyExplicitlyIncluded = true) the test was done with no code change just the upgrade.
Thank you for your help. I have been trying to solve this problem for a while but with no luck
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true, onlyExplicitlyIncluded = true)
public class Emplyoee extends BaseClass implements Serialisable {
public static void main(String args[]) {
@QuerySqlField
private name
}
}
@NoArgsConstructor
@EqualsAndHashCode(of="id")
public class BaseClass implements Serialisable {
public static void main(String args[]) {
@QuerySqlField
private id
}
}
updateEmpolyee(IgniteCache <Long, T> cache, T oldValue, T newValue, Long key, int maxRetry) {
T cacheValue = cache.get(key);
boolean result = cache.replace(key, cacheValue, newValue);
if (!result && maxRetry 0)
result = updateEmpolyee(cache, newValue, key, maxRetry )
return result;
}