[
https://issues.apache.org/jira/browse/CASSANDRA-4201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis updated CASSANDRA-4201:
--------------------------------------
Priority: Minor (was: Major)
> Preserve commitlog size cap when recycling segments at startup
> --------------------------------------------------------------
>
> Key: CASSANDRA-4201
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4201
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: Windows 7 x64, 4Gb, JRE 1.6.0_31 (x86)
> Reporter: Pierre Chalamet
> Assignee: Jonathan Ellis
> Priority: Minor
> Labels: commitlog
> Fix For: 1.1.1
>
> Attachments: 4201.txt, cassandra.yaml, log.txt
>
>
> 1. Create a single node cluster, use default configuration, use cassandra.bat
> to start the server:
> 2. run the following commands in cli:
> {code}
> create keyspace toto;
> use toto;
> create column family titi;
> truncate titi;
> {code}
> 3. the node dies with this error:
> {code}
> ERROR 23:23:02,118 Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main]
> java.io.IOError: java.io.IOException: Map failed
> at
> org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:127)
> at
> org.apache.cassandra.db.commitlog.CommitLogSegment.recycle(CommitLogSegment.java:202)
> at
> org.apache.cassandra.db.commitlog.CommitLogAllocator$2.run(CommitLogAllocator.java:159)
> at
> org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:95)
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.io.IOException: Map failed
> at sun.nio.ch.FileChannelImpl.map(Unknown Source)
> at
> org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:119)
> ... 5 more
> Caused by: java.lang.OutOfMemoryError: Map failed
> at sun.nio.ch.FileChannelImpl.map0(Native Method)
> ... 7 more
> INFO 23:23:02,122 Stop listening to thrift clients
> INFO 23:23:02,123 Waiting for messaging service to quiesce
> INFO 23:23:02,125 MessagingService shutting down server thread.
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira