mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
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:
parent
f7ff0aff79
commit
dd7a65fdf2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user