Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EC503200CC9 for ; Mon, 17 Jul 2017 17:55:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA8A8161FCA; Mon, 17 Jul 2017 15:55:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D79F161FC5 for ; Mon, 17 Jul 2017 17:55:09 +0200 (CEST) Received: (qmail 56601 invoked by uid 500); 17 Jul 2017 15:55:07 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 56590 invoked by uid 99); 17 Jul 2017 15:55:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2017 15:55:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9CF96180635 for ; Mon, 17 Jul 2017 15:55:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rbQfEY1klhoi for ; Mon, 17 Jul 2017 15:55:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 20B7C5FC5D for ; Mon, 17 Jul 2017 15:55:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DA284E00A3 for ; Mon, 17 Jul 2017 15:55:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7756C24736 for ; Mon, 17 Jul 2017 15:55:00 +0000 (UTC) Date: Mon, 17 Jul 2017 15:55:00 +0000 (UTC) From: "Stevo Slavic (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-5274) Review and improve AdminClient Javadoc for the first release (KIP-117) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Jul 2017 15:55:10 -0000 [ https://issues.apache.org/jira/browse/KAFKA-5274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089993#comment-16089993 ] Stevo Slavic commented on KAFKA-5274: ------------------------------------- Sorry for late feedback, missed that this client was being exposed and included in 0.11. From JavaDoc it's not clear with which exceptions will returned Futures fail/complete in different error cases. E.g. I wanted to migrate logic using old topic deletion in Scala AdminUtils to new Java AdminClient and it's not clear whether future will complete with success or fail with TopicDeletionInProgressException if topic deletion has already been requested. Also, it seems cumbersome to force collections e.g. set of topics to be deleted, and map in response when all I want to do is create single topic or delete single topic. Please overload methods to support single item ops, wrap/reuse boilerplate code internally. Was thinking of using {{all}} instead of {{values}} to avoid dealing with Map when deleting just single topic, but then was not sure what will be exception in failure even if just single delete is issued - will it be some generic exception saying that some of the deletion request failed, and it won't even have any of the exceptions of individual deletion requests, or will the all future on failure include just some exception from any (first) of the failed deletions. In general, are there plans to get away from java.util Future and use [Flow once available in Java 9|http://cs.oswego.edu/pipermail/concurrency-interest/2015-January/013641.html]? Future API in Java as it is now is horrible. What was rational to use Java's Future in client API? I don't see it in KIP-4 wiki. Maybe it's broader decision for all Kafka Java APIs. I'd prefer RxJava implementation and http://www.reactive-streams.org/ interfaces over "standard" Future API anytime in Java 8, even Java itself is going in that direction. > Review and improve AdminClient Javadoc for the first release (KIP-117) > ---------------------------------------------------------------------- > > Key: KAFKA-5274 > URL: https://issues.apache.org/jira/browse/KAFKA-5274 > Project: Kafka > Issue Type: Sub-task > Reporter: Ismael Juma > Assignee: Ismael Juma > Fix For: 0.11.0.0, 0.11.1.0 > > > Once all the AdminClient pieces are in, we should take a pass at the Javadoc and improve it wherever possible. -- This message was sent by Atlassian JIRA (v6.4.14#64029)