4.X Cannot Find Configuration Parameter soft/hard-pending-compaction-bytes-limit

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 4.X找不到配置参数soft/hard-pending-compaction-bytes-limit

| username: 裤衩儿飞上天

[TiDB Usage Environment] Production Environment
[TiDB Version] 4.0.8
Want to check the value of soft/hard-pending-compaction-bytes-limit

The relevant documentation contains this parameter

show config, no related parameters

TiDB root@ip:(none)> show config where name like '%compaction%';
+------+---------------------+------------------------------+----------+
| Type | Instance            | Name                         | Value    |
+------+---------------------+------------------------------+----------+
| pd   | ip:2379 | auto-compaction-mode         | periodic |
| pd   | ip:2379 | auto-compaction-retention-v2 | 1h       |
| pd   | ip:2379 | auto-compaction-mode         | periodic |
| pd   | ip:2379 | auto-compaction-retention-v2 | 1h       |
| pd   | ip:2379 | auto-compaction-mode         | periodic |
| pd   | ip:2379 | auto-compaction-retention-v2 | 1h       |
+------+---------------------+------------------------------+----------+
6 rows in set
| username: db_user | Original post link

I have version 4.0.14, the documentation should be for the current version 4, maybe your version is a bit lower.

| username: 裤衩儿飞上天 | Original post link

The 3.0 documentation already includes it.

I also can’t find out which version it started from. :dizzy_face:

| username: db_user | Original post link

Indeed, I couldn’t find it. It might be an issue with the show config command. If you have a test environment, you could try adding this parameter in a lower version to see.