use of org.apache.flink.runtime.blob.VoidBlobStore in project flink-mirror by flink-ci.
the class BlobServerExtension method before.
@Override
public void before(ExtensionContext context) throws Exception {
temporaryFolder.create();
Configuration config = new Configuration();
blobServer = new BlobServer(config, temporaryFolder.newFolder(), new VoidBlobStore());
blobServer.start();
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by splunk.
the class KubernetesHaServicesTest method testInternalJobCleanupShouldCleanupConfigMaps.
@Test
public void testInternalJobCleanupShouldCleanupConfigMaps() throws Exception {
new Context() {
{
runTest(() -> {
final KubernetesHaServices kubernetesHaServices = new KubernetesHaServices(flinkKubeClient, executorService, configuration, new VoidBlobStore());
JobID jobID = new JobID();
String configMapName = kubernetesHaServices.getLeaderPathForJobManager(jobID);
final KubernetesConfigMap configMap = new TestingFlinkKubeClient.MockKubernetesConfigMap(configMapName);
flinkKubeClient.createConfigMap(configMap);
assertThat(flinkKubeClient.getConfigMap(configMapName).isPresent(), is(true));
kubernetesHaServices.internalCleanupJobData(jobID);
assertThat(flinkKubeClient.getConfigMap(configMapName).isPresent(), is(false));
});
}
};
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by splunk.
the class KubernetesHaServicesTest method testInternalCloseShouldCloseFlinkKubeClient.
@Test
public void testInternalCloseShouldCloseFlinkKubeClient() throws Exception {
new Context() {
{
runTest(() -> {
final KubernetesHaServices kubernetesHaServices = new KubernetesHaServices(flinkKubeClient, executorService, configuration, new VoidBlobStore());
kubernetesHaServices.internalClose();
assertThat(closeKubeClientFuture.isDone(), is(true));
});
}
};
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by splunk.
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 by splunk.
the class BlobServerExtension method before.
@Override
public void before(ExtensionContext context) throws Exception {
temporaryFolder.create();
Configuration config = new Configuration();
blobServer = new BlobServer(config, temporaryFolder.newFolder(), new VoidBlobStore());
blobServer.start();
}
Aggregations