// Extract the port from the generated socket.
// When running tests, its great to use port '0' so the system will figure out what port to
// use (any random free port).
// In a production or any real deployment setup, port '0' should not be used as it will make
// deployment more complicated.
mServerTNonblockingServerSocket = new TNonblockingServerSocket(address);
mPort = NetworkUtils.getPort(mServerTNonblockingServerSocket);
mMasterAddress = new InetSocketAddress(NetworkUtils.getFqdnHost(address), mPort);
String journalFolder = MasterConf.get().JOURNAL_FOLDER;
Preconditions.checkState(isFormatted(journalFolder, MasterConf.get().FORMAT_FILE_PREFIX),