[BUG]storage_min_left_capacity_bytes default value has integer overflow #19943

This commit is contained in:
Long Zhao
2023-05-29 19:50:31 +08:00
committed by GitHub
parent d1d0d9e5e8
commit d76be1315f

View File

@ -772,7 +772,7 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = true)
public static int storage_high_watermark_usage_percent = 85;
@ConfField(mutable = true, masterOnly = true)
public static long storage_min_left_capacity_bytes = 2 * 1024 * 1024 * 1024; // 2G
public static long storage_min_left_capacity_bytes = 2 * 1024 * 1024 * 1024L; // 2G
/**
* If capacity of disk reach the 'storage_flood_stage_usage_percent' and 'storage_flood_stage_left_capacity_bytes',