Github user jackylk commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2239#discussion_r185680076
--- Diff: store/search/src/main/scala/org/apache/spark/rpc/Master.scala ---
@@ -64,13 +65,29 @@ class Master(sparkConf: SparkConf, port: Int) {
private val scheduler: Scheduler = new Scheduler
+ /**
+ * flag is the master status, default value is false, which means master
not start now.
+ * if it is true, then search mode master finished start.
+ */
+ private var flag: AtomicBoolean = new AtomicBoolean(false)
--- End diff --
move this variable into startService
---