-
1. Re: getAsync never finish
david.novak Jul 10, 2014 4:37 AM (in response to david.novak)Additional information: When I rewrote the code so that it does not use the FutureListener (and thus it is in general less efficient), it works:
Future<MyClass> [] futures = new Future [idCount];
int counter = 0;
for (String string : ids) {
futures[counter ++] = cacheToReadFrom.getAsync(string);
}
for (Future<MyClass> future : futures) {
try {
queue.put(future.get());
} catch (InterruptedException | ExecutionException | NullPointerException ignore) { }
}
It seems that it is some problem in the FutureListener execution when a larger number of threads is used... Or does anybody see any other error? Thank you
-
2. Re: getAsync never finish
lanore Jul 22, 2014 3:45 AM (in response to david.novak)Hi David,
I've had the same problem, and found that It is bug in 6.0.2.Final, and it is fixed in version 7.0.0. (The fix is not applied to the 6.0.2)
I recommend you to use 7.0.0.Aplha5 over 6.0.2.Final, because there are more bugs in 6.0.2.Final which is fixed in 7.0 but not in the 6.0.
See the following link.
[ISPN-3868] Deadlock in RemoteCache getAsync - JBoss Issue Tracker