You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by tillrohrmann <gi...@git.apache.org> on 2017/09/06 15:54:31 UTC

[GitHub] flink pull request #4358: [FLINK-7068][blob] change BlobService sub-classes ...

Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4358#discussion_r137259367
  
    --- Diff: flink-fs-tests/src/test/java/org/apache/flink/hdfstests/HDFSTest.java ---
    @@ -257,7 +265,88 @@ public void testBlobServerRecovery() throws Exception {
     		try {
     			blobStoreService = BlobUtils.createBlobStoreFromConfig(config);
     
    -			BlobRecoveryITCase.testBlobServerRecovery(config, blobStoreService);
    +			BlobServerRecoveryTest.testBlobServerRecovery(config, blobStoreService);
    +		} finally {
    +			if (blobStoreService != null) {
    +				blobStoreService.closeAndCleanupAllData();
    +			}
    +		}
    +	}
    +
    +	/**
    +	 * Tests that with {@link HighAvailabilityMode#ZOOKEEPER} distributed corrupted JARs are
    +	 * recognised during the download via a {@link org.apache.flink.runtime.blob.BlobServer}.
    +	 */
    +	@Test
    +	public void testBlobServerCorruptedFile() throws Exception {
    +		org.apache.flink.configuration.Configuration
    +			config = new org.apache.flink.configuration.Configuration();
    +		config.setString(HighAvailabilityOptions.HA_MODE, "ZOOKEEPER");
    +		config.setString(CoreOptions.STATE_BACKEND, "ZOOKEEPER");
    --- End diff --
    
    I think "ZooKeeper" is not a valid state backend. What did you want to do with that?


---