Skip to content

Commit

Permalink
mongo-supervisor/Utils.kt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lamba92 committed Apr 18, 2020
1 parent c572bcf commit d26c22b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ services:
delay: 5s
max_attempts: 5
window: 10s
placement:
constraints:
- node.labels.mongo.role==data2
placement:
constraints:
- node.labels.mongo.role==data2

mongo-shard-1:
image: mongo
Expand All @@ -113,9 +113,9 @@ services:
delay: 5s
max_attempts: 5
window: 10s
placement:
constraints:
- node.labels.mongo.role==data1
placement:
constraints:
- node.labels.mongo.role==data1

mongo-shard-2:
image: mongo
Expand All @@ -127,9 +127,9 @@ services:
delay: 5s
max_attempts: 5
window: 10s
placement:
constraints:
- node.labels.mongo.role==data2
placement:
constraints:
- node.labels.mongo.role==data2

mongo-express:
image: mongo-express
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ suspend fun mongoEval(host: String, port: Int, command: String) = withContext(Di
with(ProcessBuilder("mongo", "--host", host, "--port", port.toString(), "--eval", command)) {
val output = createTempFile()
redirectOutput(output)
val exitValue = start().exitValue()
val exitValue = start().waitFor()
println("Process output:")
output.readLines()
.map { "\t $it" }
Expand Down

0 comments on commit d26c22b

Please sign in to comment.