@Ignore
public void testReadWrite() throws Exception {
LocalMessageBucketManager localManager = (LocalMessageBucketManager) lookup(MessageBucketManager.class,
LocalMessageBucketManager.ID);
MessageBucketManager hdfsManager = lookup(MessageBucketManager.class, HdfsMessageBucketManager.ID);
MessageIdFactory factory = new MockMessageIdFactory();
long now = 1343532130488L;
int num = 100;
factory.setIpAddress("7f000001");
factory.initialize("source");
localManager.setBaseDir(new File("target/bucket/hdfs/dump")); // make local and hdfs base dir same
for (int i = 0; i < num; i++) {
MessageTree tree = newMessageTree(factory.getNextId(), i, now + i * 10L);
MessageId id = MessageId.parse(tree.getMessageId());
localManager.storeMessage(tree,id);
}
for (int i = 0; i < num; i++) {