spirit-labs / tektite

Tektite DB
http://www.tektitedb.com
Other
166 stars 22 forks source link

Topic with 0 partitions (should not be created) #240

Open akshat1998 opened 2 weeks ago

akshat1998 commented 2 weeks ago

With tektite cli, topics with 0 partition can be created, whereas there should be >0 partitions.

topic-name:=(topic partitions = 0);

Response for show(topic-name):

stream_name:   topic-name
stream_def:    (topic partitions = 0)
in_schema:     {record_batch: bytes} partitions: 0 mapping_id: _default_
out_schema:    {offset: int, event_time: timestamp, key: bytes, hdrs: bytes, val: bytes} partitions: 0 mapping_id: _default_
child_streams: [none]

Moreover, when producing to such topics (using kafkaJS), results in error: [Producer] Failed to send messages: Producing to topic without metadata

purplefox commented 2 weeks ago

Thanks. Will take a look soon.

akshat1998 commented 2 weeks ago

@purplefox , i can take this up, with this one

purplefox commented 2 weeks ago

Sure! Go for it. Any questions, pls ask on slack or here :)