[ 
https://issues.apache.org/jira/browse/ROCKETMQ-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15932226#comment-15932226
 ] 

Zhanhui Li commented on ROCKETMQ-145:
-------------------------------------

[~Jaskey] You are right that the new model wakes up group-commit thread more 
frequently, at most every 10 milliseconds without considering OS scheduling, 
which makes this bug easier to reproduce.  The code base, after applying this 
patch 0b39fcadfa2950f1dd3975e1262ccd544f350750, should be working correctly. 
The only remaining issue, IMO, is that the group-commit thread wakes up 
unnecessarily frequently.

> Hit ConcurrentModificationException in doWaitTransfer which happens very offen
> ------------------------------------------------------------------------------
>
>                 Key: ROCKETMQ-145
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-145
>             Project: Apache RocketMQ
>          Issue Type: Bug
>          Components: rocketmq-store
>    Affects Versions: 4.0.0-incubating
>            Reporter: Eason Chen
>            Assignee: yukon
>
> we use master and slave , sync transfer and asyn flush, happens this very 
> offen: 
> 2017-03-17 20:12:38 WARN GroupTransferService - GroupTransferService service 
> has exception. 
> java.util.ConcurrentModificationException: null
>         at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) 
> ~[na:1.8.0_121]
>         at java.util.ArrayList$Itr.next(ArrayList.java:851) ~[na:1.8.0_121]
>         at 
> org.apache.rocketmq.store.ha.HAService$GroupTransferService.doWaitTransfer(HAService.java:277)
>  ~[rocketmq-store-4.0.0-incubating.jar:4.0.0-incubating]
>         at 
> org.apache.rocketmq.store.ha.HAService$GroupTransferService.run(HAService.java:301)
>  ~[rocketmq-store-4.0.0-incubating.jar:4.0.0-incubating]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to