Cassandra 日志中的批量写入警告

Warning in Cassandra logs for batch writes

我们使用的是 Cassandra 2.0.10 和 Cassandra C++ 驱动程序 1.0.0.beta4。我在 /var/log/cassandra/system.log

中看到以下几行

WARN [Native-Transport-Requests:83088] 2015-01-08 22:56:15,327 BatchStatement.java(第 226 行)[clipmine_prod.tag_attributes、[= 的准备语句批次12=]] 的大小为 5812,超出指定阈值 5120 692。

这是什么意思,有什么影响?如果批处理语句失败,为什么会发出警告?我们也不知道是什么代码在执行它。我们有 python 和 C))

据我所知,我们没有使用准备好的语句。

这是关于批处理大小的警告,因为大批处理会给协调器节点带来高压力

https://github.com/apache/cassandra/blob/cassandra-2.0.10/conf/cassandra.yaml#L436-L438

声明没有失败。它只产生警告日志:

https://github.com/apache/cassandra/blob/cassandra-2.0.10/src/java/org/apache/cassandra/cql3/statements/BatchStatement.java#L211-L228