HTTP client treats a consumer group as a plain consumer

Open Beginner friendly
#4,408 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@mohitduhan19 is already working on this.

Since Oct 15, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
api, backend

Research direction

Start in core/sdk/src/http/consumer_offsets.rs and read refuse_external_group from #4392, which the issue names as the precedent. Trace the HTTP client paths for store_consumer_offset, get_consumer_offset, delete_consumer_offset and poll_messages; done means each refuses kinds other than ConsumerKind::Consumer with FeatureUnavailable, rather than silently treating a group as a plain consumer.

Written by the indexing model from the issue text.

Description

bug rust server
Bug description

The REST API cannot name a consumer kind. Consumer.kind is #[serde(skip)], and the server builds a plain consumer (Consumer::new) from an HTTP request. An HTTP client can pass Consumer::group(..) to store_consumer_offset, get_consumer_offset, delete_consumer_offset or poll_messages. The call then acts on the plain consumer with the group's id, and no error tells the caller. Join and leave already return FeatureUnavailable over HTTP, so a group cannot work there.

Expected: the HTTP client refuses every kind except ConsumerKind::Consumer with FeatureUnavailable, as #4392 does for ConsumerKind::ExternalGroup (refuse_external_group in core/sdk/src/http/consumer_offsets.rs). This changes behavior for an HTTP caller that passes a group today. Raised in the review of #4392.

Affected area / component

Rust SDK, Iggy server

Reproduction
  1. Build an IggyClient with the HTTP transport.
  2. Send 10 messages to partition 0 of a topic.
  3. Store offset 5 with Consumer::group(Identifier::numeric(1)?) on partition 0.
  4. Read the offset with Consumer::new(Identifier::numeric(1)?). It returns 5.
Dominant language
Rust
Stars
5.3k
Forks
548
Avg merge
2d 20h
Merged PRs (30d)
194

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/iggy

All issues in apache/iggy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.