Package com.taobao.metamorphosis

Examples of com.taobao.metamorphosis.AppendMessageErrorException


            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);
        }

    }
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.AppendMessageErrorException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.