cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <>
Subject [jira] Created: (CASSANDRA-1715) More schema migration race conditions
Date Fri, 05 Nov 2010 21:12:45 GMT
More schema migration race conditions

                 Key: CASSANDRA-1715
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.7 beta 1
            Reporter: Jonathan Ellis
            Assignee: Gary Dusbabek
            Priority: Critical
             Fix For: 0.7.0

Related to CASSANDRA-1631.

This is still a bug with schema updates to an existing CF, since reloadCf is doing a unload/init
cycle. So flushing + compaction is an issue there as well. Here is a stacktrace from during
an index creation where it stubbed its toe on an incomplete sstable from an in-progress compaction
(path names anonymized):
INFO [CompactionExecutor:1] 2010-11-02 16:31:00,553 (line 224) Compacting
ERROR [MigrationStage:1] 2010-11-02 16:31:10,939 (line 244) Corrupt
sstable Standard1-tmp-e-10-<>=[Data.db, Index.db]; skipped
        at org.apache.cassandra.utils.FBUtilities.skipShortByteArray(
        at org.apache.cassandra.db.ColumnFamilyStore.<init>(
        at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(
        at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(
        at org.apache.cassandra.db.Table.initCf(
        at org.apache.cassandra.db.Table.reloadCf(
        at org.apache.cassandra.db.migration.UpdateColumnFamily.applyModels(
        at org.apache.cassandra.db.migration.Migration.apply(
        at org.apache.cassandra.thrift.CassandraServer$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
 INFO [CompactionExecutor:1] 2010-11-02 16:31:31,970 (line 303) Compacted
to Standard1-tmp-e-10-Data.db.  213,657,983 to 213,657,983 (~100% of original) bytes for 626,563
keys.  Time: 31,416ms.

There is also a race between schema modification and streaming.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message