Skip to content

External Compaction status percentage incorrect in logs #2308

@milleruntime

Description

@milleruntime

The External Compaction processes (Compaction Coordinator and Compactor) report compaction status progress in the logs.

[coordinator.CompactionCoordinator] DEBUG: Compaction status update, id: ECID:024ac5c5-029e-4760-85b0-b7b58d88cadb, timestamp: 1633542296465, state: STARTED, message: Compaction started

But something is wrong with the calculation of the progress percentage as it always reports 0%.

[coordinator.CompactionCoordinator] DEBUG: Compaction status update, id: ECID:024ac5c5-029e-4760-85b0-b7b58d88cadb, timestamp: 1633542317468, state: IN_PROGRESS, message: Compaction in progress, read 3832832 of 5757377 input entries ( 0.0 % ), written 3732480 entries

This is happening in the Compactor as well:

[compactor.Compactor] DEBUG: Updating coordinator with compaction progress: Compaction in progress, read 3815424 of 5759047 input entries ( 0.0 % ), written 3716096 entries.

This is a minor bug but since it is user facing, I made it a blocker for 2.1.

Metadata

Metadata

Assignees

Labels

blockerThis issue blocks any release version labeled on it.bugThis issue has been verified to be a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions