private void bootstrap ( ) { List < MemberId > activePeers = bootstrapPeersSupplier . get ( ) ; if ( activePeers . isEmpty ( ) ) { return ; } try { requestBootstrapFromPeers ( activePeers ) . get ( DistributedPrimitive . DEFAULT_OPERATION_TIMEOUT_MILLIS , TimeUnit . MILLISECONDS ) ; } catch ( ExecutionException | InterruptedException | TimeoutException e ) { LOGGER . debug ( "Failed to bootstrap ec map {}: {}" , mapName , ExceptionUtils . getStackTrace ( e ) ) ; } }
Bootstraps the map to attempt to get in sync with existing instances of the same map on other nodes in the cluster . This is necessary to ensure that a read immediately after the map is created doesn t return a null value .