use of com.hazelcast.internal.cluster.impl.operations.PromoteLiteMemberOp in project hazelcast by hazelcast.
the class PromoteLiteMemberTest method normalMember_promotion_shouldBeNoop_onMaster.
@Test
public void normalMember_promotion_shouldBeNoop_onMaster() {
TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory();
HazelcastInstance hz1 = factory.newHazelcastInstance(new Config());
HazelcastInstance hz2 = factory.newHazelcastInstance(new Config());
PromoteLiteMemberOp op = new PromoteLiteMemberOp();
op.setCallerUuid(getMember(hz2).getUuid());
InternalCompletableFuture<MembersView> future = getOperationService(hz2).invokeOnTarget(ClusterServiceImpl.SERVICE_NAME, op, getAddress(hz1));
future.join();
}
Aggregations