reachfish opened a new issue #486: create mapped file raise io exception, but 
the file is indeed created succ on the disk.
URL: https://github.com/apache/rocketmq/issues/486
 
 
   hi,  i have a problem in creating a new mapfile. it raise an io exception 
and retry 30 times,  but all failed with an io exception .  but i found the 
mapfile is indeed created succ on the disk,  and its file size is right.
   would you help me ?
   
   below is the exception stack.
   
   > 2018-10-09 01:14:50 WARN ReputMessageService - [BUG]put commit log 
position info to BenchmarkTest:304 265047020213 failed, retry 2 times
   2018-10-09 01:14:51 ERROR ReputMessageService - map file 
/data/services/rocketmq-all-4.2.0/data/store/consumequeue/BenchmarkTest/304/00000000000040200000
 Failed. 
   java.io.IOException: Map failed
           at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:940) 
~[na:1.8.0_121]
           at org.apache.rocketmq.store.MappedFile.init(MappedFile.java:164) 
[rocketmq-store-4.2.0.jar:4.2.0]
           at org.apache.rocketmq.store.MappedFile.<init>(MappedFile.java:73) 
[rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.MappedFileQueue.getLastMappedFile(MappedFileQueue.java:217)
 [rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.MappedFileQueue.getLastMappedFile(MappedFileQueue.java:237)
 [rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.ConsumeQueue.putMessagePositionInfo(ConsumeQueue.java:435)
 [rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.ConsumeQueue.putMessagePositionInfoWrapper(ConsumeQueue.java:397)
 [rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.DefaultMessageStore.putMessagePositionInfo(DefaultMessageStore.java:1371)
 [rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.DefaultMessageStore$CommitLogDispatcherBuildConsumeQueue.dispatch(DefaultMessageStore.java:1418)
 [rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.DefaultMessageStore.doDispatch(DefaultMessageStore.java:1365)
 [rocketmq-store-4.2.0.jar:4.2.0]
           at 
org.apache.rocketmq.store.DefaultMessageStore$ReputMessageService.doReput(DefaultMessageStore.java:1763)
 [rocketmq-store-4.2.0.jar:4.2.0]   
           at 
org.apache.rocketmq.store.DefaultMessageStore$ReputMessageService.run(DefaultMessageStore.java:1818)
 [rocketmq-store-4.2.0.jar:4.2.0]       
           at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
   Caused by: java.lang.OutOfMemoryError: Map failed
           at sun.nio.ch.FileChannelImpl.map0(Native Method) ~[na:1.8.0_121]
           at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:937) 
~[na:1.8.0_121]
           ... 12 common frames omitted

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to