flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tillrohrmann <...@git.apache.org>
Subject [GitHub] flink pull request #3614: [FLINK-6189][YARN]Do not use yarn client config to...
Date Mon, 31 Jul 2017 11:28:00 GMT
Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3614#discussion_r130315352
  
    --- Diff: flink-yarn/src/test/java/org/apache/flink/yarn/YarnClusterDescriptorTest.java
---
    @@ -51,57 +51,23 @@ public void beforeTest() throws IOException {
     	}
     
     	@Test
    -	public void testFailIfTaskSlotsHigherThanMaxVcores() {
    -
    -		YarnClusterDescriptor clusterDescriptor = new YarnClusterDescriptor();
    -
    -		clusterDescriptor.setLocalJarPath(new Path(flinkJar.getPath()));
    -		clusterDescriptor.setFlinkConfiguration(new Configuration());
    -		clusterDescriptor.setConfigurationDirectory(temporaryFolder.getRoot().getAbsolutePath());
    -		clusterDescriptor.setConfigurationFilePath(new Path(flinkConf.getPath()));
    -
    -		// configure slots too high
    -		clusterDescriptor.setTaskManagerSlots(Integer.MAX_VALUE);
    -
    -		try {
    -			clusterDescriptor.deploy();
    -
    -			fail("The deploy call should have failed.");
    -		} catch (RuntimeException e) {
    -			// we expect the cause to be an IllegalConfigurationException
    -			if (!(e.getCause() instanceof IllegalConfigurationException)) {
    -				throw e;
    -			}
    -		}
    -	}
    -
    -	@Test
     	public void testConfigOverwrite() {
     
     		YarnClusterDescriptor clusterDescriptor = new YarnClusterDescriptor();
     
     		Configuration configuration = new Configuration();
    -		// overwrite vcores in config
    +		// configure slots in config
    --- End diff --
    
    The comment does not match the following statement


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message