请教下, lightning 导入数据完成后做 compact 时报错是什么问题?

[info] compact level -1 takes 13.518916ms

[error] run cause error : rpc error: code = Unknown desc = Grpc(RpcFailure(RpcStatus { status: Unknown, details: Some(“RocksDB(“Operation aborted: Necessary compaction input file /004539.sst is currently being compacted.”)”) }))

原因:TiKV 2.1.4 及以上版本会自动做 compact,当 lightning 参数 level-1-compact = true 时也会做 compact,报错可忽略

解决方法:修改 level-1-compact = false,如果报错依然存在,可以修改 compact = false