Skip to content

Commit

Permalink
Fix compilation in IndexShardTests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jasontedor committed May 21, 2019
1 parent f7ff0af commit dd7a65f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ public void testOperationPermitsOnPrimaryShards() throws Exception {
assertEquals(0, indexShard.getActiveOperationsCount());
} else {
indexShard.acquirePrimaryOperationPermit(
new ActionListener<>() {
new ActionListener<Releasable>() {
@Override
public void onResponse(final Releasable releasable) {
throw new AssertionError();
Expand All @@ -698,7 +698,7 @@ public void onFailure(final Exception e) {

final CountDownLatch latch = new CountDownLatch(1);
indexShard.acquireAllPrimaryOperationsPermits(
new ActionListener<>() {
new ActionListener<Releasable>() {
@Override
public void onResponse(final Releasable releasable) {
throw new AssertionError();
Expand Down Expand Up @@ -1769,7 +1769,7 @@ public void testDelayedOperationsBeforeAndAfterRelocated() throws Exception {
final Runnable assertion;
if (i < recoveryIndex) {
final AtomicBoolean invoked = new AtomicBoolean();
onLockAcquired = new PlainActionFuture<>() {
onLockAcquired = new PlainActionFuture<Releasable>() {

@Override
public void onResponse(Releasable releasable) {
Expand Down

0 comments on commit dd7a65f

Please sign in to comment.