cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3201) When a mmap fails, Cassandra should exit.
Date Fri, 16 Sep 2011 10:46:08 GMT

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

Sylvain Lebresne commented on CASSANDRA-3201:
---------------------------------------------

even better, +1

> 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
>            Priority: Minor
>         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

        

Mime
View raw message