Details
Description
1. Create a single node cluster, use default configuration, use cassandra.bat to start the server:
2. run the following commands in cli:
create keyspace toto; use toto; create column family titi; truncate titi;
3. the node dies with this error:
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.