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 8896D200BCA for ; Mon, 21 Nov 2016 11:30:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 882D8160AEC; Mon, 21 Nov 2016 10:30:00 +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 D6BCF160B19 for ; Mon, 21 Nov 2016 11:29:59 +0100 (CET) Received: (qmail 68630 invoked by uid 500); 21 Nov 2016 10:29:58 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 68272 invoked by uid 99); 21 Nov 2016 10:29:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 10:29:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 880712C4C70 for ; Mon, 21 Nov 2016 10:29:58 +0000 (UTC) Date: Mon, 21 Nov 2016 10:29:58 +0000 (UTC) From: "Mark de Jong (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (KAFKA-4425) Topic created with CreateTopic command, does not list partitions in metadata MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 21 Nov 2016 10:30:00 -0000 [ https://issues.apache.org/jira/browse/KAFKA-4425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15683132#comment-15683132 ] Mark de Jong edited comment on KAFKA-4425 at 11/21/16 10:29 AM: ---------------------------------------------------------------- It seems I've solved the issue. My codec for booleans was wrong. It seems it is encoded as a int8, but I assumed that it was a bit (0 | 1). Contacting the controller about metadata is enough :-) It was not listed a the primitive type section in the docs: https://kafka.apache.org/protocol.html was (Author: fristi): It seems I've solved the issue. My codec for booleans was wrong. It seems it is encoded as a int8, but I assumed that it was a bit (0 | 1). Contacting the controller about metadata is enough :-) > Topic created with CreateTopic command, does not list partitions in metadata > ---------------------------------------------------------------------------- > > Key: KAFKA-4425 > URL: https://issues.apache.org/jira/browse/KAFKA-4425 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.10.1.0 > Reporter: Mark de Jong > > With the release of Kafka 0.10.10 there are now commands to delete and create topics via the TCP protocol see (KIP 4 and KAFKA-2945) > I've implemented this myself in my own driver. > When I send the following command to the current controller > "TopicDescriptor(topic = topic, nrPartitions = Some(3), replicationFactor = Some(1), replicaAssignment = Seq.empty, config = Map())" > I'll get back a response with NoError > The server says this on the command line: > [2016-11-20 17:54:19,599] INFO Topic creation {"version":1,"partitions":{"2":[1003],"1":[1001],"0":[1002]}} (kafka.admin.AdminUtils$) > [2016-11-20 17:54:19,765] INFO [ReplicaFetcherManager on broker 1001] Removed fetcher for partitions test212880282004727-1 (kafka.server.ReplicaFetcherManager) > [2016-11-20 17:54:19,789] INFO Completed load of log test212880282004727-1 with 1 log segments and log end offset 0 in 17 ms (kafka.log.Log) > [2016-11-20 17:54:19,791] INFO Created log for partition [test212880282004727,1] in /kafka/kafka-logs-842dcf19f587 with properties {compression.type -> producer, message.format.version -> 0.10.1-IV2, file.delete.delay.ms -> 60000, max.message.bytes -> 1000012, min.compaction.lag.ms -> 0, message.timestamp.type -> CreateTime, min.insync.replicas -> 1, segment.jitter.ms -> 0, preallocate -> false, min.cleanable.dirty.ratio -> 0.5, index.interval.bytes -> 4096, unclean.leader.election.enable -> true, retention.bytes -> -1, delete.retention.ms -> 86400000, cleanup.policy -> [delete], flush.ms -> 9223372036854775807, segment.ms -> 604800000, segment.bytes -> 1073741824, retention.ms -> 604800000, message.timestamp.difference.max.ms -> 9223372036854775807, segment.index.bytes -> 10485760, flush.messages -> 9223372036854775807}. (kafka.log.LogManager) > However when I immediately fetch metadata (v2 call). I either get; > - The topic entry, but with no partitions data in it. > - The topic entry, but with the status NotLeaderForPartition > Is this an bug or I am missing something in my client? -- This message was sent by Atlassian JIRA (v6.3.4#6332)