【问题标题】:Cassandra CommitLog Directory Forgetting To Remove FilesCassandra CommitLog 目录忘记删除文件
【发布时间】:2020-01-21 00:19:45
【问题描述】:

版本:DSE 6.7.5,CQL 规范 3.4.5。
我有 8GB 的​​ commitlog_total_space_in_mb。
文件夹目前为 13GB。
查看文件夹中的日期戳,它似乎忘记了提交日志,或者在刷新内存表时可能无法删除提交日志。
发生在多个节点上。

-rw-r--r--。 1 cassandra cassandra 33554338 Sep 20 02:00 CommitLog-600-1568892978830.log
-rw-r--r--。 1 cassandra cassandra 33554227 Sep 20 02:02 CommitLog-600-1568892978853.log
-rw-r--r--。 1 cassandra cassandra 33554217 Sep 20 02:02 CommitLog-600-1568892978862.log
-rw-r--r--。 1 cassandra cassandra 33554337 Sep 20 02:03 CommitLog-600-1568892978863.log
-rw-r--r--。 1 cassandra cassandra 33554169 Sep 20 02:04 CommitLog-600-1568892978864.log
-rw-r--r--。 1 cassandra cassandra 33554412 9 月 20 日 08:19 CommitLog-600-1568892954896.log
-rw-r--r--。 1 cassandra cassandra 33554326 Sep 20 08:19 CommitLog-600-1568892954901.log
-rw-r--r--。 1 cassandra cassandra 33554133 Sep 20 08:20 CommitLog-600-1568892954904.log
-rw-r--r--。 1 cassandra cassandra 33554281 Sep 20 08:20 CommitLog-600-1568892954905.log
-rw-r--r--。 1 cassandra cassandra 335538​​85 Sep 20 08:20 CommitLog-600-1568892954906.log

当我执行 nodetool flush/drain 时,它不会删除任何旧文件。

-rw-r--r--。 1 cassandra cassandra 33554338 Sep 20 02:00 CommitLog-600-1568892978830.log
-rw-r--r--。 1 cassandra cassandra 33554227 Sep 20 02:02 CommitLog-600-1568892978853.log
-rw-r--r--。 1 cassandra cassandra 33554217 Sep 20 02:02 CommitLog-600-1568892978862.log
-rw-r--r--。 1 cassandra cassandra 33554337 Sep 20 02:03 CommitLog-600-1568892978863.log
-rw-r--r--。 1 cassandra cassandra 33554169 Sep 20 02:04 CommitLog-600-1568892978864.log
-rw-r--r--。 1 cassandra cassandra 20 年 9 月 28 日 08:46 CommitLog-600-1568892981041.log

当我启动节点备份时,它会通过它们并在最终提交日志周围崩溃。 https://pastebin.com/Kw9Kee5C

CassandraDaemon.java:129 - Exception in thread Thread[PerDiskMemtableFlushWriter_0:11,5,main] java.lang.AssertionError: null


除非我将一些最后的提交日志移出或全部移出,否则它不会重新启动。

我能做些什么来解决这个问题

【问题讨论】:

  • 你能把这个发布到 community.datastax.com 吗?
  • 很可能是 DSE 中的错误,或者您的提交日志中有损坏。
  • 提出并适度。
  • @Alex Ott。在该论坛上等待审核通过一个问题需要多长时间?
  • 嗯,通常应该很快

标签: cassandra datastax datastax-enterprise


【解决方案1】:

我暂时通过将压缩更改为

解决了我的问题
compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}

由于某种原因,具有以下压缩的单元格类型的地图导致我出现错误。

{'class': 'org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy', 'compaction_window_size': '30', 'compaction_window_unit': 'DAYS', 'max_threshold': '32', 'min_threshold': '4', 'split_during_flush': 'true'} 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-05-29
    • 2017-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-27
    • 1970-01-01
    • 2012-07-16
    相关资源
    最近更新 更多