cassandra关机原因:java.io.syncfailedexception:同步失败

dxxyhpgq  于 2021-06-15  发布在  Cassandra
关注(0)|答案(1)|浏览(326)

我使用的是Cassnara2.1.13单节点集群,数据库运行良好,没有任何问题。
然后出现了以下异常,因为cassandra服务被关闭了。
在单节点集群中,这些异常(特别是同步失败)的原因是什么?有什么提示或指针可以找到问题的根本原因吗?
信息[memtablefl]ushwriter:22]记忆表。java:347 - 写作memtable-compaction_history@1884003282(0.521KB序列化字节,19个操作,0%/0%的开/关堆限制)信息[memtableflushwriter:22]记忆表。java:382 - 完成了commitlog位置replayposition的刷新/myspace/db/data/system/compression\u history-b4dbb7b4dc493fb5b3bfce6e434832ca/system-compression\u history-tmp-ka-8-data.db(0.000kib)(segmentid=1540762960100,位置=2642365)错误[memtableflushwriter:21]Cassandra德蒙。java:229 - 线程[memtablefl]中出现异常ushwriter:21,5,main]org.apache.cassandra.io.fswriteerror:java.io.syncfailedexception:sync failed at org.apache.cassandra.io.util.sequentialwriter.syncdataonlyinternal(sequentialwriter。java:254)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.io.util.sequentialwriter.syncinternal(sequentialwriter。java:263)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.io.util.sequentialwriter.close(sequentialwriter。java:451)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.io.compress.compressedsequentialwriter.close(compressedsequentialwriter。java:264)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.io.sstable.sstablewriter.close(sstablewriter。java:503) ~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.io.sstable.sstablewriter.finish(sstablewriter。java:455)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.io.sstable.sstablewriter.closeandopenreader(sstablewriter。java:447)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.io.sstable.sstablewriter.closeandopenreader(sstablewriter。java:442)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.db.memtable$flushrunnable.writesortedcontents(memtable。java:389)~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.db.memtable$flushrunnable.runmaythrow(memtable。java:335) ~[apache-cassandra-2.1.13。jar:2.1.13]在org.apache.cassandra.utils.wrappedrunnable.run(wrappedrunnable。java:28)~[apache-cassandra-2.1.13。jar:2.1.13]在com.google.common.util.concurrent.moreexecutors$samethreadexecutorservice.execute(moreexecutors。java:297)~[Guava-16.0。jar:na]在org.apache.cassandra.db.columnfamilystore$flush.run(columnfamilystore。java:1120)~[apache-cassandra-2.1.13。jar:2.1.13]位于java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor。java:1149)~[na:1.8.0_]位于java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor。java:624)~(na:1.8.0μ192)在java.lang.thread.run(线程。java:748)~[na:1.8.0_]原因:java.io.syncfailedexception:sync failed at java.io.filedescriptor.sync(本机方法)~[na:1.8.0_]at org.apache.cassandra.io.util.sequentialwriter.syncdataonlyinternal(sequentialwriter)。java:250)~[apache-cassandra-2.1.13。jar:2.1.13] ... 省略15个公共框架
错误[memtablefl]ushwriter:21]存储服务。java:453 - 停止闲聊警告[memtablefl]ushwriter:21]存储服务。java:359 - 通过操作员请求信息停止流言[memtablefl]ushwriter:21]流言蜚语者。java:1455 - 宣布关闭
重新启动cassandra服务后,没有任何问题,并按预期工作。

pkbketx9

pkbketx91#

我怀疑这是:
磁盘问题-检查 /var/log/messages 以及磁盘的智能状态
磁盘已满
文件已被删除(虽然这是非常不可能的,但如果系统上有防病毒软件,可能会发生这种情况)

相关问题