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

    https://github.com/apache/flink/pull/6297#discussion_r203000441
  
    --- Diff: 
flink-yarn/src/test/java/org/apache/flink/yarn/FlinkYarnSessionCliTest.java ---
    @@ -352,6 +352,76 @@ public void testConfigurationClusterSpecification() 
throws Exception {
                assertThat(clusterSpecification.getSlotsPerTaskManager(), 
is(slotsPerTaskManager));
        }
     
    +   /**
    +    * Tests the specifying heap memory for job manager and task manager.
    +    */
    +   @Test
    +   public void testHeapMemoryProperty() throws Exception {
    +           //without unit
    +           String[] args = new String[] { "-yn", "2", "-yjm", "1024", 
"-ytm", "2048" };
    +
    +           FlinkYarnSessionCli flinkYarnSessionCli = new 
FlinkYarnSessionCli(
    +                   new Configuration(),
    +                   tmp.getRoot().getAbsolutePath(),
    +                   "y",
    +                   "yarn");
    +
    +           CommandLine commandLine = 
flinkYarnSessionCli.parseCommandLineOptions(args, false);
    +
    +           ClusterSpecification clusterSpecification = 
flinkYarnSessionCli.getClusterSpecification(commandLine);
    +
    +           assertThat(clusterSpecification.getMasterMemoryMB(), is(1024));
    +           assertThat(clusterSpecification.getTaskManagerMemoryMB(), 
is(2048));
    +
    +           //with unit "m"
    --- End diff --
    
    This should be a separate test


---

Reply via email to