johnyangk commented on a change in pull request #153: [NEMO-245,247] Handle 
watermark in OutputWriter and Implement unbounded word count example
URL: https://github.com/apache/incubator-nemo/pull/153#discussion_r232159862
 
 

 ##########
 File path: 
examples/beam/src/test/java/org/apache/nemo/examples/beam/WindowedWordCountITCase.java
 ##########
 @@ -126,4 +129,26 @@ public void testStreamingSchedulerAndPipeSlidingWindow() 
throws Exception {
       ExampleTestUtil.deleteOutputFile(fileBasePath, outputFileName);
     }
   }
+
+
+  // TODO #271: We currently disable this test because we cannot force close 
Nemo
+  //@Test (timeout = TIMEOUT)
+  public void testUnboundedSlidingWindow() throws Exception {
+    builder = new ArgBuilder()
+      
.addScheduler("org.apache.nemo.runtime.master.scheduler.StreamingScheduler")
+      .addUserMain(WindowedWordCount.class.getCanonicalName())
+      .addUserArgs(outputFilePath, "sliding", INPUT_TYPE_UNBOUNDED);
+
+    JobLauncher.main(builder
+      .addResourceJson(executorResourceFileName)
+      .addJobId(WindowedWordCountITCase.class.getSimpleName())
+      
.addOptimizationPolicy(StreamingPolicyParallelismFive.class.getCanonicalName())
+      .build());
+
+    try {
+      ExampleTestUtil.ensureOutputValidity(fileBasePath, outputFileName, 
expectedSlidingWindowOutputFileName);
+    } finally {
+      //ExampleTestUtil.deleteOutputFile(fileBasePath, outputFileName);
 
 Review comment:
   Remove

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to