Skip to content

In broadcast mode, the instance name is too long and the message cannot be consumed. #417

Closed

Description

@heihaozi

BUG REPORT

  1. Please describe the issue you observed:

Use broadcast mode to consume, consumers will save offset information locally.

When creating the local offset file, the file path defaults to :

/${user.home}/.rocketmq_offset/${consumer client id}/${consumer group name}/offsets.json

Image

The consumer client id defaults to :

${client IP}@${instance name}@${unit name}

Image

Because the instance name is too long, the offset file creation fails, the message cannot be consumed.

  1. Please tell us about your environment:

rocketmq-spring 2.1.1

  1. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):

I am willing to submit a PR!

Activity

  1. added a commit that references this issue on Jan 7, 2022
  2. RongtongJin commented on Jan 7, 2022

    @RongtongJin
    Contributor

    Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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