Buggy code:
public final class LocalTachyonCluster { public static void main ( String [ ] args ) throws Exception { } private TachyonWorker mWorker = null ; private long mWorkerCapacityBytes ; private String mTachyonHome ; private String mWorkerDataFolder ; private Thread mWorkerThread = null ; private String mLocalhostName = null ; private LocalTachyonMaster mMaster ; public LocalTachyonCluster ( long workerCapacityBytes ) { } public TachyonFS getClient ( ) throws IOException { } public String getEditLogPath ( ) { } public String getImagePath ( ) { } public InetSocketAddress getMasterAddress ( ) { } public String getMasterHostname ( ) { } public MasterInfo getMasterInfo ( ) { } public String getMasterUri ( ) { } public int getMasterPort ( ) { } public String getTachyonHome ( ) { } public String getTempFolderInUnderFs ( ) { } public TachyonWorker getWorker ( ) { } public NetAddress getWorkerAddress ( ) { } public String getWorkerDataFolder ( ) { } public int getWorkerPort ( ) { } public int getWorkerDataPort ( ) { } private void deleteDir ( String path ) throws IOException { } private void mkdir ( String path ) throws IOException { } public void start ( ) throws IOException { mTachyonHome = ( ( File . createTempFile ( "Tachyon" , "" ) . getAbsoluteFile ( ) ) + "U" ) + ( System . currentTimeMillis ( ) ) ; mWorkerDataFolder = ( mTachyonHome ) + "//ramdisk" ; deleteDir ( mTachyonHome ) ; mkdir ( mTachyonHome ) ; mLocalhostName = NetworkUtils . getLocalHostName ( ) ; System . setProperty ( "tachyon.test.mode" , "true" ) ; System . setProperty ( "tachyon.home" , mTachyonHome ) ; System . setProperty ( "tachyon.master.port" , ( 0 + "" ) ) ; System . setProperty ( "tachyon.master.web.port" , ( 0 + "" ) ) ; System . setProperty ( "tachyon.worker.port" , ( 0 + "" ) ) ; System . setProperty ( "tachyon.worker.data.port" , ( 0 + "" ) ) ; System . setProperty ( "tachyon.worker.data.folder" , mWorkerDataFolder ) ; System . setProperty ( "tachyon.worker.memory.size" , ( ( mWorkerCapacityBytes ) + "" ) ) ; System . setProperty ( "tachyon.worker.to.master.heartbeat.interval.ms" , ( 15 + "" ) ) ; System . setProperty ( "tachyon.user.remote.read.buffer.size.byte" , ( 64 + "" ) ) ; System . setProperty ( "tachyon.master.selector.threads" , Integer . toString ( 1 ) ) ; System . setProperty ( "tachyon.master.server.threads" , Integer . toString ( 2 ) ) ; System . setProperty ( "tachyon.worker.selector.threads" , Integer . toString ( 1 ) ) ; System . setProperty ( "tachyon.worker.server.threads" , Integer . toString ( 2 ) ) ; System . setProperty ( "tachyon.worker.network.netty.worker.threads" , Integer . toString ( 2 ) ) ; <START_BUG> System . setProperty ( "tachyon.master.web.threads" , Integer . toString ( 9 ) ) ; <END_BUG> CommonConf . clear ( ) ; MasterConf . clear ( ) ; WorkerConf . clear ( ) ; UserConf . clear ( ) ; mMaster = LocalTachyonMaster . create ( mTachyonHome ) ; mMaster . start ( ) ; mkdir ( CommonConf . get ( ) . UNDERFS_DATA_FOLDER ) ; mkdir ( CommonConf . get ( ) . UNDERFS_WORKERS_FOLDER ) ; CommonUtils . sleepMs ( null , 10 ) ; System . setProperty ( "tachyon.master.port" , ( ( getMasterPort ( ) ) + "" ) ) ; System . setProperty ( "tachyon.master.web.port" , ( ( ( getMasterPort ( ) ) + 1 ) + "" ) ) ; mWorker = TachyonWorker . createWorker ( new InetSocketAddress ( mLocalhostName , getMasterPort ( ) ) , new InetSocketAddress ( mLocalhostName , 0 ) , 0 , 1 , 1 , 1 , mWorkerDataFolder , mWorkerCapacityBytes ) ; Runnable runWorker = new Runnable ( ) { @ Override public void run ( ) { try { mWorker . start ( ) ; } catch ( Exception e ) { throw new RuntimeException ( ( ( e + "<seq2seq4repair_space>\n<seq2seq4repair_space>Start<seq2seq4repair_space>Worker<seq2seq4repair_space>Error<seq2seq4repair_space>\n" ) + ( e . getMessage ( ) ) ) , e ) ; } } } ; mWorkerThread = new Thread ( runWorker ) ; mWorkerThread . start ( ) ; System . setProperty ( "tachyon.worker.port" , ( ( getWorkerPort ( ) ) + "" ) ) ; System . setProperty ( "tachyon.worker.data.port" , ( ( getWorkerDataPort ( ) ) + "" ) ) ; } public void stop ( ) throws Exception { } public void stopTFS ( ) throws Exception { } public void stopUFS ( ) throws Exception { } public void stopWorker ( ) throws Exception { } }

Fix:
System . setProperty ( "tachyon.master.web.threads" , Integer . toString ( 1 ) ) ;