Github user lindzh commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/126#discussion_r132622123
  
    --- Diff: 
store/src/test/java/org/apache/rocketmq/store/DefaultMessageStoreTest.java ---
    @@ -45,19 +47,22 @@ public void init() throws Exception {
             BornHost = new 
InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0);
         }
     
    +    public MessageStore buildMessageStore() throws Exception {
    +        MessageStoreConfig messageStoreConfig = new MessageStoreConfig();
    +        messageStoreConfig.setMapedFileSizeCommitLog(1024 * 1024 * 10);
    +        messageStoreConfig.setMapedFileSizeConsumeQueue(1024 * 1024 * 10);
    +        messageStoreConfig.setMaxHashSlotNum(10000);
    +        messageStoreConfig.setMaxIndexNum(100 * 100);
    +        messageStoreConfig.setFlushDiskType(FlushDiskType.ASYNC_FLUSH);
    +        return new DefaultMessageStore(messageStoreConfig, new 
BrokerStatsManager("simpleTest"), new MyMessageArrivingListener(), new 
BrokerConfig());
    --- End diff --
    
    Indeed this is a must after testing,and this bug has been fix in PR 
https://github.com/apache/incubator-rocketmq/pull/141 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to