Status

Current state: Under Discussion

Discussion thread: here

JIRA: KAFKA-13285

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

This KIP is a 3rd attempt to bring consistency and testability to the Admin client's *Result classes. It follows two KIPs which were not accepted:

The proposal this time is to establish the following convention/pattern for the instantiation of Result classes:

It is also proposed to:

Public Interfaces


/**
* Returns a new KafkaFuture that is already failed with the given exception.
*/
public static <U> KafkaFuture<U> failedFuture(Throwable cause)

Proposed Changes

Per public interfaces section.

Compatibility, Deprecation, and Migration Plan

This change is source and binary compatible with previous releases.

Rejected Alternatives