Skip to content

Commit

Permalink
fix: #62 Pass arguments to yaci-cli app and increase yaci-store start…
Browse files Browse the repository at this point in the history
…up timeout
  • Loading branch information
satran004 committed Aug 26, 2024
1 parent 6a883f5 commit 47fe63e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions applications/cli/docker/yaci-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ fi

# Check the value of yaci_cli_mode and run the appropriate command
if [ "$yaci_cli_mode" == "java" ]; then
java -jar /app/yaci-cli.jar
java -jar /app/yaci-cli.jar $*
elif [ "$yaci_cli_mode" == "native" ]; then
/app/yaci-cli
/app/yaci-cli $*
else
echo "Invalid mode. Please use 'java' or 'native'."
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ private Process startStoreApp(ClusterInfo clusterInfo, Era era) throws IOExcepti
Future<?> future = Executors.newSingleThreadExecutor().submit(processStream);

int counter = 0;
while (counter < 20) {
while (counter < 40) {
counter++;
if (started.get())
break;
Thread.sleep(1000);
writeLn("Waiting for Yaci Store to start ...");
}

if (counter == 20) {
if (counter == 40) {
writeLn(error("Waited too long. Could not start Yaci Store. Something is wrong.."));
writeLn(error("Use \"yaci-store-logs\" to see the logs"));
writeLn(error("Please verify if another yaci-store in running in the same port. " +
Expand Down

0 comments on commit 47fe63e

Please sign in to comment.