cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aditya Bharadwaj (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-14136) MemtableFlushWriter DecoratedKey Exception
Date Tue, 26 Dec 2017 14:17:00 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-14136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aditya Bharadwaj updated CASSANDRA-14136:
-----------------------------------------
    Description: 
Running into this issue on my cluster periodically for different tables. After this error
is encountered, all the post flushes stop and eventually the system runs out of memory.
On a restart all the commit logs get played normally and things go back to normal. 

I'm unable to understand the scenario, but the issue is recreating every few days.

bq. DEBUG [MemtableFlushWriter:884] 2017-12-26 18:19:40,883 Memtable.java:401 - Completed
flushing /mnt/DATA/cassandra/data/martjack/products_by_hierarchy5storeid_pascdesc-411cabe0632411e7b25a1b665c06298b/.id
bq. x_hierarchy1category/mc-2050-big-Data.db (508.127KiB) for commitlog position ReplayPosition(segmentId=1513929386900,
bq.  position=19110822)
bq. DEBUG [MemtableFlushWriter:884] 2017-12-26 18:19:41,150 Memtable.java:368 - Writing Memtable-products_by_hierarchy5storeid_pascdesc.idx_hierarchy3category@551487729(545.926KiB
serialized bytes, 324073 ops, 0%/0% of on/off-heap limit)
bq. ERROR [MemtableFlushWriter:884] 2017-12-26 18:19:41,316 CassandraDaemon.java:205 - Exception
in thread Thread[MemtableFlushWriter:884,5,main]
bq. java.lang.RuntimeException: Last written key DecoratedKey(CU00328612, 43553030333238363132)
>= current key DecoratedKey(^@^@^@^@^@^@^@^@^@^@, 43553030333238363838) writing into /mnt/DATA/cassandra/data/martjack/products_by_hierarchy5storeid_pascdesc-411cabe0632411e7b25a1b665c06298b/.idx_hierarchy3category/mc-2134-big-Data.db
bq.         at org.apache.cassandra.io.sstable.format.big.BigTableWriter.beforeAppend(BigTableWriter.java:106)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.io.sstable.format.big.BigTableWriter.append(BigTableWriter.java:145)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.io.sstable.SimpleSSTableMultiWriter.append(SimpleSSTableMultiWriter.java:45)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.io.sstable.SSTableTxnWriter.append(SSTableTxnWriter.java:52)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:394) ~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.db.Memtable.flush(Memtable.java:332) ~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1054)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[na:1.8.0_112]
bq.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
~[na:1.8.0_112]
bq.         at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_112]
bq. 

  was:
Running into this issue on my cluster periodically for different tables. After this error
is encountered, all the post flushes stop and eventually the system runs out of memory.
On a restart all the commit logs get played normally and things go back to normal. 

I'm unable to understand the scenario, but the issue is recreating every few days.

bq. {{quote}DEBUG [MemtableFlushWriter:884] 2017-12-26 18:19:40,883 Memtable.java:401 - Completed
flushing /mnt/DATA/cassandra/data/martjack/products_by_hierarchy5storeid_pascdesc-411cabe0632411e7b25a1b665c06298b/.id
bq. x_hierarchy1category/mc-2050-big-Data.db (508.127KiB) for commitlog position ReplayPosition(segmentId=1513929386900,
bq.  position=19110822)
bq. DEBUG [MemtableFlushWriter:884] 2017-12-26 18:19:41,150 Memtable.java:368 - Writing Memtable-products_by_hierarchy5storeid_pascdesc.idx_hierarchy3category@551487729(545.926KiB
serialized bytes, 324073 ops, 0%/0% of on/off-heap limit)
bq. ERROR [MemtableFlushWriter:884] 2017-12-26 18:19:41,316 CassandraDaemon.java:205 - Exception
in thread Thread[MemtableFlushWriter:884,5,main]
bq. java.lang.RuntimeException: Last written key DecoratedKey(CU00328612, 43553030333238363132)
>= current key DecoratedKey(^@^@^@^@^@^@^@^@^@^@, 43553030333238363838) writing into /mnt/DATA/cassandra/data/martjack/products_by_hierarchy5storeid_pascdesc-411cabe0632411e7b25a1b665c06298b/.idx_hierarchy3category/mc-2134-big-Data.db
bq.         at org.apache.cassandra.io.sstable.format.big.BigTableWriter.beforeAppend(BigTableWriter.java:106)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.io.sstable.format.big.BigTableWriter.append(BigTableWriter.java:145)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.io.sstable.SimpleSSTableMultiWriter.append(SimpleSSTableMultiWriter.java:45)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.io.sstable.SSTableTxnWriter.append(SSTableTxnWriter.java:52)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:394) ~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.db.Memtable.flush(Memtable.java:332) ~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1054)
~[apache-cassandra-3.0.9.jar:3.0.9]
bq.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[na:1.8.0_112]
bq.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
~[na:1.8.0_112]
bq.         at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_112]
bq. }


