You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by tdas <gi...@git.apache.org> on 2014/05/09 05:20:18 UTC

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

GitHub user tdas opened a pull request:

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

    Converted bang to ask to avoid scary warning when a block is removed

    Removing a block through the blockmanager gave a scary warning messages in the driver. 
    ```
    2014-05-08 20:16:19,172 WARN BlockManagerMasterActor: Got unknown message: true
    2014-05-08 20:16:19,172 WARN BlockManagerMasterActor: Got unknown message: true
    2014-05-08 20:16:19,172 WARN BlockManagerMasterActor: Got unknown message: true
    ```
    
    This is because the [BlockManagerSlaveActor](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/storage/BlockManagerSlaveActor.scala#L44) would send back an acknowledgement ("true"). But the BlockManagerMasterActor would have sent the RemoveBlock message as a send, not as ask(), so would reject the receiver "true" as a unknown message. 
    @pwendell
    
    
    


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

    $ git pull https://github.com/tdas/spark bm-fix

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

    https://github.com/apache/spark/pull/708.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 #708
    
----
commit ed4ef151c891825293f2fc596ce7361fc8e6ca3f
Author: Tathagata Das <ta...@gmail.com>
Date:   2014-05-09T03:11:59Z

    Converted bang to ask to avoid scary warning when a block is removed.

----


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#issuecomment-42631533
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14834/


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#discussion_r12464614
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManagerMasterActor.scala ---
    @@ -250,7 +250,7 @@ class BlockManagerMasterActor(val isLocal: Boolean, conf: SparkConf, listenerBus
               // Remove the block from the slave's BlockManager.
               // Doesn't actually wait for a confirmation and the message might get lost.
               // If message loss becomes frequent, we should add retry logic here.
    -          blockManager.get.slaveActor ! RemoveBlock(blockId)
    +          blockManager.get.slaveActor.ask(RemoveBlock(blockId))(akkaTimeout)
    --- End diff --
    
    Yeah, its best not to change the model here and make the removing of block a blocking call. So we are not wait on the Future created by RemoveBlock


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#issuecomment-42631531
  
    Merged build finished. All automated tests 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.
---

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

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


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#discussion_r12463217
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManagerMasterActor.scala ---
    @@ -250,7 +250,7 @@ class BlockManagerMasterActor(val isLocal: Boolean, conf: SparkConf, listenerBus
               // Remove the block from the slave's BlockManager.
               // Doesn't actually wait for a confirmation and the message might get lost.
    --- End diff --
    
    This statement seems untrue.


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#issuecomment-42634810
  
    Cool .. merging it



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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#discussion_r12463650
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManagerMasterActor.scala ---
    @@ -250,7 +250,7 @@ class BlockManagerMasterActor(val isLocal: Boolean, conf: SparkConf, listenerBus
               // Remove the block from the slave's BlockManager.
               // Doesn't actually wait for a confirmation and the message might get lost.
               // If message loss becomes frequent, we should add retry logic here.
    -          blockManager.get.slaveActor ! RemoveBlock(blockId)
    +          blockManager.get.slaveActor.ask(RemoveBlock(blockId))(akkaTimeout)
    --- End diff --
    
    It actually can't be `false`: https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/storage/BlockManagerSlaveActor.scala#L44. I think this is intended to be some sort of ack. The executor's BlockManager actually has another mechanism of reporting this removal to master. Otherwise, the master is not concerned with whether the block was successfully removed.
    
    (We may or may not want to change this design)


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#issuecomment-42634479
  
    LGTM


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#issuecomment-42630108
  
    Merged build started. 


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#discussion_r12463230
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManagerMasterActor.scala ---
    @@ -250,7 +250,7 @@ class BlockManagerMasterActor(val isLocal: Boolean, conf: SparkConf, listenerBus
               // Remove the block from the slave's BlockManager.
               // Doesn't actually wait for a confirmation and the message might get lost.
               // If message loss becomes frequent, we should add retry logic here.
    -          blockManager.get.slaveActor ! RemoveBlock(blockId)
    +          blockManager.get.slaveActor.ask(RemoveBlock(blockId))(akkaTimeout)
    --- End diff --
    
    What does it mean if the result is `false` here? Should we print something to the user?


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#issuecomment-42631837
  
    Looks like we already `ask` for other messages we send to the slave actor. LGTM.


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

[GitHub] spark pull request: Converted bang to ask to avoid scary warning w...

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

    https://github.com/apache/spark/pull/708#issuecomment-42630100
  
     Merged build triggered. 


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