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

Commitlog with direct io fails test_change_durable_writes

    XMLWordPrintableJSON

Details

    Description

      With the commitlog_disk_access_mode set to direct, and the improved configuration_test.py::TestConfiguration::test_change_durable_writes from CASSANDRA-19465, this fails with either:

       AssertionError: Commitlog was written with durable writes disabled
      

      Or what appears to be the original exception reported in CASSANDRA-19465:

        node1: ERROR [PERIODIC-COMMIT-LOG-SYNCER] 2024-03-14 17:16:08,465 StorageService.java:631 - Stopping native transport
        node1: ERROR [MutationStage-5] 2024-03-14 17:16:08,465 StorageProxy.java:1670 - Failed to apply mutation locally :
        java.lang.IllegalArgumentException: newPosition > limit: (1048634 > 1048576)
              at java.base/java.nio.Buffer.createPositionException(Buffer.java:341)
              at java.base/java.nio.Buffer.position(Buffer.java:316)
              at java.base/java.nio.ByteBuffer.position(ByteBuffer.java:1516)
              at java.base/java.nio.MappedByteBuffer.position(MappedByteBuffer.java:321)
              at java.base/java.nio.MappedByteBuffer.position(MappedByteBuffer.java:73)
              at org.apache.cassandra.db.commitlog.CommitLogSegment.allocate(CommitLogSegment.java:216)
              at org.apache.cassandra.db.commitlog.CommitLogSegmentManagerStandard.allocate(CommitLogSegmentManagerStandard.java:52)
              at org.apache.cassandra.db.commitlog.CommitLog.add(CommitLog.java:307)
              at org.apache.cassandra.db.CassandraKeyspaceWriteHandler.addToCommitLog(CassandraKeyspaceWriteHandler.java:99)
              at org.apache.cassandra.db.CassandraKeyspaceWriteHandler.beginWrite(CassandraKeyspaceWriteHandler.java:53)
              at org.apache.cassandra.db.Keyspace.applyInternal(Keyspace.java:612)
              at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:497)
              at org.apache.cassandra.db.Mutation.apply(Mutation.java:244)
              at org.apache.cassandra.db.Mutation.apply(Mutation.java:264)
              at org.apache.cassandra.service.StorageProxy$4.runMayThrow(StorageProxy.java:1664)
              at org.apache.cassandra.service.StorageProxy$LocalMutationRunnable.run(StorageProxy.java:2624)
              at org.apache.cassandra.concurrent.ExecutionFailure$2.run(ExecutionFailure.java:163)
              at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:143)
              at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
              at java.base/java.lang.Thread.run(Thread.java:833)
        node1: ERROR [PERIODIC-COMMIT-LOG-SYNCER] 2024-03-14 17:16:08,470 StorageService.java:636 - Stopping gossiper
      

      Attachments

        Activity

          People

            brandon.williams Brandon Williams
            brandon.williams Brandon Williams
            Brandon Williams
            Berenguer Blasi, Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: