use of org.apache.flink.runtime.blob.VoidBlobStore in project flink-mirror by flink-ci.
the class ZooKeeperLeaderRetrievalTest method before.
@Before
public void before() throws Exception {
testingServer = new TestingServer();
config = new Configuration();
config.setString(HighAvailabilityOptions.HA_MODE, "zookeeper");
config.setString(HighAvailabilityOptions.HA_ZOOKEEPER_QUORUM, testingServer.getConnectString());
highAvailabilityServices = new ZooKeeperHaServices(ZooKeeperUtils.startCuratorFramework(config, testingFatalErrorHandlerResource.getFatalErrorHandler()), TestingUtils.defaultExecutor(), config, new VoidBlobStore());
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink-mirror by flink-ci.
the class JobSubmitHandlerTest method setup.
@Before
public void setup() throws IOException {
Configuration config = new Configuration(configuration);
blobServer = new BlobServer(config, TEMPORARY_FOLDER.newFolder(), new VoidBlobStore());
blobServer.start();
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink-mirror by flink-ci.
the class AbstractTaskManagerFileHandlerTest method setup.
@BeforeClass
public static void setup() throws IOException, HandlerRequestException {
final Configuration configuration = new Configuration();
blobServer = new BlobServer(configuration, temporaryFolder.newFolder(), new VoidBlobStore());
handlerRequest = HandlerRequest.resolveParametersAndCreate(EmptyRequestBody.getInstance(), new TaskManagerFileMessageParameters(), Collections.singletonMap(TaskManagerIdPathParameter.KEY, EXPECTED_TASK_MANAGER_ID.getResourceIdString()), Collections.emptyMap(), Collections.emptyList());
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by splunk.
the class KubernetesHaServicesTest method testInternalCleanupShouldCleanupConfigMaps.
@Test
public void testInternalCleanupShouldCleanupConfigMaps() throws Exception {
new Context() {
{
runTest(() -> {
final KubernetesHaServices kubernetesHaServices = new KubernetesHaServices(flinkKubeClient, executorService, configuration, new VoidBlobStore());
kubernetesHaServices.internalCleanup();
final Map<String, String> labels = deleteConfigMapByLabelsFuture.get(TIMEOUT, TimeUnit.MILLISECONDS);
assertThat(labels.size(), is(3));
assertThat(labels.get(LABEL_CONFIGMAP_TYPE_KEY), is(LABEL_CONFIGMAP_TYPE_HIGH_AVAILABILITY));
});
}
};
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by splunk.
the class DefaultExecutionGraphDeploymentWithBlobServerTest method setupBlobServer.
@Before
public void setupBlobServer() throws IOException {
Configuration config = new Configuration();
// always offload the serialized job and task information
config.setInteger(BlobServerOptions.OFFLOAD_MINSIZE, 0);
blobServer = Mockito.spy(new BlobServer(config, TEMPORARY_FOLDER.newFolder(), new VoidBlobStore()));
blobWriter = blobServer;
blobCache = blobServer;
seenHashes.clear();
// verify that we do not upload the same content more than once
doAnswer(invocation -> {
PermanentBlobKey key = (PermanentBlobKey) invocation.callRealMethod();
assertTrue(seenHashes.add(key.getHash()));
return key;
}).when(blobServer).putPermanent(any(JobID.class), Matchers.<byte[]>any());
blobServer.start();
}
Aggregations