Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug] Variables mismatch annotation #8820

Copy link
Copy link
@mawen12

Description

@mawen12
Issue body actions

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

Not runtime.

RocketMQ version

branch: develop

JDK Version

No response

Describe the Bug

The class ResetOffsetRequestHeader set wrong @RocketMQResource value in fields topic, group.

public class ResetOffsetRequestHeader extends TopicQueueRequestHeader {

    @CFNotNull
    @RocketMQResource(ResourceType.GROUP) // annotation value mismatch topic
    private String topic;

    @CFNotNull
    @RocketMQResource(ResourceType.TOPIC) // annotation value mismatch group
    private String group;

    ...
}

Steps to Reproduce

In org.apache.rocketmq.remoting.protocol.header.ResetOffsetRequestHeader source file.

What Did You Expect to See?

Use correct annotion value in variables.

What Did You See Instead?

Use correct annotion value in variables.

Additional Context

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.