当计划无法放入 IoTDB 中的 wal 缓冲区时如何设置 wal_buffer_size
How to set the wal_buffer_size when a plan can not fit into the wal buffer in IoTDB
当计划无法放入 wal 缓冲区时,IoTDB 会抛出异常。但是,我不知道如何设置 wal_buffer_size.
客户:
服务器:
Caused by: java.io.IOException: Log cannot fit into the buffer, please increase wal_buffer_sizeCaused by: java.io.IOException: Log cannot fit into the buffer, please increase wal_buffer_size at org.apache.iotdb.db.writelog.node.ExclusiveWriteLogNode.write(ExclusiveWriteLogNode.java:116) at org.apache.iotdb.db.engine.storagegroup.TsFileProcessor.insert(TsFileProcessor.java:197) ... 16 common frames omitted
Caused by: java.nio.BufferOverflowException: null at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:363) at java.nio.ByteBuffer.put(ByteBuffer.java:859) at org.apache.iotdb.tsfile.utils.ReadWriteIOUtils.write(ReadWriteIOUtils.java:232) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.putValues(InsertRowPlan.java:391) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.serializeMeasurementsAndValues(InsertRowPlan.java:461) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.subSerialize(InsertRowPlan.java:447) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.serialize(InsertRowPlan.java:441) at org.apache.iotdb.db.writelog.node.ExclusiveWriteLogNode.putLog(ExclusiveWriteLogNode.java:130) at org.apache.iotdb.db.writelog.node.ExclusiveWriteLogNode.write(ExclusiveWriteLogNode.java:111) ... 17 common frames omitted
在最新版本中,IoTDB 将在超过 wal_buffer_size 时打印计划的实际大小。例如,Log cannot fit into the buffer, please increase wal_buffer_size to 16777216
.
您可以查看服务器日志并在iotdb-engine.properties
中设置wal_buffer_size。
当计划无法放入 wal 缓冲区时,IoTDB 会抛出异常。但是,我不知道如何设置 wal_buffer_size.
客户:
服务器:
Caused by: java.io.IOException: Log cannot fit into the buffer, please increase wal_buffer_sizeCaused by: java.io.IOException: Log cannot fit into the buffer, please increase wal_buffer_size at org.apache.iotdb.db.writelog.node.ExclusiveWriteLogNode.write(ExclusiveWriteLogNode.java:116) at org.apache.iotdb.db.engine.storagegroup.TsFileProcessor.insert(TsFileProcessor.java:197) ... 16 common frames omitted
Caused by: java.nio.BufferOverflowException: null at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:363) at java.nio.ByteBuffer.put(ByteBuffer.java:859) at org.apache.iotdb.tsfile.utils.ReadWriteIOUtils.write(ReadWriteIOUtils.java:232) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.putValues(InsertRowPlan.java:391) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.serializeMeasurementsAndValues(InsertRowPlan.java:461) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.subSerialize(InsertRowPlan.java:447) at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.serialize(InsertRowPlan.java:441) at org.apache.iotdb.db.writelog.node.ExclusiveWriteLogNode.putLog(ExclusiveWriteLogNode.java:130) at org.apache.iotdb.db.writelog.node.ExclusiveWriteLogNode.write(ExclusiveWriteLogNode.java:111) ... 17 common frames omitted
在最新版本中,IoTDB 将在超过 wal_buffer_size 时打印计划的实际大小。例如,Log cannot fit into the buffer, please increase wal_buffer_size to 16777216
.
您可以查看服务器日志并在iotdb-engine.properties
中设置wal_buffer_size。