Commit Graph

4429 Commits

Author SHA1 Message Date
Colin P. Mccabe a133e69b45 KAFKA-6247; Install Kibosh on Vagrant and fix release downloads in Docker
Fix an omission where Kibosh was not getting installed on Vagrant
instances running in AWS.

Fix an issue where the Dockerfile was unable to download old Apache
Kafka releases.  See the discussion on KAFKA-6233.

Author: Colin P. Mccabe <cmccabe@confluent.io>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #4240 from cmccabe/KAFKA-6247
2017-11-21 14:39:14 +00:00
Ewen Cheslack-Postava f0276f5ca2 MINOR: Log unexpected exceptions in Connect REST calls that generate 500s at a higher log level
The ConnectExceptionMapper was originally intended to handle ConnectException errors for some expected cases where we just want to always convert them to a certain response and the ExceptionMapper was the easiest way to do that uniformly across the API. However, in the case that it's not an expected subclass, we should log the information at the error level so the user can track down the cause of the error.

This is only an initial improvement. We should probably also add a more general ExceptionMapper to handle other exceptions we may not have caught and converted to ConnectException.

Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Randall Hauch <rhauch@gmail.com>, Jason Gustafson <jason@confluent.io>

Closes #4227 from ewencp/better-connect-error-logging
2017-11-20 20:29:33 -08:00
Guozhang Wang e3c32391f9 KAFKA-6170; KIP-220 Part 1: Add AdminClient to Streams
1. Add The AdminClient into Kafka Streams, which is shared among all the threads.
2. Add ADMIN_PREFIX to StreamsConfig.
3. Also made a few tweaks on the metrics of the AdminClient, which is slightly different from the StreamsKafkaClient (note these changes will not be reflected in this PR but only take place when we eventually replace StreamsKafkaClient):
3.1. "clientId" tag will be set as "clientId-admin": in StreamsKafkaClient it is whatever user sets, and hence could even be null.
3.2. "groupPrefix" will be set as "admin-client": in StreamsKafkaClient it will be "kafka-client".

So the metrics from `StreamsKafkaClient` to `AdminClient` would be changed from

`kafka.admin.client:type=kafka-client-metrics,client-id=`

to

`kafka.admin.client:type=admin-client-metrics,client-id=myApp-UUID-admin`

Author: Guozhang Wang <wangguoz@gmail.com>

Reviewers: Damian Guy <damian.guy@gmail.com>, Matthias J. Sax <matthias@confluent.io>, Ted Yu <yuzhihong@gmail.com>

Closes #4211 from guozhangwang/K6170-admin-client
2017-11-20 11:25:22 -08:00
Sagar Chavan 83b8cf96f9 KAFKA-6233: Removed unnecessary null check in StringSerializer
Removed unnecessary null check
if (encodingValue != null && encodingValue instanceof String)
null instanceof String returns false hence replaced the check with
if (encodingValue instanceof String)

Author: Sagar Chavan <sagar.chavan3172@gmail.com>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #4232 from sagarchavan3172/trunk
2017-11-19 10:54:50 -08:00
Matthias J. Sax 40fd9fa981 KAFKA-6122: Global Consumer should handle TimeoutException
Implements KIP-224:
- adding new StreamsConfig `retires`
- uses `retires` and `retry.backoff.ms` to handle TimeoutException in GlobalStateManager
- adds two new tests to trigger TimeoutException in global consumer
- some minor code cleanup to reduce number of parameters we need to pass around

Author: Matthias J. Sax <matthias@confluent.io>

Reviewers: Damian Guy <damian.guy@gmail.com>, Guozhang Wang <wangguoz@gmail.com>

Closes #4206 from mjsax/kafka-6122-global-consumer-timeout-exception
2017-11-18 14:54:01 -08:00
Matthias J. Sax b604540fbd MINOR: improve StateStore JavaDocs
Clarify that state directory must use `storeName`

Author: Matthias J. Sax <matthias@confluent.io>

Reviewers: Bill Bejeck <bill@confluent.io>, Guozhang Wang <wangguoz@gmail.com>

