bfs
bfs copied to clipboard
shell script mistakes in sandbox
I found some minor mistakes of shell scripts in sandbox directory.
- "$1"x == "master_slave" extra x is missed in master_slave
- when adopting raft mode, sleep 5 seconds is not enough for the system to run. I encounted bfs_client put error when deploying raft mode by sleep 5-10 seconds.
- I think it is not good to show process not found when running clear.sh. Killing the process should work without any error message. For the new guy like me to run deploy.sh and get the message
process not found, I think there is something wrong with the deploy.sh. However, it works OK. -
cd -will print current work directory when usingstart_bfs.sh. I also think this log is unnecessary. It doesn't give any useful information about the system. But the logs likenameserver 0 started ok at port xxx, chunkserver 0 started ok at port xxxshould be added into the script, to make it more clear.