> MemtableFlushWriter DecoratedKey Exception
> ------------------------------------------
>
>                 Key: CASSANDRA-14136
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14136
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Compaction
>         Environment: CentOS Linux release 7.3.1611 (Core) , 3 Node cluster with Replication
Factor or 2
>            Reporter: Aditya Bharadwaj
>              Labels: beginner
>             Fix For: 3.0.11
>
>         Attachments: debug.log.gz, system.log.gz
>
>
> Running into this issue on my cluster periodically for different tables. After this error
is encountered, all the post flushes stop and eventually the system runs out of memory.
> On a restart all the commit logs get played normally and things go back to normal. 
> I'm unable to understand the scenario, but the issue is recreating every few days.
> bq. DEBUG [MemtableFlushWriter:884] 2017-12-26 18:19:40,883 Memtable.java:401 - Completed
flushing /mnt/DATA/cassandra/data/martjack/products_by_hierarchy5storeid_pascdesc-411cabe0632411e7b25a1b665c06298b/.id
> bq. x_hierarchy1category/mc-2050-big-Data.db (508.127KiB) for commitlog position ReplayPosition(segmentId=1513929386900,
> bq.  position=19110822)
> bq. DEBUG [MemtableFlushWriter:884] 2017-12-26 18:19:41,150 Memtable.java:368 - Writing
Memtable-products_by_hierarchy5storeid_pascdesc.idx_hierarchy3category@551487729(545.926KiB
serialized bytes, 324073 ops, 0%/0% of on/off-heap limit)
> bq. ERROR [MemtableFlushWriter:884] 2017-12-26 18:19:41,316 CassandraDaemon.java:205
- Exception in thread Thread[MemtableFlushWriter:884,5,main]
> bq. java.lang.RuntimeException: Last written key DecoratedKey(CU00328612, 43553030333238363132)
>= current key DecoratedKey(^@^@^@^@^@^@^@^@^@^@, 43553030333238363838) writing into /mnt/DATA/cassandra/data/martjack/products_by_hierarchy5storeid_pascdesc-411cabe0632411e7b25a1b665c06298b/.idx_hierarchy3category/mc-2134-big-Data.db
> bq.         at org.apache.cassandra.io.sstable.format.big.BigTableWriter.beforeAppend(BigTableWriter.java:106)
~[apache-cassandra-3.0.9.jar:3.0.9]
> bq.         at org.apache.cassandra.io.sstable.format.big.BigTableWriter.append(BigTableWriter.java:145)
~[apache-cassandra-3.0.9.jar:3.0.9]
> bq.         at org.apache.cassandra.io.sstable.SimpleSSTableMultiWriter.append(SimpleSSTableMultiWriter.java:45)
~[apache-cassandra-3.0.9.jar:3.0.9]
> bq.         at org.apache.cassandra.io.sstable.SSTableTxnWriter.append(SSTableTxnWriter.java:52)
~[apache-cassandra-3.0.9.jar:3.0.9]
> bq.         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:394)
~[apache-cassandra-3.0.9.jar:3.0.9]
> bq.         at org.apache.cassandra.db.Memtable.flush(Memtable.java:332) ~[apache-cassandra-3.0.9.jar:3.0.9]
> bq.         at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1054)
~[apache-cassandra-3.0.9.jar:3.0.9]
> bq.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[na:1.8.0_112]
> bq.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
~[na:1.8.0_112]
> bq.         at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_112]
> bq. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message