use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by splunk.
the class AbstractDispatcherTest method setUp.
@Before
public void setUp() throws Exception {
heartbeatServices = new HeartbeatServices(1000L, 10000L);
haServices = new TestingHighAvailabilityServices();
haServices.setCheckpointRecoveryFactory(new StandaloneCheckpointRecoveryFactory());
haServices.setResourceManagerLeaderRetriever(new SettableLeaderRetrievalService());
haServices.setJobGraphStore(new StandaloneJobGraphStore());
haServices.setJobResultStore(new EmbeddedJobResultStore());
configuration = new Configuration();
blobServer = new BlobServer(configuration, temporaryFolder.newFolder(), new VoidBlobStore());
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by apache.
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 apache.
the class DefaultExecutionGraphDeploymentWithSmallBlobCacheSizeLimitTest method setupBlobServer.
@Before
@Override
public void setupBlobServer() throws IOException {
Configuration config = new Configuration();
// Always offload the serialized JobInformation, TaskInformation and cached
// ShuffleDescriptors
config.setInteger(BlobServerOptions.OFFLOAD_MINSIZE, 0);
blobServer = new BlobServer(config, TEMPORARY_FOLDER.newFolder(), new VoidBlobStore());
blobServer.start();
blobWriter = blobServer;
InetSocketAddress serverAddress = new InetSocketAddress("localhost", blobServer.getPort());
// Set the size limit of the blob cache to 1
BlobCacheSizeTracker blobCacheSizeTracker = new BlobCacheSizeTracker(1L);
blobCache = new PermanentBlobCache(config, TEMPORARY_FOLDER.newFolder(), new VoidBlobStore(), serverAddress, blobCacheSizeTracker);
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by apache.
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();
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink by apache.
the class BlobServerResource method before.
protected void before() throws Throwable {
temporaryFolder.create();
Configuration config = new Configuration();
blobServer = new BlobServer(config, temporaryFolder.newFolder(), new VoidBlobStore());
blobServer.start();
}
Aggregations