Buggy code:
} static final int TIMESTAMP_SALT_VARIANCE = 3 ; final String m_jarFileName ; final int m_siteCount ; final int m_hostCount ; final int m_replication ; final BackendTarget m_target ; final String m_buildDir ; int m_portOffset ; int m_zkPortOffset ; int m_adminPortOffset ; boolean m_hasLocalServer = true ; String m_pathToDeployment ; int m_pathToDeploymentOffset ; int m_rejoinOffset ; LocalCluster . FailureState m_failureState ; int m_baseAdminPort = VoltDB . DEFAULT_ADMIN_PORT ; boolean m_compiled = false ; boolean m_running = false ; ArrayList < Process > m_cluster = new ArrayList < Process > ( ) ; ArrayList < File > m_subRoots = new ArrayList < File > ( ) ; ArrayList < LocalCluster . PipeToFile > m_pipes = null ; ServerThread m_localServer = null ; ProcessBuilder m_procBuilder ; private int m_debugOffset1 ; private int m_debugOffset2 ; private int m_ipcPortOffset1 ; private int m_ipcPortOffset2 ; private int m_ipcPortOffset3 ; private int m_voltFilePrefixOffset ; private int m_timestampSaltOffset ; private int m_licensePathOffset ; @ SuppressWarnings ( "unused" ) private File m_pathToVoltRoot = null ; private final ArrayList < ArrayList < EEProcess > > m_eeProcs = new ArrayList < ArrayList < EEProcess > > ( ) ; private final boolean m_debug ; private int m_debugPortOffset = 8000 ; private final boolean m_isRejoinTest ; private int m_voltStartCmdOffset ; private int m_voltStartModeOffset ; public static class PipeToFile extends Thread { static final String m_initToken = "Server<seq2seq4repair_space>completed<seq2seq4repair_space>init" ; static final String m_rejoinToken = "Node<seq2seq4repair_space>recovery<seq2seq4repair_space>completed" ; static final String m_initiatorID = "Initializing<seq2seq4repair_space>initiator<seq2seq4repair_space>ID:" ; FileWriter m_writer ; BufferedReader m_input ; String m_filename ; AtomicBoolean m_witnessedReady ; final String m_token ; int m_hostId = Integer . MAX_VALUE ; long m_initTime ; private boolean m_eof = false ; PipeToFile ( String filename , InputStream stream , String token , boolean appendLog ) { } public int getHostId ( ) { } @ Override public void run ( ) { } } public LocalCluster ( String jarFileName , int siteCount , int hostCount , int replication , BackendTarget target ) { } public LocalCluster ( String jarFileName , int siteCount , int hostCount , int replication , BackendTarget target , boolean isRejoinTest ) { } public LocalCluster ( String jarFileName , int siteCount , int hostCount , int replication , BackendTarget target , LocalCluster . FailureState failureState , boolean debug ) { } public LocalCluster ( String jarFileName , int siteCount , int hostCount , int replication , BackendTarget target , LocalCluster . FailureState failureState , boolean debug , boolean isRejoinTest ) { } public void setHasLocalServer ( boolean hasLocalServer ) { } public void setMaxHeap ( int megabytes ) { } public String getPathToDeployment ( ) { } @ Override public boolean compile ( VoltProjectBuilder builder ) { } @ Override public boolean compileWithPartitionDetection ( VoltProjectBuilder builder , String snapshotPath , String ppdPrefix ) { } @ Override public boolean compileWithAdminMode ( VoltProjectBuilder builder , int adminPort , boolean adminOnStartup ) { } @ Override public void startUp ( ) { } @ Override public void startUp ( boolean clearLocalDataDirectories ) { } public void startUp ( boolean clearLocalDataDirectories , ReplicationRole role ) { } private void startOne ( int hostId , boolean clearLocalDataDirectories , String startMode ) { try { <START_BUG> m_procBuilder . environment ( ) . put ( "dragentportoffset" , String . valueOf ( ( ( VoltDB . DEFAULT_DR_PORT ) + ( hostId * 2 ) ) ) ) ; <END_BUG> m_procBuilder . command ( ) . set ( m_portOffset , String . valueOf ( ( ( VoltDB . DEFAULT_PORT ) + hostId ) ) ) ; m_procBuilder . command ( ) . set ( m_adminPortOffset , String . valueOf ( ( ( m_baseAdminPort ) - hostId ) ) ) ; m_procBuilder . command ( ) . set ( m_pathToDeploymentOffset , m_pathToDeployment ) ; m_procBuilder . command ( ) . set ( m_voltStartCmdOffset , "create" ) ; if ( ( MASTER . toString ( ) . equalsIgnoreCase ( startMode ) ) || ( REPLICA . toString ( ) . equalsIgnoreCase ( startMode ) ) ) m_procBuilder . command ( ) . set ( m_voltStartModeOffset , startMode ) ; m_procBuilder . command ( ) . set ( m_rejoinOffset , "" ) ; m_procBuilder . command ( ) . set ( m_licensePathOffset , ServerThread . getTestLicensePath ( ) ) ; m_procBuilder . command ( ) . set ( m_timestampSaltOffset , String . valueOf ( getRandomTimestampSalt ( ) ) ) ; if ( m_debug ) { m_procBuilder . command ( ) . set ( m_debugOffset1 , "-Xdebug" ) ; m_procBuilder . command ( ) . set ( m_debugOffset2 , ( ( "-agentlib:jdwp=transport=dt_socket,address=" + ( ( m_debugPortOffset ) ++ ) ) + ",server=y,suspend=n" ) ) ; } if ( m_target . isIPC ) { m_procBuilder . command ( ) . set ( m_ipcPortOffset1 , "ipcports" ) ; String portString = "" ; for ( EEProcess proc : m_eeProcs . get ( hostId ) ) { if ( portString . isEmpty ( ) ) { portString += Integer . valueOf ( proc . port ( ) ) ; } else { portString += "," + ( Integer . valueOf ( proc . port ( ) ) ) ; } } m_procBuilder . command ( ) . set ( m_ipcPortOffset2 , portString ) ; m_procBuilder . command ( ) . set ( m_ipcPortOffset3 , "valgrind" ) ; } m_procBuilder . command ( ) . set ( m_zkPortOffset , Integer . toString ( ( 2181 + hostId ) ) ) ; File subroot = null ; if ( clearLocalDataDirectories ) { subroot = VoltFile . getNewSubroot ( ) ; m_subRoots . add ( subroot ) ; } else { subroot = m_subRoots . get ( hostId ) ; } m_procBuilder . command ( ) . set ( m_voltFilePrefixOffset , ( "-DVoltFilePrefix=" + ( subroot . getPath ( ) ) ) ) ; StringBuilder sb = new StringBuilder ( ) ; for ( String arg : m_procBuilder . command ( ) ) { sb . append ( arg ) ; sb . append ( '<seq2seq4repair_space>' ) ; }

Fix:
m_procBuilder . environment ( ) . put ( "dragentportoffset" , String . valueOf ( ( ( VoltDB . DEFAULT_DR_PORT ) + ( hostId * 3 ) ) ) ) ;