• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SOHU-Co / kafka-node / 928 / 7
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 14 Jun 2018 05:06PM UTC
Files 54
Run time 11min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jun 2018 05:01PM UTC coverage: 88.061% (-0.02%) from 88.085%
KAFKA_VERSION=0.11

cron

travis-ci

Xiaoxin Lu
Add create topics support (#958)

* Add create topics support

Adds support for sending a create topics request as a real protocol request. This supports specifying number of partitions and replication factor.
Explicit replica assignments and config entries are left out for now.

A create topic request must be sent to the controller. To find the current controller, this also adds a version 1 metadata request, which includes the controller Id in the response.

* Handle different error message in kafka versions

Error message changes a bit depending on version. This relaxes the assertion a bit.

* Remove metadata api support version

metadata v1 is not supported until 0.10

* Return error if controller cannot be found

Happens when cluster is is running version less than 0.10

* Parse partition metadata correctly for v1

The order resulted in isInternal being used as the number of partitions during decoding.

* Address PR feedback

- Add createTopics alias on admin client
- Remove V2 suffix, replacing old versions of createTopics and loadMetadataForTopics on KafkaClient
- Add loadMetadata function
- Use supported API to resolve metadata request version

* Encode null value properly

* Forward old createTopics calls to previous impl

* Update README with new createTopics function

* Update cached metadata in getController

* Remove unused sandbox

* Add additional assertion of createTopic test

Now fetches metadata again to verify topics were created with requested partition count and replication factor.

* Add sendControllerRequest method

Wraps the provided callback with retry logic if NotController error was returned.
In this case the cached controller is cleared and it is fetched again by getting the latest metadata.

1170 of 1558 branches covered (75.1%)

3651 of 4146 relevant lines covered (88.06%)

6472.96 hits per line

Source Files on job 928.7 (KAFKA_VERSION=0.11)
  • Tree
  • List 0
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 841
  • Travis Job 928.7
  • a3653ba2 on github
  • Prev Job for KAFKA_VERSION=0.11 on master (#927.9)
  • Next Job for KAFKA_VERSION=0.11 on master (#929.9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc