Skip to content

[Bug] JVM crash when executing shutdown if useSingleRocksDBForAllConfigs is true #9875

@RongtongJin

Description

@RongtongJin

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

All platform

RocketMQ version

develop

JDK Version

all version

Describe the Bug

When multiple RocksDB instances are merged (shared, useSingleRocksDBForAllConfigs is true), if one of them is closed, subsequent calls to persist() by other configurations' RocksDBConsumerOffsetManager will trigger a JVM crash.

Steps to Reproduce

Execute shutdown with the version built from the latest code.

Image

What Did You Expect to See?

shutdown gracefully

What Did You See Instead?

call shutdown then jvm crash

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions