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

[GitHub] spark pull request: SPARK-3357 [CORE] Internal log messages should...

GitHub user srowen opened a pull request:

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

    SPARK-3357 [CORE] Internal log messages should be set at DEBUG level instead of INFO

    Demote some 'noisy' log messages to debug level. I added a few more, to include everything that gets logged in stanzas like this:
    
    ```
    15/03/01 00:03:54 INFO BlockManager: Removing broadcast 0
    15/03/01 00:03:54 INFO BlockManager: Removing block broadcast_0_piece0
    15/03/01 00:03:54 INFO MemoryStore: Block broadcast_0_piece0 of size 839 dropped from memory (free 277976091)
    15/03/01 00:03:54 INFO BlockManagerInfo: Removed broadcast_0_piece0 on localhost:49524 in memory (size: 839.0 B, free: 265.1 MB)
    15/03/01 00:03:54 INFO BlockManagerMaster: Updated info of block broadcast_0_piece0
    15/03/01 00:03:54 INFO BlockManager: Removing block broadcast_0
    15/03/01 00:03:54 INFO MemoryStore: Block broadcast_0 of size 1088 dropped from memory (free 277977179)
    15/03/01 00:03:54 INFO ContextCleaner: Cleaned broadcast 0
    ```
    
    as well as regular messages like
    
    ```
    15/03/01 00:02:33 INFO MemoryStore: ensureFreeSpace(2640) called with curMem=47322, maxMem=278019440
    ```
    
    WDYT? good or should some be left alone?
    
    CC @mengxr who suggested some of this.

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

    $ git pull https://github.com/srowen/spark SPARK-3357

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

    https://github.com/apache/spark/pull/4838.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 #4838
    
----
commit d9b784d392e8c681e62cd815a08dff6ea47baf45
Author: Sean Owen <so...@cloudera.com>
Date:   2015-03-01T00:06:51Z

    Demote some 'noisy' log messages to debug level