Closes #4228 from mjsax/minor-state-store-javadoc
2017-11-17 11:49:09 -08:00
tedyu 406071c2b5 KAFKA-6046; DeleteRecordsRequest to a follower should return NOT_LEADER
Tested with DeleteRecordsRequestTest by Tom Bentley, which is part of
a separate pull request.

Author: tedyu <yuzhihong@gmail.com>

Reviewers: Tom Bentley <tbentley@redhat.com>, Ismael Juma <ismael@juma.me.uk>

Closes #4052 from tedyu/trunk
2017-11-17 15:18:48 +00:00
ppatierno ad71b9d068 MINOR: Avoiding attempt to connect to Zookeeper on closing consumer for deleting random group.id with the new one
With the new consumer the "/consumers" path on Zookeeper isn't filled by consumer info. On closing the new consumer, there is some code that is useless to execute for trying to connect to Zookeeper (but the URL is null).

Author: ppatierno <ppatierno@live.com>
Author: Paolo Patierno <ppatierno@live.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #3301 from ppatierno/old-consumer-delete-groupid
2017-11-17 12:20:33 +00:00
sachinbhalekar 0026121543 KAFKA-6218: Optimize condition in if statement to reduce the number of comparisons
Changed the condition in **if** statement
**(schema.name() == null || !(schema.name().equals(LOGICAL_NAME)))** which
requires two comparisons in worst case with
**(!LOGICAL_NAME.equals(schema.name()))**  which requires single comparison
in all cases and _avoids null pointer exception.
![kafka_optimize_if](https://user-images.githubusercontent.com/32234013/32872271-afe0b954-ca3a-11e7-838d-6a3bc416b807.JPG)
_

Author: sachinbhalekar <sachinbansibhalekar@gmail.com>
Author: sachinbhalekar <32234013+sachinbhalekar@users.noreply.github.com>

Reviewers: Randall Hauch <rhauch@gmail.com>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #4225 from sachinbhalekar/trunk
2017-11-16 15:04:27 -08:00
Colin P. Mccabe d9cbc6b1a2 KAFKA-5811; Add Kibosh integration for Trogdor and Ducktape
For ducktape: add Kibosh to the testing Dockerfile.
Create files_unreadable_fault_spec.py.

For trogdor: create FilesUnreadableFaultSpec.java.
Add a unit test of using the Kibosh service.

Author: Colin P. Mccabe <cmccabe@confluent.io>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4195 from cmccabe/KAFKA-5811
2017-11-16 17:59:24 +00:00
Paolo Patierno 53c5ccb334 KAFKA-5925: Adding records deletion operation to the new Admin Client API
This is the PR related to the [KIP-204](https://cwiki.apache.org/confluence/display/KAFKA/KIP-204+%3A+Adding+records+deletion+operation+to+the+new+Admin+Client+API) in order to add the `deleteRecords` operation to the new Admin Client (it's already available in the "legacy" one).
Other than that, unit test and integration tests are added as well (such integration tests come from the "legacy" integration tests in order to test the new addition in the same way as the "legacy" one).

Author: Paolo Patierno <ppatierno@live.com>

Reviewers: Colin P. Mccabe <cmccabe@confluent.io>, Guozhang Wang <wangguoz@gmail.com>

Closes #4132 from ppatierno/kafka-5925
2017-11-16 09:52:33 -08:00
Matthias J. Sax 539c4d53f8 KAFKA-6167: Timestamp on streams directory contains a colon, which is an illegal character
- change segment delimiter to .
 - added upgrade path
 - added test for old and new upgrade path

Author: Matthias J. Sax <matthias@confluent.io>

Reviewers: Damian Guy <damian.guy@gmail.com>, Guozhang Wang <wangguoz@gmail.com>

Closes #4210 from mjsax/kafka-6167-windows-issue
2017-11-15 17:43:35 -08:00
Mickael Maison 9eabcc20d2 MINOR: Updated KafkaZkClient.pathExists() to use ExistsRequest
rather than using GetDataRequest

Author: Mickael Maison <mickael.maison@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #4217 from mimaison/pathExists
2017-11-16 01:41:50 +00:00
Ismael Juma cdcbd9283d KAFKA-6210; IllegalArgumentException if 1.0.0 is used for inter.broker.protocol.version or log.message.format.version
Added unit test for ApiVersion and testApiVersions from
Scala to Java.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4220 from ijuma/kafka-6210-iae-if-1.0.0-inter-broker-protocol-version
2017-11-16 01:21:11 +00:00
Manjula K ca7f3dab04 MINOR: Adding secondary nav to Streams webpage
Added secondary navigation to Streams sub-pages:
 - quickstart.html
 - core-concepts.html
 - developer-guide.html
 - tutorial.html

Author: Manjula K <manjula@kafka-summit.org>

Reviewers: Joel Hamill <joel-hamill@users.noreply.github.com>, Guozhang Wang <wangguoz@gmail.com>

Closes #4222 from manjuapu/streams-nav
2017-11-15 14:43:11 -08:00
Guozhang Wang dc2322a272 MINOR: Not enough replica exception should never happen for delete records
When reviewing https://github.com/apache/kafka/pull/4132, I felt that NOT_ENOUGH_REPLICAS should never happen actually. Hence proposing to remove it from the listed error code as well in the broker-side capture clause.

Testing added in 4132 should have been sufficient.

Author: Guozhang Wang <wangguoz@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Dong Lin <lindong28@gmail.com>

Closes #4208 from guozhangwang/KMinor-delete-records-error-code
2017-11-15 14:36:05 -08:00
Joel Hamill 48f5f048bc MINOR: kafka-site introduction section improvements
*Clarify multi-tenant support, geo-replication, and some grammar fixes.*

Author: Joel Hamill <joel-hamill@users.noreply.github.com>

Reviewers: GUozhang Wang

Closes #4212 from joel-hamill/intro-cleanup
2017-11-15 14:32:00 -08:00
Ewen Cheslack-Postava 54371e63d3 MINOR: Make PushHttpMetricsReporter API compatible with releases back to 0.8.2.2
This is follow up to #4072 which added the PushHttpMetricsReporter and converted some services to use it. We somehow missed some compatibility issues that made the ProducerPerformance tool fail when using a newer tools jar with older common/clients jar, which we do with some system tests so we have all the features we need in the tool but can build compatibility tests for older releases.

This just adjusts some API usage to make the tool compatible with all previous releases.

I have a full run of the tests starting [here](https://jenkins.confluent.io/job/system-test-kafka-branch-builder/1122/)

Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #4214 from ewencp/fix-compatibility-sanity-check-tests
2017-11-15 13:27:58 -08:00
Matthias J. Sax 1756a22f79 KAFKA-6215: fix transient failures in KafkaStreamsTest
- set streams state.dir to test-dir (default /tmp is not reliable)

Author: Matthias J. Sax <matthias@confluent.io>

Reviewers: Damian Guy <damian.guy@gmail.com>, Guozhang Wang <wangguoz@gmail.com>, Ted Yu <yuzhihong@gmail.com>

Closes #4221 from mjsax/minor-fix-instable-tests
2017-11-15 11:40:39 -08:00
Mickael Maison f300480f88 MINOR: Use match instead of if/else in KafkaZkClient
Also use ZkVersion.NoVersion instead of -1.

Author: Mickael Maison <mickael.maison@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #4196 from mimaison/zkclient_refactor
2017-11-15 13:37:07 +00:00
Rajini Sivaram 3cfbb25c61 MINOR: Handle error metrics removal during shutdown
Author: Rajini Sivaram <rajinisivaram@googlemail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #4187 from rajinisivaram/MINOR-metrics-cleanup
2017-11-15 09:54:42 +00:00
Ismael Juma d04daf570e MINOR: Exclude Committer Checklist section from commit message
It seems like it's sufficient to be able to refer to it in the PR.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4202 from ijuma/exclude-committer-checklist-when-merging
2017-11-10 12:34:21 +00:00
Ismael Juma 50a44ee6a5 MINOR: Exclude PULL_REQUEST_TEMPLATE.md from rat checks
Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4201 from ijuma/exclude-pull-request-template-from-rat
2017-11-10 10:41:28 +00:00
Ismael Juma b9039bbd4b MINOR: Use Scala Future in CoreUtils test
Also rename UtilsTest to CoreUtilsTest and note
that `getOrElseUpdate` has the right behaviour
in Scala 2.12.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4142 from ijuma/use-scala-futures-in-core-utils-test
2017-11-10 09:44:43 +00:00
Ismael Juma 14e3ed048c MINOR: Add pull request template
Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Jiangjie (Becket) Qin <becket.qin@gmail.com>, Apurva Mehta <apurva@confluent.io>, Guozhang Wang <wangguoz@gmail.com>

Closes #4174 from ijuma/pull-request-template
2017-11-10 08:35:40 +00:00
Guozhang Wang 84ddff6792 HOTFIX: GlobalStateManagerImpl in trunk has renamed the consumer field 2017-11-09 22:43:59 -08:00
Dong Lin 12af521c48 KAFKA-6175; AbstractIndex should cache index file to avoid unnecessary disk access during resize()
This patch also adds the a test for test the log deletion after close.

Author: Dong Lin <lindong28@gmail.com>

Reviewers: Jiangjie Qin <becket.qin@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes #4179 from lindong28/KAFKA-6175
2017-11-09 22:08:03 -08:00
Alex Good 66cab2f7fb KAFKA-6190: Use consumer.position() instead of record.offset() to advance in GlobalKTable restoration to avoid transactional control messages
Calculate offset using consumer.position() in GlobalStateManagerImp#restoreState

Author: Alex Good <alexjsgood@gmail.com>

Reviewers: Matthias J. Sax <matthias@confluent.io>, Damian Guy <damian.guy@gmail.com>, Guozhang Wang <wangguoz@gmail.com>

Closes #4197 from alexjg/0.11.0

(cherry picked from commit 1321d89484)
Signed-off-by: Guozhang Wang <wangguoz@gmail.com>
2017-11-09 15:35:00 -08:00
Onur Karaman 564d7b365d MINOR: make controller helper methods private
Author: Onur Karaman <okaraman@linkedin.com>

Reviewers: Viktor Somogyi <viktorsomogyi@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes #4198 from onurkaraman/make-controller-helper-methods-private
2017-11-09 13:51:32 -08:00
Ismael Juma 3e86161b84 MINOR: Update to Scala 2.11.12 (part 2)
Missed a few places in the previous commit.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4200 from ijuma/scala-2.11.12-part2
2017-11-09 18:24:48 +00:00
Guozhang Wang e23de3caee MINOR: Remove FanoutIntegrationTest.java
This test has been completely subsumed by the coverage of reset integration test, and hence can be removed.

Author: Guozhang Wang <wangguoz@gmail.com>

Reviewers: Damian Guy <damian.guy@gmail.com>, Matthias J. Sax <matthias@confluent.io>

Closes #4184 from guozhangwang/KMinor-remove-fanout-integration
2017-11-09 09:46:47 -08:00
Ewen Cheslack-Postava 718dda1144 MINOR: Add HttpMetricsReporter for system tests
Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Apurva Mehta <apurva@confluent.io>, Ismael Juma <ismael@juma.me.uk>

Closes #4072 from ewencp/http-metrics
2017-11-09 09:42:46 -08:00
Rajini Sivaram 0653a895f5 KAFKA-6185; Remove channels from explictlyMutedChannels set when closed
This memory leak could eventually lead to an OutOfMemoryError. This
was particularly likely in case of down conversions as the leaked
channels would hold on to the record batch (which is only loaded
into the heap in case of down conversions).

Author: Rajini Sivaram <rajinisivaram@googlemail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #4193 from rajinisivaram/KAFKA-6185-oom
2017-11-09 16:03:24 +00:00
Rajini Sivaram fe3171844b KAFKA-6164; Shutdown quota managers if other components fail to start
Author: Rajini Sivaram <rajinisivaram@googlemail.com>

Reviewers: Viktor Somogyi <viktorsomogyi@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes #4181 from rajinisivaram/KAFKA-6164
2017-11-09 15:17:52 +00:00
Ismael Juma 4a55818bbf MINOR: Update Scala 2.11 to 2.11.12
The main change is Java 9 support.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4185 from ijuma/scala-2.11.12
2017-11-09 14:23:54 +00:00
Onur Karaman fef80c8636 KAFKA-6146; minimize the number of triggers enqueuing PreferredReplicaLeaderElection events
We currently enqueue a PreferredReplicaLeaderElection controller event in PreferredReplicaElectionHandler's handleCreation, handleDeletion, and handleDataChange. We can just enqueue the event upon znode creation and after preferred replica leader election completes. The processing of this latter enqueue will register the exist watch on PreferredReplicaElectionZNode and perform any pending preferred replica leader election that may have occurred between completion and registration.

Author: Onur Karaman <okaraman@linkedin.com>

Reviewers: Jun Rao <junrao@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes #4189 from onurkaraman/KAFKA-6146
2017-11-09 00:57:15 +00:00
Guozhang Wang ee1aaa091f KAFKA-6179: Clear min timestamp tracker upon partition queue cleanup
Author: Guozhang Wang <wangguoz@gmail.com>

Reviewers: Matthias J. Sax <matthias@confluent.io>, Bill Bejeck <bill@confluent.io>, Damian Guy <damian.guy@gmail.com>

Closes #4186 from guozhangwang/K6179-cleanup-timestamp-tracker-on-clear
2017-11-08 15:07:14 -08:00
Manikumar Reddy 9b44c3e7f8 KAFKA-5645; Use async ZookeeperClient in SimpleAclAuthorizer
Author: Manikumar Reddy <manikumar.reddy@gmail.com>

Reviewers: Onur Karaman <okaraman@linkedin.com>, Jun Rao <junrao@gmail.com>

Closes #4155 from omkreddy/KAFKA-5645-ZK-AUTHORIZER-VERSION2
2017-11-08 09:34:43 -08:00
Ismael Juma 3735a6ca8b MINOR: Eliminate unnecessary Topic(And)Partition allocations in Controller
- Eliminated all the unnecessary allocations of `TopicPartition` and
`TopicAndPartition` in the Controller. We now use the former
in the Controller (bringing it inline with the rest of the non legacy
code).
- Fixed missed `Listener` -> `Handler` renames for companion
objects.
- More String.format -> String interpolation conversions (the former
is roughly 5 times more expensive).
- Some other minor clean-ups.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Onur Karaman <okaraman@linkedin.com>, Viktor Somogyi <viktorsomogyi@gmail.com>

Closes #4152 from ijuma/controller-topic-partition-and-other-clean-ups
2017-11-07 09:55:44 +00:00
Onur Karaman 58138126ce KAFKA-5894; add the notion of max inflight requests to async ZooKeeperClient
ZooKeeperClient is a zookeeper client that encourages pipelined requests to zookeeper. We want to add the notion of max inflight requests to the client for several reasons:
1. to bound memory overhead associated with async requests on the client.
2. to not overwhelm the zookeeper ensemble with a burst of requests.

Author: Onur Karaman <okaraman@linkedin.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Ted Yu <yuzhihong@gmail.com>, Jun Rao <junrao@gmail.com>, Manikumar Reddy <manikumar.reddy@gmail.com>

Closes #3860 from onurkaraman/KAFKA-5894
2017-11-06 16:46:31 -08:00
Ismael Juma 6f96d7f173 MINOR: PartitionReassignmentHandler should only generate event when znode is created
We only need to generate the event when the znode is created or deleted.
In the former case, we start the reassignment while in the latter we
re-register the watcher (necessary for the Controller to detect future
reassignments).

During Controller failover, we restart the reassignment without generating
an event so it's not affected by this change.

Also use the Controller cache (`ControllerContext.partitionsBeingReassigned`)
in `removePartitionFromReassignedPartitions` instead of reloading the
data from ZooKeeper.

Overall, we would previously load the reassignment data from ZooKeeper twice
per completed partition whereas now as don't do it at all. As an example,
say there were 30k partitions being reassigned, these changes save the
allocation of 900 million `TopicAndPartition` and `Seq[Int]` (replicas)
instances (could easily amount to 20-40 GB depending on the topic name
length). This matters most in cases where the partitions being reassigned
don't have much data allowing the reassignment to complete reasonably
fast for many of the partitions.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Jun Rao <junrao@gmail.com>, Onur Karaman <okaraman@linkedin.com>

Closes #4143 from ijuma/partition-reassignment-ignore-handle-deletion-and-data-change
2017-11-06 21:37:55 +00:00
Matthias J. Sax 2b5a21395c KAFKA-6120: RecordCollector should not retry sending
Author: Matthias J. Sax <matthias@confluent.io>

Reviewers: Damian Guy <damian.guy@gmail.com>, Guozhang Wang <wangguoz@gmail.com>

Closes #4148 from mjsax/kafka-6120-recordCollector
2017-11-06 10:50:57 -08:00
Matthias J. Sax d637ad0daf KAFKA-6115: TaskManager should be type aware
- remove type specific methods from Task interface
 - add generics to preserve task type
 - add sub classes for different task types

Author: Matthias J. Sax <matthias@confluent.io>

Reviewers: Bill Bejeck <bill@confluent.io>, Damian Guy <damian.guy@gmail.com>, Guozhang Wang <wangguoz@gmail.com>

Closes #4129 from mjsax/kafka-6115-taskManager-should-be-type-aware
2017-11-06 10:26:52 -08:00
Dong Lin 0c895706e8 KAFKA-6172; Cache lastEntry in TimeIndex to avoid unnecessary disk access
Author: Dong Lin <lindong28@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Jiangjie Qin <becket.qin@gmail.com>

Closes #4177 from lindong28/KAFKA-6172
2017-11-06 09:28:29 -08:00
huxihx 7672e9ec3d KAFKA-6156; Metric tag values with colons must be sanitized
Windows directory paths often contain colons which are not allowed in
yammer metrics. Metric tag values with special characters must be
quoted.

Author: huxihx <huxi_2b@hotmail.com>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #4173 from huxihx/KAFKA-6156
2017-11-06 15:59:23 +00:00
Adem Efe Gencer 86062e9a78 KAFKA-6157; Fix repeated words words in JavaDoc and comments.
Author: Adem Efe Gencer <agencer@linkedin.com>

Reviewers: Jiangjie Qin <becket.qin@gmail.com>

Closes #4170 from efeg/bug/typoFix
2017-11-05 18:00:43 -08:00
Guozhang Wang 520b313628 HOTFIX: Add missing template ref in upgrade section 2017-11-03 10:10:35 -07:00
Guozhang Wang 487436b1a4 MINOR: Update docs for new version
1. Update the Streams hello world examples with the new API.
2. Update the version references in various places.
3. Update version templates to 1.1.x.

Author: Guozhang Wang <wangguoz@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Damian Guy <damian.guy@gmail.com>, Derrick Or <derrickor@gmail.com>

Closes #4169 from guozhangwang/KMINOR-streams-docs
2017-11-03 08:51:44 -07:00
Colin P. Mccabe 4fac83ba1f KAFKA-6060; Add workload generation capabilities to Trogdor
Previously, Trogdor only handled "Faults."  Now, Trogdor can handle
"Tasks" which may be either faults, or workloads to execute in the
background.

The Agent and Coordinator have been refactored from a
mutexes-and-condition-variables paradigm into a message passing
paradigm.  No locks are necessary, because only one thread can access
the task state or worker state.  This makes them a lot easier to reason
about.

The MockTime class can now handle mocking deferred message passing
(adding a message to an ExecutorService with a delay).  I added a
MockTimeTest.

MiniTrogdorCluster now starts up Agent and Coordinator classes in
paralle in order to minimize junit test time.

RPC messages now inherit from a common Message.java class.  This class
handles implementing serialization, equals, hashCode, etc.

Remove FaultSet, since it is no longer necessary.

Previously, if CoordinatorClient or AgentClient hit a networking
problem, they would throw an exception.  They now retry several times
before giving up.  Additionally, the REST RPCs to the Coordinator and
Agent have been changed to be idempotent.  If a response is lost, and
the request is resent, no harm will be done.

Author: Colin P. Mccabe <cmccabe@confluent.io>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>, Ismael Juma <ismael@juma.me.uk>

Closes #4073 from cmccabe/KAFKA-6060
2017-11-03 09:37:29 +00:00
Bill Bejeck e4208b1d5f MINOR: update producer client request timeout in system test
Author: Bill Bejeck <bill@confluent.io>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #4168 from bbejeck/MINOR_update_streams_produer_timeout_in_system_test
2017-11-02 17:53:15 -07:00