Skip to content

retention.ms doesn't take effect on docker image #6676

@hseagle

Description

@hseagle

Version & Environment

Redpanda version: v22.2.5

I'm using the latest redpanda docker image, version number is v22.2.5

after set retention.ms to 1000 and wait for a while, the old message is still kept.

The following is the detail operation.

docker run -e TZ=Asia/Shanghai -d --name=redpanda-1 \
-p 8081:8081 \
-p 8082:8082 \
-p 9092:9092 \
-p 9644:9644 \
vectorized/redpanda:v22.2.5 \
redpanda start \
--overprovisioned \
--smp 3  \
--memory 1G \
--reserve-memory 0M \
--node-id 0 \
--check=false

create a new topic and change the value of retention.ms and log_compaction_interval_ms

docker exec -it redpanda-1 rpk topic create twitch_chat
docker exec -it redpanda-1 rpk topic alter-config --set retention.ms=1000
# set the value for log_compaction_interval_ms to 60000
docker exec -it redpanda-1 rpk cluster config edit

ingest some data into topic twitch_chat and wait for some time, the ingested message is still existed. The behavior is unexpected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions