Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
[CROSSDATA-577] Service discovery: Bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
mafernandez-stratio committed Sep 12, 2016
1 parent a3246d1 commit 67533d9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -84,10 +84,10 @@ class CrossdataServer(progrConfig: Option[Config] = None) extends ServerConfig {
Try {
if(sLeader.await(sdc.getOrElse(
SDCH.SubscriptionTimeoutPath, SDCH.DefaultSubscriptionTimeout.toString).toLong, TimeUnit.SECONDS)){
throw new RuntimeException()
} else {
logger.info("Subscription leadership acquired")
sLeader
} else {
throw new RuntimeException()
}
} recoverWith {
case _ => Failure(new RuntimeException("Subscription leadership couldn't be acquired"))
Expand Down

0 comments on commit 67533d9

Please sign in to comment.