Java SDK: expose deleteConsumerOffset

Open
#4,330 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@vansh-nagar is already working on this.

Since Oct 3, 2026.

  • #4333 by @theluckystrike — closed without merging
  • #4338 by @theluckystrike — closed without merging
  • #4395 by @vansh-nagar — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
api

Research direction

Start with serde/CommandCode.java and the existing getConsumerOffset methods in the blocking and async ConsumerOffsetsClient interfaces and TCP/HTTP clients. Add the API and implementations following getConsumerOffset, then update ConsumerOffsetsClientBaseTest.java to store, delete, and verify an empty offset. Done means the base test passes for both TCP and HTTP clients.

Written by the indexing model from the issue text.

Description

good first issue java

The Rust client has ConsumerOffsetClient::delete_consumer_offset (core/common/src/traits/consumer_offset_client.rs). The Java SDK has storeConsumerOffset and getConsumerOffset, but not delete.

What to do

  • Add DELETE(122) to the ConsumerOffset enum in serde/CommandCode.java. The VSR operation is already mapped in VsrOperation.java.
  • Add deleteConsumerOffset to the blocking and async ConsumerOffsetsClient interfaces, with the same arguments as getConsumerOffset and no return value.
  • Implement it in the TCP clients (client/async/tcp/ConsumerOffsetsTcpClient.java, client/blocking/tcp/ConsumerOffsetsTcpClient.java) and the HTTP client (client/blocking/http/ConsumerOffsetsHttpClient.java), following getConsumerOffset.
  • Add a test to ConsumerOffsetsClientBaseTest.java that stores an offset, deletes it, and checks that getConsumerOffset then returns empty. The base test runs for both TCP and HTTP.

Done when

The new test passes for both the TCP and HTTP clients.

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.