----


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#issuecomment-76563140
  
      [Test build #28135 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28135/consoleFull) for   PR 4838 at commit [`d9b784d`](https://github.com/apache/spark/commit/d9b784d392e8c681e62cd815a08dff6ea47baf45).
     * 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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25566088
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala ---
    @@ -1074,7 +1074,7 @@ private[spark] class BlockManager(
        * Remove all blocks belonging to the given broadcast.
        */
       def removeBroadcast(broadcastId: Long, tellMaster: Boolean): Int = {
    -    logInfo(s"Removing broadcast $broadcastId")
    --- End diff --
    
    Sounds good; `Broadcast.destroy` already logs this it seems:
    
    ```
      private[spark] def destroy(blocking: Boolean) {
        assertValid()
        _isValid = false
        _destroySite = Utils.getCallSite().shortForm
        logInfo("Destroying %s (from %s)".format(toString, _destroySite))
        doDestroy(blocking)
      }
    ```
    
    Is that what you have in mind?


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25563255
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala ---
    @@ -1074,7 +1074,7 @@ private[spark] class BlockManager(
        * Remove all blocks belonging to the given broadcast.
        */
       def removeBroadcast(broadcastId: Long, tellMaster: Boolean): Int = {
    -    logInfo(s"Removing broadcast $broadcastId")
    --- End diff --
    
    It would be good to make sure that when the user explicitly `destroy()`s a broadcast, we do have some INFO level logging that we are doing it. I think that can be achieved by dropping this one to debug and logging things higher up in the call stack in the destroy method of either broadcast implementation.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#issuecomment-76591370
  
      [Test build #28145 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28145/consoleFull) for   PR 4838 at commit [`dce75c1`](https://github.com/apache/spark/commit/dce75c1c7922e995ddcb550d27d78a966a74eb29).
     * This patch merges cleanly.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#issuecomment-76593919
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28145/
    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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#issuecomment-76593911
  
      [Test build #28145 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28145/consoleFull) for   PR 4838 at commit [`dce75c1`](https://github.com/apache/spark/commit/dce75c1c7922e995ddcb550d27d78a966a74eb29).
     * 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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#issuecomment-76563142
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28135/
    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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25563263
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManagerMasterActor.scala ---
    @@ -476,16 +476,16 @@ private[spark] class BlockManagerInfo(
           val blockStatus: BlockStatus = _blocks.get(blockId)
           _blocks.remove(blockId)
           if (blockStatus.storageLevel.useMemory) {
    -        logInfo("Removed %s on %s in memory (size: %s, free: %s)".format(
    +        logDebug("Removed %s on %s in memory (size: %s, free: %s)".format(
    --- End diff --
    
    These ones also seem useful in some cases for reasoning about dropping blocks due to cache contention.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#issuecomment-76560597
  
      [Test build #28135 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28135/consoleFull) for   PR 4838 at commit [`d9b784d`](https://github.com/apache/spark/commit/d9b784d392e8c681e62cd815a08dff6ea47baf45).
     * This patch merges cleanly.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25563232
  
    --- Diff: core/src/main/scala/org/apache/spark/ContextCleaner.scala ---
    @@ -188,10 +188,10 @@ private[spark] class ContextCleaner(sc: SparkContext) extends Logging {
       /** Perform broadcast cleanup. */
       def doCleanupBroadcast(broadcastId: Long, blocking: Boolean) {
         try {
    -      logDebug("Cleaning broadcast " + broadcastId)
    +      logDebug(s"Cleaning broadcast $broadcastId")
    --- End diff --
    
    I'm +1 on removing these cleaning ones. It's really not useful or actionable.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25646752
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/MemoryStore.scala ---
    @@ -184,7 +184,7 @@ private[spark] class MemoryStore(blockManager: BlockManager, maxMemory: Long)
           val entry = entries.remove(blockId)
           if (entry != null) {
             currentMemory -= entry.size
    -        logInfo(s"Block $blockId of size ${entry.size} dropped from memory (free $freeMemory)")
    +        logDebug(s"Block $blockId of size ${entry.size} dropped from memory (free $freeMemory)")
    --- End diff --
    
    On this one - do you know if this already gets logged somewhere else if a block is dropped from memory due to contention? It would be good to make sure there is some INFO level logging when a block is dropped due to memory being exceeded.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

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


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#issuecomment-76563715
  
    Chimed in in a few places. I think overall, a good goal is that when we are doing our normal GC of RDD's and broadcasts, we don't want to be so verbose. This cleaning occurs asynchronously and it's confusing for users to see these messages. 
    
    When dropping blocks due to cache contention though, I'm not so sure we want silence these messages.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25563229
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/MemoryStore.scala ---
    @@ -371,7 +371,7 @@ private[spark] class MemoryStore(blockManager: BlockManager, maxMemory: Long)
       private def ensureFreeSpace(
           blockIdToAdd: BlockId,
           space: Long): ResultWithDroppedBlocks = {
    -    logInfo(s"ensureFreeSpace($space) called with curMem=$currentMemory, maxMem=$maxMemory")
    +    logDebug(s"ensureFreeSpace($space) called with curMem=$currentMemory, maxMem=$maxMemory")
    --- End diff --
    
    This one I'd say is fairly important. I've used it somewhat often in production clusters to understand when things are dropping to disk and why.


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25647202
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/MemoryStore.scala ---
    @@ -184,7 +184,7 @@ private[spark] class MemoryStore(blockManager: BlockManager, maxMemory: Long)
           val entry = entries.remove(blockId)
           if (entry != null) {
             currentMemory -= entry.size
    -        logInfo(s"Block $blockId of size ${entry.size} dropped from memory (free $freeMemory)")
    +        logDebug(s"Block $blockId of size ${entry.size} dropped from memory (free $freeMemory)")
    --- End diff --
    
    I believe we do have INFO level logging for this up the call chain when drops are blocked due to cache contention:
    
    https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/storage/BlockManager.scala#L1004
    
    Might be nice to augment that logging to have information on the size and limit (like this does).


---
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: SPARK-3357 [CORE] Internal log messages should...

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

    https://github.com/apache/spark/pull/4838#discussion_r25574579
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala ---
    @@ -1074,7 +1074,7 @@ private[spark] class BlockManager(
        * Remove all blocks belonging to the given broadcast.
        */
       def removeBroadcast(broadcastId: Long, tellMaster: Boolean): Int = {
    -    logInfo(s"Removing broadcast $broadcastId")
    --- End diff --
    
    Yeah that one is sufficient then. I looked earlier, but only at the `doDestroy` implementations which did not have info level logging.


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