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

    https://github.com/apache/spark/pull/11139#discussion_r52397477
  
    --- Diff: 
examples/src/main/java/org/apache/spark/examples/streaming/JavaRecoverableNetworkWordCount.java
 ---
    @@ -204,13 +202,19 @@ public static void main(String[] args) {
         final int port = Integer.parseInt(args[1]);
         final String checkpointDirectory = args[2];
         final String outputPath = args[3];
    -    JavaStreamingContextFactory factory = new 
JavaStreamingContextFactory() {
    +
    +    // Function to create JavaStreamingContext without any output 
operations
    +    // (used to detect the new context)
    +    final AtomicBoolean newContextCreated = new AtomicBoolean(false);
    --- End diff --
    
    nit: remove newContextCreated


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to