Fix compilation in IndexShardTests

I forgot to git add these before pushing, sorry. This commit fixes
compilation in IndexShardTests, they are needed here and not in master
due to differences in how Java infers types in generics between JDK 8
and JDK 11.
This commit is contained in:
Jason Tedor 2019-05-21 16:12:27 -04:00
parent f7ff0aff79
commit dd7a65fdf2
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5

View File

@ -681,7 +681,7 @@ public class IndexShardTests extends IndexShardTestCase {
assertEquals(0, indexShard.getActiveOperationsCount());
} else {
indexShard.acquirePrimaryOperationPermit(
new ActionListener<>() {
new ActionListener<Releasable>() {
@Override
public void onResponse(final Releasable releasable) {
throw new AssertionError();
@ -698,7 +698,7 @@ public class IndexShardTests extends IndexShardTestCase {
final CountDownLatch latch = new CountDownLatch(1);
indexShard.acquireAllPrimaryOperationsPermits(
new ActionListener<>() {
new ActionListener<Releasable>() {
@Override
public void onResponse(final Releasable releasable) {
throw new AssertionError();
@ -1769,7 +1769,7 @@ public class IndexShardTests extends IndexShardTestCase {
final Runnable assertion;
if (i < recoveryIndex) {
final AtomicBoolean invoked = new AtomicBoolean();
onLockAcquired = new PlainActionFuture<>() {
onLockAcquired = new PlainActionFuture<Releasable>() {
@Override
public void onResponse(Releasable releasable) {