[MDEV-23505] RocksDB fills the hard drive with log files and it crashes the server Created: 2020-08-18  Updated: 2021-06-15  Resolved: 2021-06-09

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - RocksDB
Affects Version/s: 10.4
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: Philip orleans Assignee: Sergei Petrunia
Resolution: Not a Bug Votes: 1
Labels: None


 Description   

My Mariadb server run out of space and crashed. It turned out that Rocksdb fills the hard drive with hundreds of log file like this
LOG.old.1560127923761254
Is there a way to have MariaDB remove the unneeded files automatically?
my version is
10.4.14-MariaDB-1:10.4.14+maria~bionic mariadb.org binary distribution



 Comments   
Comment by Sergei Petrunia [ 2021-06-09 ]

Yes, there is rocksdb_keep_log_file_num option which can be set in my.cnf or command line tells RocksDB how many files should be kept. The default (from RocksDB) is 1000.

Generated at Thu Feb 08 09:22:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.