use of org.apache.flink.runtime.blob.VoidBlobStore in project flink-mirror by flink-ci.
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-mirror by flink-ci.
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-mirror by flink-ci.
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-mirror by flink-ci.
the class MiniDispatcherTest method setupClass.
@BeforeClass
public static void setupClass() throws IOException {
jobGraph = JobGraphTestUtils.singleNoOpJobGraph();
executionGraphInfo = new ExecutionGraphInfo(new ArchivedExecutionGraphBuilder().setJobID(jobGraph.getJobID()).setState(JobStatus.FINISHED).build());
rpcService = new TestingRpcService();
configuration = new Configuration();
blobServer = new BlobServer(configuration, temporaryFolder.newFolder(), new VoidBlobStore());
}
use of org.apache.flink.runtime.blob.VoidBlobStore in project flink-mirror by flink-ci.
the class ClientUtilsTest method setup.
@BeforeClass
public static void setup() throws IOException {
Configuration config = new Configuration();
blobServer = new BlobServer(config, temporaryFolder.newFolder(), new VoidBlobStore());
blobServer.start();
}
Aggregations