store.append(messageId, new PutCommand(message.getTopic(), partition, MessageUtils.encodePayload(message),
null, MessageAccessor.getFlag(message), 0), cb);
cb.latch.await(APPEND_TIMEOUT, TimeUnit.MILLISECONDS);
if (cb.offset < 0) {
log.error("offset wasless then 0 when append meta slave message");
throw new AppendMessageErrorException("Append message failed,topic=" + message.getTopic());
}
}
catch (InterruptedException e) {
throw e;
}
catch (final Throwable e) {
this.statsManager.statsSlavePutFailed(message.getTopic(), message.getPartition().toString(), 1);
log.error("process meta master message fail", e);
throw new AppendMessageErrorException("Append message failed,topic=" + message.getTopic(), e);
}
}