Buggy code:
} catch ( Exception e1 ) { Inits . hostLog . info ( ( ( "HTTP<seq2seq4repair_space>admin<seq2seq4repair_space>console<seq2seq4repair_space>unable<seq2seq4repair_space>to<seq2seq4repair_space>bind<seq2seq4repair_space>to<seq2seq4repair_space>port<seq2seq4repair_space>" + httpPort ) + ".<seq2seq4repair_space>Exiting." ) ) ; System . exit ( ( - 1 ) ) ; } } m_config . m_httpPort = httpPort ; } } class SetupAdminMode extends Inits . InitWork { SetupAdminMode ( ) { } @ Override public void run ( ) { int adminPort = VoltDB . DEFAULT_ADMIN_PORT ; if ( ( m_deployment . getAdminMode ( ) ) != null ) { if ( ( m_isRejoin ) == false ) { if ( m_deployment . getAdminMode ( ) . isAdminstartup ( ) ) { m_rvdb . setStartMode ( PAUSED ) ; } } adminPort = m_deployment . getAdminMode ( ) . getPort ( ) ; } if ( ( m_config . m_adminPort ) > 0 ) adminPort = m_config . m_adminPort ; m_config . m_adminPort = adminPort ; } } class PickReplicationPort extends Inits . InitWork { PickReplicationPort ( ) { } @ Override public void run ( ) { int replicationPort = VoltDB . DEFAULT_DR_PORT ; if ( ( m_deployment . getReplication ( ) ) != null ) { replicationPort = m_deployment . getReplication ( ) . getPort ( ) ; } if ( ( m_config . m_drAgentPortStart ) > 0 ) replicationPort = m_config . m_drAgentPortStart ; m_config . m_drAgentPortStart = replicationPort ; } } class SetupReplicationRole extends Inits . InitWork { SetupReplicationRole ( ) { } @ Override public void run ( ) { if ( ! ( m_isRejoin ) ) { m_rvdb . setReplicationRole ( m_config . m_replicationRole ) ; } } } class InitExport extends Inits . InitWork { InitExport ( ) { } @ Override public void run ( ) { try { ExportManager . initialize ( m_rvdb . m_myHostId , m_rvdb . m_catalogContext , m_isRejoin ) ; } catch ( ExportManager e ) { Inits . hostLog . l7dlog ( FATAL , host_VoltDB_ExportInitFailure . name ( ) , e ) ; System . exit ( ( - 1 ) ) ; } } } class InitHashinator extends Inits . InitWork { InitHashinator ( ) { } @ Override public void run ( ) { int hostCount = m_deployment . getCluster ( ) . getHostcount ( ) ; int kFactor = m_deployment . getCluster ( ) . getKfactor ( ) ; int sitesPerHost = m_deployment . getCluster ( ) . getSitesperhost ( ) ; TheHashinator . initialize ( ( ( hostCount * sitesPerHost ) // ( kFactor + 1 ) ) ) ; } } class InitStatsAgent extends Inits . InitWork { InitStatsAgent ( ) { } @ Override public void run ( ) { try { final long statsAgentHSId = m_rvdb . getHostMessenger ( ) . getHSIdForLocalSite ( STATS_SITE_ID ) ; m_rvdb . getStatsAgent ( ) . getMailbox ( VoltDB . instance ( ) . getHostMessenger ( ) , statsAgentHSId ) ; JSONObject jsObj = new JSONObject ( ) ; jsObj . put ( "HSId" , statsAgentHSId ) ; byte [ ] payload = jsObj . toString ( 4 ) . getBytes ( "UTF-8" ) ; <START_BUG> m_rvdb . getHostMessenger ( ) . getZK ( ) . create ( mailboxes_statsagents , payload , OPEN_ACL_UNSAFE , EPHEMERAL_SEQUENTIAL ) ; <END_BUG> m_rvdb . getAsyncCompilerAgent ( ) . createMailbox ( VoltDB . instance ( ) . getHostMessenger ( ) , m_rvdb . getHostMessenger ( ) . getHSIdForLocalSite ( ASYNC_COMPILER_SITE_ID ) ) ; } catch ( Exception e ) { Inits . hostLog . fatal ( null , e ) ; System . exit ( ( - 1 ) ) ; } } } class CreateRestoreAgentAndPlan extends Inits . InitWork { public CreateRestoreAgentAndPlan ( ) { } @ Override public void run ( ) { if ( ( ! ( m_isRejoin ) ) && ( ! ( m_config . m_isRejoinTest ) ) ) { String snapshotPath = null ; if ( ( m_rvdb . m_catalogContext . cluster . getDatabases ( ) . get ( "database" ) . getSnapshotschedule ( ) . get ( "default" ) ) != null ) { snapshotPath = m_rvdb . m_catalogContext . cluster . getDatabases ( ) . get ( "database" ) . getSnapshotschedule ( ) . get ( "default" ) . getPath ( ) ; } int [ ] allPartitions = new int [ m_rvdb . m_catalogContext . numberOfPartitions ] ; int i = 0 ; for ( Partition p : m_rvdb . m_catalogContext . cluster . getPartitions ( ) ) { allPartitions [ ( i ++ ) ] = Integer . parseInt ( p . getTypeName ( ) ) ; } org . voltdb . catalog . CommandLog cl = m_rvdb . m_catalogContext . cluster . getLogconfig ( ) . get ( "log" ) ; try { m_rvdb . m_restoreAgent = new RestoreAgent ( m_rvdb . m_messenger . getZK ( ) , m_rvdb . getSnapshotCompletionMonitor ( ) , m_rvdb , m_rvdb . m_myHostId , m_config . m_startAction , m_rvdb . m_catalogContext . numberOfPartitions , cl . getEnabled ( ) , cl . getLogpath ( ) , cl . getInternalsnapshotpath ( ) , snapshotPath , allPartitions , m_rvdb . m_siteTracker . getAllHosts ( ) ) ; } catch ( IOException e ) { VoltDB . crashLocalVoltDB ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>establish<seq2seq4repair_space>a<seq2seq4repair_space>ZooKeeper<seq2seq4repair_space>connection:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) , false , e ) ; } m_rvdb . m_restoreAgent . setCatalogContext ( m_rvdb . m_catalogContext ) ; Pair < Integer , String > catalog = m_rvdb . m_restoreAgent . findRestoreCatalog ( ) ; if ( catalog != null ) { Inits . hostLog . debug ( ( ( ( "Found<seq2seq4repair_space>catalog<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>on<seq2seq4repair_space>host<seq2seq4repair_space>" + ( catalog . getFirst ( ) ) ) + ":<seq2seq4repair_space>" ) + ( catalog . getSecond ( ) ) ) ) ; m_rvdb . m_hostIdWithStartupCatalog = catalog . getFirst ( ) . intValue ( ) ; assert ( m_rvdb . m_hostIdWithStartupCatalog ) >= 0 ; m_rvdb . m_pathToStartupCatalog = catalog . getSecond ( ) ; assert ( m_rvdb . m_pathToStartupCatalog ) != null ;

Fix:
m_rvdb . getHostMessenger ( ) . getZK ( ) . create ( mailboxes_statsagents_agents , payload , OPEN_ACL_UNSAFE , EPHEMERAL_SEQUENTIAL ) ;