Re: Unit testing Master-Worker Message Passing

2014-10-15 Thread Matthew Cheah
gt; publicly. > > On October 15, 2014 at 2:39:22 PM, Matthew Cheah ( > matthew.c.ch...@gmail.com) wrote: > > I think on a higher level I also want to ask why such unit testing has not > actually been done in this codebase. If it's not a common practice to test > message passin

Re: Unit testing Master-Worker Message Passing

2014-10-15 Thread Matthew Cheah
r already dead or incorrect. > > Another way, is to send Identify method to ActorSystem, if it returns with > correct identified message; then you can act on it, otherwise, ... > > hope this helps > > Chester > > On Wed, Oct 15, 2014 at 1:38 PM, Matthew Cheah > wrote: >

Re: Unit testing Master-Worker Message Passing

2014-10-15 Thread Matthew Cheah
n send register message to > Master after receiving Master’s “re-register” instruction, (in this test > case assuming that the Master is absolutely right) > > Best, > > -- > Nan Zhu > > On Wednesday, October 15, 2014 at 2:04 PM, Matthew Cheah wrote: > > Thanks, the example w

Re: Unit testing Master-Worker Message Passing

2014-10-15 Thread Matthew Cheah
You can use akka testkit > > Example: > > > https://github.com/apache/spark/blob/ef4ff00f87a4e8d38866f163f01741c2673e41da/core/src/test/scala/org/apache/spark/deploy/worker/WorkerWatcherSuite.scala > > -- > Nan Zhu > > On Tuesday, October 14, 2014 at 9:17 PM, Mat

Unit testing Master-Worker Message Passing

2014-10-14 Thread Matthew Cheah
Hi everyone, I’m adding some new message passing between the Master and Worker actors in order to address https://issues.apache.org/jira/browse/SPARK-3736 . I was wondering if these kinds of interactions are tested in the automated Jenkins test suite, and if so, where I could find some examples t