/** * Specialized method to handle the splitting for meta WAL * @param serverNames * @throws IOException */ public void splitMetaLog(final Set<ServerName> serverNames) throws IOException { splitLog(serverNames, META_FILTER); }
public void splitLog(final Set<ServerName> serverNames) throws IOException { splitLog(serverNames, NON_META_FILTER); }
public void splitLog(final ServerName serverName) throws IOException { List<ServerName> serverNames = new ArrayList<ServerName>(); serverNames.add(serverName); splitLog(serverNames); }
public void splitLog(final ServerName serverName) throws IOException { Set<ServerName> serverNames = new HashSet<ServerName>(); serverNames.add(serverName); splitLog(serverNames); }
/** * Split a server's log and expire it if we find it is one of the online * servers. * @param sn ServerName to check. * @throws IOException */ private void splitLogAndExpireIfOnline(final ServerName sn) throws IOException { if (sn == null || !serverManager.isServerOnline(sn)) { return; } LOG.info("Forcing splitLog and expire of " + sn); fileSystemManager.splitLog(sn); serverManager.expireServer(sn); }
splitLog(serverNames); retrySplitting = false; } catch (IOException ioe) {
private void splitLogs(final MasterProcedureEnv env) throws IOException { if (LOG.isDebugEnabled()) { LOG.debug("Splitting logs from " + serverName + "; region count=" + size(this.regionsOnCrashedServer)); } MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem(); AssignmentManager am = env.getMasterServices().getAssignmentManager(); // TODO: For Matteo. Below BLOCKs!!!! Redo so can relinquish executor while it is running. mfs.splitLog(this.serverName); am.getRegionStates().logSplit(this.serverName); }
if (this.shouldSplitHlog) { LOG.info("Splitting logs for " + serverName); this.services.getMasterFileSystem().splitLog(serverName); } else { LOG.info("Skipping log splitting for " + serverName);