You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by jaceklaskowski <gi...@git.apache.org> on 2016/03/18 00:12:32 UTC

[GitHub] spark pull request: [MINOR] Typo fixes

GitHub user jaceklaskowski opened a pull request:

    https://github.com/apache/spark/pull/11802

    [MINOR] Typo fixes

    ## What changes were proposed in this pull request?
    
    Typo fixes. No functional changes.
    
    ## How was this patch tested?
    
    Built the sources and ran with samples.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jaceklaskowski/spark typo-fixes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/11802.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #11802
    
----
commit c870a8cacbf0e62aab83bae56018f9a89f9e6fa0
Author: Jacek Laskowski <ja...@japila.pl>
Date:   2016-03-17T23:10:53Z

    [MINOR] Typo fixes

----


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r57452798
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -246,9 +246,7 @@ class StreamingContext private[streaming] (
         checkpointDir != null
       }
     
    -  private[streaming] def initialCheckpoint: Checkpoint = {
    -    if (isCheckpointPresent) _cp else null
    -  }
    +  private[streaming] def initialCheckpoint: Checkpoint = _cp
    --- End diff --
    
    @jaceklaskowski I'll merge this if you'll fix this part. 


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-204731893
  
    Merged to master


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r57139648
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -246,9 +246,7 @@ class StreamingContext private[streaming] (
         checkpointDir != null
       }
     
    -  private[streaming] def initialCheckpoint: Checkpoint = {
    -    if (isCheckpointPresent) _cp else null
    -  }
    +  private[streaming] def initialCheckpoint: Checkpoint = _cp
    --- End diff --
    
    @jaceklaskowski can you revert this?


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56638983
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStreamCheckpointData.scala ---
    @@ -102,8 +102,8 @@ class DStreamCheckpointData[T: ClassTag] (dstream: DStream[T])
       }
     
       /**
    -   * Restore the checkpoint data. This gets called once when the DStream graph
    -   * (along with its DStreams) are being restored from a graph checkpoint file.
    +   * Restore the checkpoint data. This gets called once while the DStream graph
    --- End diff --
    
    I'd leave "when" in this case since it is _called_ at the time the graph is restored, not sometime during that process


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-204618865
  
    Merged build finished. Test PASSed.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by thunterdb <gi...@git.apache.org>.
Github user thunterdb commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56595285
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -132,7 +132,7 @@ class StreamingContext private[streaming] (
           "both SparkContext and checkpoint as null")
       }
     
    -  private[streaming] val isCheckpointPresent = (_cp != null)
    +  private[streaming] val isCheckpointPresent = _cp != null
    --- End diff --
    
    nit: since it is package-private, it should be typed: `: Bool = `


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56638877
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -132,7 +132,7 @@ class StreamingContext private[streaming] (
           "both SparkContext and checkpoint as null")
       }
     
    -  private[streaming] val isCheckpointPresent = (_cp != null)
    +  private[streaming] val isCheckpointPresent = _cp != null
    --- End diff --
    
    `: Boolean = `


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-198304050
  
    Yeah this is good


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-204597481
  
    Jenkins retest this please


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by thunterdb <gi...@git.apache.org>.
Github user thunterdb commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56595456
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
    @@ -269,7 +269,7 @@ abstract class DStream[T: ClassTag] (
           checkpointDuration == null || rememberDuration > checkpointDuration,
           s"The remember duration for ${this.getClass.getSimpleName} has been set to " +
             s" $rememberDuration which is not more than the checkpoint interval" +
    -        s" ($checkpointDuration). Please set it to higher than $checkpointDuration."
    +        s" ($checkpointDuration). Please set it to a higher value than $checkpointDuration."
    --- End diff --
    
    `a value higher than ..`


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by thunterdb <gi...@git.apache.org>.
Github user thunterdb commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56595822
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStreamCheckpointData.scala ---
    @@ -102,8 +102,8 @@ class DStreamCheckpointData[T: ClassTag] (dstream: DStream[T])
       }
     
       /**
    -   * Restore the checkpoint data. This gets called once when the DStream graph
    -   * (along with its DStreams) are being restored from a graph checkpoint file.
    +   * Restore the checkpoint data. This gets called once while the DStream graph
    --- End diff --
    
    I am not sure if this comment is accurate, someone from the streaming team should check it. cc @tdas 


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/11802


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r57465383
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -246,9 +246,7 @@ class StreamingContext private[streaming] (
         checkpointDir != null
       }
     
    -  private[streaming] def initialCheckpoint: Checkpoint = {
    -    if (isCheckpointPresent) _cp else null
    -  }
    +  private[streaming] def initialCheckpoint: Checkpoint = _cp
    --- End diff --
    
    Yes it's functionally equivalent. The method isn't overridden. I suppose that it's conceivable the logic of `isCheckpointPresent` could change later though. Other methods have a similar check too. Although it's a no-op change and small simplification, it doesn't matter in practice to check "if (a != null) a else null" Since the purpose here is just typo fixes, I'd stick to that and not bother with this change.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by jaceklaskowski <gi...@git.apache.org>.
Github user jaceklaskowski commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56738903
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
    @@ -277,7 +277,7 @@ abstract class DStream[T: ClassTag] (
         logInfo(s"Slide time = $slideDuration")
         logInfo(s"Storage level = ${storageLevel.description}")
         logInfo(s"Checkpoint interval = $checkpointDuration")
    -    logInfo(s"Remember duration = $rememberDuration")
    +    logInfo(s"Remember interval = $rememberDuration")
    --- End diff --
    
    It's consistent with "Checkpoint interval" above and the general impression that it's described as "interval" while called "Duration" in the code (due to the type).


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-198125996
  
    Can one of the admins verify this patch?


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-204598269
  
    **[Test build #54734 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54734/consoleFull)** for PR 11802 at commit [`179b6c9`](https://github.com/apache/spark/commit/179b6c9500583b9f7ce4fd6627f23577f721ab57).


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-204618869
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54734/
    Test PASSed.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-204618373
  
    **[Test build #54734 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54734/consoleFull)** for PR 11802 at commit [`179b6c9`](https://github.com/apache/spark/commit/179b6c9500583b9f7ce4fd6627f23577f721ab57).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by jaceklaskowski <gi...@git.apache.org>.
Github user jaceklaskowski commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-198593089
  
    Thanks @srowen @thunterdb for review!


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56749101
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -246,9 +246,7 @@ class StreamingContext private[streaming] (
         checkpointDir != null
       }
     
    -  private[streaming] def initialCheckpoint: Checkpoint = {
    -    if (isCheckpointPresent) _cp else null
    -  }
    +  private[streaming] def initialCheckpoint: Checkpoint = _cp
    --- End diff --
    
    This changes the behavior. It could be fine but I don't know if it belongs with typo changes


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r57876414
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -246,9 +246,7 @@ class StreamingContext private[streaming] (
         checkpointDir != null
       }
     
    -  private[streaming] def initialCheckpoint: Checkpoint = {
    -    if (isCheckpointPresent) _cp else null
    -  }
    +  private[streaming] def initialCheckpoint: Checkpoint = _cp
    --- End diff --
    
    @jaceklaskowski let's wrap this up or close it. Undo this change so that this is just about typos and it can be merged


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by thunterdb <gi...@git.apache.org>.
Github user thunterdb commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56595611
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStreamCheckpointData.scala ---
    @@ -45,7 +45,7 @@ class DStreamCheckpointData[T: ClassTag] (dstream: DStream[T])
       /**
        * Updates the checkpoint data of the DStream. This gets called every time
        * the graph checkpoint is initiated. Default implementation records the
    -   * checkpoint files to which the generate RDDs of the DStream has been saved.
    +   * checkpoint files to which the generated RDDs of the DStream have been saved.
    --- End diff --
    
    should be `records ... at which ...`


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by thunterdb <gi...@git.apache.org>.
Github user thunterdb commented on the pull request:

    https://github.com/apache/spark/pull/11802#issuecomment-198135365
  
    I had some small comments from my side. The changes in `ml` look good. Someone from streaming should take over for the rest.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by thunterdb <gi...@git.apache.org>.
Github user thunterdb commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56595542
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
    @@ -277,7 +277,7 @@ abstract class DStream[T: ClassTag] (
         logInfo(s"Slide time = $slideDuration")
         logInfo(s"Storage level = ${storageLevel.description}")
         logInfo(s"Checkpoint interval = $checkpointDuration")
    -    logInfo(s"Remember duration = $rememberDuration")
    +    logInfo(s"Remember interval = $rememberDuration")
    --- End diff --
    
    why this change?


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56636690
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala ---
    @@ -79,13 +79,13 @@ abstract class LogicalPlan extends QueryPlan[LogicalPlan] with Logging {
     
       /**
        * Computes [[Statistics]] for this plan. The default implementation assumes the output
    -   * cardinality is the product of of all child plan's cardinality, i.e. applies in the case
    +   * cardinality is the product of all child plan's cardinality, i.e. applies in the case
        * of cartesian joins.
        *
        * [[LeafNode]]s must override this.
        */
       def statistics: Statistics = {
    -    if (children.size == 0) {
    +    if (children.isEmpty) {
    --- End diff --
    
    (Although it's not a typo I am OK with this kind of change if touching the code anyway)


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r56636866
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/joins/BroadcastHashJoin.scala ---
    @@ -32,7 +32,7 @@ import org.apache.spark.util.collection.CompactBuffer
     /**
      * Performs an inner hash join of two child relations.  When the output RDD of this operator is
      * being constructed, a Spark job is asynchronously started to calculate the values for the
    - * broadcasted relation.  This data is then placed in a Spark broadcast variable.  The streamed
    + * broadcast relation.  This data is then placed in a Spark broadcast variable.  The streamed
    --- End diff --
    
    I think 'broadcasted' is OK as the adjective but 'broadcast' is also used this way so OK


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [MINOR] Typo fixes

Posted by jaceklaskowski <gi...@git.apache.org>.
Github user jaceklaskowski commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11802#discussion_r57455819
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala ---
    @@ -246,9 +246,7 @@ class StreamingContext private[streaming] (
         checkpointDir != null
       }
     
    -  private[streaming] def initialCheckpoint: Checkpoint = {
    -    if (isCheckpointPresent) _cp else null
    -  }
    +  private[streaming] def initialCheckpoint: Checkpoint = _cp
    --- End diff --
    
    Sorry @srowen to keep you waiting. As to the line, look at `isCheckpointPresent` and see that it does what the `if...else` block does, i.e. checks whether `_cp` is `null` and if it is, it returns `false` so `null`. It's a false check here and hence an easy fix (and that's why I proposed it with the other changes).
    
    I can revert it and report another change if you want. Let me know.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org