@Override public Void call() throws IOException { getProxy().startLogSegment(createReqInfo(), txid, layoutVersion); synchronized (IPCLoggerChannel.this) { if (outOfSync) { outOfSync = false; QuorumJournalManager.LOG.info( "Restarting previously-stopped writes to " + IPCLoggerChannel.this + " in segment starting at txid " + txid); } } return null; } });
/** @see JournalProtocol#startLogSegment */ @Override public StartLogSegmentResponseProto startLogSegment(RpcController controller, StartLogSegmentRequestProto req) throws ServiceException { try { int layoutVersion = req.hasLayoutVersion() ? req.getLayoutVersion() : NameNodeLayoutVersion.CURRENT_LAYOUT_VERSION; impl.startLogSegment(convert(req.getReqInfo()), req.getTxid(), layoutVersion); } catch (IOException e) { throw new ServiceException(e); } return VOID_START_LOG_SEGMENT_RESPONSE; }
@Override public Void call() throws IOException { getProxy().startLogSegment(createReqInfo(), txid, layoutVersion); synchronized (IPCLoggerChannel.this) { if (outOfSync) { outOfSync = false; QuorumJournalManager.LOG.info( "Restarting previously-stopped writes to " + IPCLoggerChannel.this + " in segment starting at txid " + txid); } } return null; } });
@Override public Void call() throws IOException { getProxy().startLogSegment(createReqInfo(), txid, layoutVersion); synchronized (IPCLoggerChannel.this) { if (outOfSync) { outOfSync = false; QuorumJournalManager.LOG.info( "Restarting previously-stopped writes to " + IPCLoggerChannel.this + " in segment starting at txid " + txid); } } return null; } });
/** @see JournalProtocol#startLogSegment */ @Override public StartLogSegmentResponseProto startLogSegment(RpcController controller, StartLogSegmentRequestProto req) throws ServiceException { try { int layoutVersion = req.hasLayoutVersion() ? req.getLayoutVersion() : NameNodeLayoutVersion.CURRENT_LAYOUT_VERSION; impl.startLogSegment(convert(req.getReqInfo()), req.getTxid(), layoutVersion); } catch (IOException e) { throw new ServiceException(e); } return VOID_START_LOG_SEGMENT_RESPONSE; }
/** @see JournalProtocol#startLogSegment */ @Override public StartLogSegmentResponseProto startLogSegment(RpcController controller, StartLogSegmentRequestProto req) throws ServiceException { try { int layoutVersion = req.hasLayoutVersion() ? req.getLayoutVersion() : NameNodeLayoutVersion.CURRENT_LAYOUT_VERSION; impl.startLogSegment(convert(req.getReqInfo()), req.getTxid(), layoutVersion); } catch (IOException e) { throw new ServiceException(e); } return VOID_START_LOG_SEGMENT_RESPONSE; }