Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-4201

Preserve commitlog size cap when recycling segments at startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.1
    • None
    • Windows 7 x64, 4Gb, JRE 1.6.0_31 (x86)

    • Low

    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.
      

      Attachments

        1. log.txt
          71 kB
          Pierre Chalamet
        2. cassandra.yaml
          24 kB
          Pierre Chalamet
        3. 4201.txt
          1 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            pchalamet Pierre Chalamet
            Jonathan Ellis
            Vijay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: