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

    https://github.com/apache/incubator-gearpump/pull/133#discussion_r96554180
  
    --- Diff: 
core/src/main/scala/org/apache/gearpump/cluster/client/ClientContext.scala ---
    @@ -161,13 +172,24 @@ class ClientContext(config: Config, sys: ActorSystem, 
_master: ActorRef) {
         fullName
       }
     
    -  private def getMasterClient: MasterClient = {
    -    val timeout = 
Try(config.getInt(Constants.GEARPUMP_MASTERCLIENT_TIMEOUT)).getOrElse(90)
    -    new MasterClient(master, akka.util.Timeout(timeout, TimeUnit.SECONDS))
    +  private def submitApplication(submitApplication: SubmitApplication): 
RunningApplication = {
    +    val result = ActorUtil.askActor[SubmitApplicationResult](master,
    +      submitApplication, masterClientTimeout)
    +    val application = result.appId match {
    +      case Success(appId) =>
    +        // scalastyle:off println
    +        Console.println(s"Submit application succeed. The application id 
is $appId")
    +        // scalastyle:on println
    +        new RunningApplication(appId, master, masterClientTimeout)
    +      case Failure(ex) => throw ex
    +    }
    +    application
       }
     }
     
     object ClientContext {
    +  // This magic number is derived from Akka's configuration
    +  final val INFINITE_TIMEOUT = Timeout(2147482, TimeUnit.SECONDS)
    --- End diff --
    
    which configuration ? Any links ?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to