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

SOHU-Co / kafka-node / 928
89%

Build:
DEFAULT BRANCH: master
Ran 14 Jun 2018 05:01PM UTC
Jobs 9
Files 54
Run time 68min
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

pending completion
928

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.

1179 of 1558 branches covered (75.67%)

3668 of 4146 relevant lines covered (88.47%)

58311.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 928.1 (KAFKA_VERSION=0.9) 14 Jun 2018 05:01PM UTC 0
85.91
Travis Job 928.1
2 928.2 (KAFKA_VERSION=0.9) 14 Jun 2018 05:03PM UTC 0
85.89
Travis Job 928.2
3 928.3 (KAFKA_VERSION=0.9) 14 Jun 2018 05:02PM UTC 0
85.89
Travis Job 928.3
4 928.4 (KAFKA_VERSION=0.10) 14 Jun 2018 05:01PM UTC 0
88.06
Travis Job 928.4
5 928.5 (KAFKA_VERSION=0.10) 14 Jun 2018 05:01PM UTC 0
88.06
Travis Job 928.5
6 928.6 (KAFKA_VERSION=0.10) 14 Jun 2018 05:06PM UTC 0
88.08
Travis Job 928.6
7 928.7 (KAFKA_VERSION=0.11) 14 Jun 2018 05:06PM UTC 0
88.06
Travis Job 928.7
8 928.8 (KAFKA_VERSION=0.11) 14 Jun 2018 05:06PM UTC 0
88.06
Travis Job 928.8
9 928.9 (KAFKA_VERSION=0.11) 14 Jun 2018 05:07PM UTC 0
88.06
Travis Job 928.9
Source Files on build 928
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #928
  • a3653ba2 on github
  • Prev Build on master (#927)
  • Next Build on master (#929)
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