[
https://issues.apache.org/jira/browse/CASSANDRA-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis resolved CASSANDRA-3201.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.0.0
0.8.7
Reviewer: slebresne
Assignee: Jonathan Ellis
committed
> When a mmap fails, Cassandra should exit.
> -----------------------------------------
>
> Key: CASSANDRA-3201
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3201
> Project: Cassandra
> Issue Type: Improvement
> Environment: Ubuntu 10.04.2/sun-java6-jdk 6.24-1build0.10.04.1
> Reporter: Eldon Stegall
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.8.7, 1.0.0
>
> Attachments: 3201-v2.txt, 3201.txt
>
>
> When a mmap fails, Cassandra should exit. See
> https://wiki.apache.org/cassandra/ArchitectureInternals#line-60
> Here is an example stack trace:
> ERROR 17:11:36,258 Fatal exception in thread Thread[FlushWriter:2003,5,main]
> java.io.IOError: java.io.IOException: Map failed
> at
> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:170)
> at
> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.complete(MmappedSegmentedFile.java:147)
> at
> org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:194)
> at
> org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:173)
> at
> org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:253)
> at org.apache.cassandra.db.Memtable.access$400(Memtable.java:49)
> at org.apache.cassandra.db.Memtable$3.runMayThrow(Memtable.java:270)
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.IOException: Map failed
> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:748)
> at
> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:162)
> ... 10 more
> Caused by: java.lang.OutOfMemoryError: Map failed
> at sun.nio.ch.FileChannelImpl.map0(Native Method)
> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:745)
> ... 11 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira