Commit Graph

129 Commits

Author SHA1 Message Date
Randall Hauch 24d0d3351a KAFKA-7009: Suppress the Reflections log warning messages in system tests
This could be backported to older branches to reduce the extra log warning messages there, too.

Running Connect system tests in this branch builder job: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/1773/

Author: Randall Hauch <rhauch@gmail.com>

Reviewers: Konstantine Karantasis <konstantine@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #5151 from rhauch/kafka-7009

(cherry picked from commit 7a1f555676)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2018-06-12 22:58:29 -07:00
Shikhar Bhushan aa60a92c06 KAFKA-4575: ensure topic created before starting sink for ConnectDistributedTest.test_pause_resume_sink
Otherwise in this test the sink task goes through the pause/resume cycle with 0 assigned partitions, since the default metadata refresh interval is quite long

Author: Shikhar Bhushan <shikhar@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #2313 from shikhar/kafka-4575
2017-03-27 10:07:13 -07:00
Ewen Cheslack-Postava 88db95c573 MINOR: Update ducktape version to 0.5.3
Author: Ewen Cheslack-Postava <me@ewencp.org>

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

Closes #2220 from ewencp/update-ducktape

(cherry picked from commit 39f62ddcec)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-12-06 13:57:52 -08:00
Grant Henke ee6e50024d KAFKA-4157; Transient system test failure in replica_verification_test.test_replica_lags
…t.test_replica_lags

Author: Grant Henke <granthenke@gmail.com>

Reviewers: Ashish Singh <asingh@cloudera.com>, Ismael Juma <ismael@juma.me.uk>

Closes #1849 from granthenke/replica-verification-fix

(cherry picked from commit b5bc1a1caa)
Signed-off-by: Ismael Juma <ismael@juma.me.uk>
2016-09-17 22:48:05 +01:00
Todd Palino afb65688af KAFKA-4050; Allow configuration of the PRNG used for SSL
Add an optional configuration for the SecureRandom PRNG implementation, with the default behavior being the same (use the default implementation in the JDK/JRE).

Author: Todd Palino <Todd Palino>

Reviewers: Grant Henke <granthenke@gmail.com>, Ismael Juma <ismael@juma.me.uk>, Joel Koshy <jjkoshy@gmail.com>, Jiangjie Qin <becket.qin@gmail.com>, Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #1747 from toddpalino/trunk

(cherry picked from commit 104d2154b6)
Signed-off-by: Joel Koshy <jjkoshy@gmail.com>
2016-08-19 11:06:46 -07:00
Ewen Cheslack-Postava a707f573de KAFKA-4037: Make Connect REST API retries aware of 409 CONFLICT errors
Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk>

Closes #1733 from ewencp/rest-api-retries

(cherry picked from commit 59cfa84801)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-08-18 15:30:20 -07:00
Ismael Juma 5852bb0e4b Bump version to 0.10.0.2-SNAPSHOT 2016-08-08 15:48:32 +01:00
Ismael Juma a7a17cdec9 Bump version to 0.10.0.1 2016-08-04 13:05:59 +01:00
Ewen Cheslack-Postava dc93f3bf49 KAFKA-3935; Fix test_restart_failed_task system test for SinkTasks
Fix the test by using a more liberal timeout and forcing more frequent SinkTask.put() calls. Also add some logging to aid future debugging.

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

Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk>

Closes #1663 from ewencp/kafka-3935-fix-restart-system-test

(cherry picked from commit d1546960de)
Signed-off-by: Ismael Juma <ismael@juma.me.uk>
2016-07-26 03:02:13 +01:00
Jason Gustafson 71a598a179 KAFKA-3782: Fix transient failure in connect distributed bounce test
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1650 from hachikuji/KAFKA-3782

(cherry picked from commit f5df13627a)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-07-21 20:09:19 -07:00
Alex Loddengaard 29c3c4ba05 MINOR: bug fixes to ducktape services
Here's a (mostly successful) run with these changes:

http://testing.confluent.io/confluent-kafka-branch-builder-system-test-results/?prefix=2016-06-27--001.1467080884--alexlod--ducktape-fixes--ad85493/

At least one of the failed tests is failing in trunk, too:

http://testing.confluent.io/confluent-kafka-branch-builder-system-test-results/?prefix=2016-06-28--001.1467090978--alexlod--ducktape-fixes--ad85493/

The contribution is my original work and I license the work to the project under the project's open source license.

Author: Alex Loddengaard <alexloddengaard@gmail.com>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ismael Juma <ismael@juma.me.uk>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1566 from alexlod/ducktape-fixes

(cherry picked from commit 7edaa3dd89)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-06-30 21:16:26 -07:00
Jason Gustafson 36f8de3241 KAFKA-3863: System tests covering connector/task failure and restart
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1519 from hachikuji/KAFKA-3863

(cherry picked from commit 36cab7dbdf)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-06-22 17:07:01 -07:00
Gwen Shapira a1838755a2 bumping version of branch from 0.10.0.0-SNAPSHOT to 0.10.0.1-SNAPSHOT, since 0.10.0.0 was released 2016-05-23 11:33:41 -07:00
Gwen Shapira 7615312855 Updating the 0.10.0 branch as we are now officially releasing this RC as Apache Kafka 0.10.0.0
Merge tag '0.10.0.0-rc6' into 0.10.0

Release candidate #7 for Apache Kafka 0.10.0.0
2016-05-23 11:25:09 -07:00
Geoff Anderson 42e96b8b90 MINOR: Bump system test ducktape dependency to 0.5.1
Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1397 from granders/minor-increment-ducktape

(cherry picked from commit 5b5f3ed0f2)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-18 14:48:04 -07:00
Gwen Shapira b8642491e7 Bump version to 0.10.0.0 for a release candidate 2016-05-17 21:24:27 -07:00
Ismael Juma bca95cba96 KAFKA-3713; Close `compressor` to fix memory leak
This fixes test_producer_throughput with compression_type=snappy.

Also: added heap dump on out of memory error to `producer_performance.py` and corrected the upgrade note related to the change in buffer size for compression streams.

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

Reviewers: Gwen Shapira

Closes #1385 from ijuma/kafka-3713-test_producer_throughput-snappy-fail and squashes the following commits:

54c7962 [Ismael Juma] Correct upgrade note about buffer size for compression stream
515040b [Ismael Juma] Call `compressor.close()` to fix memory leak
5311e5b [Ismael Juma] Dump heap on out of memory error when running `producer_performance.py`

(cherry picked from commit 13130139ff)
Signed-off-by: Gwen Shapira <cshapi@gmail.com>
2016-05-13 21:03:51 -07:00
Liquan Pei d43ea744f4 KAFKA-3520: Add system tests for REST APIs of list connector plugins and config validation
ewen granders Ready for review.

Author: Liquan Pei <liquanpei@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1195 from Ishiihara/system-test

(cherry picked from commit 81f76bde85)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-12 18:19:15 -07:00
Jason Gustafson dca78b586f KAFKA-3694; Ensure broker Zk deregistration prior to restart in ReplicationTest
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ismael Juma <ismael@juma.me.uk>

Closes #1365 from hachikuji/KAFKA-3694

(cherry picked from commit f892f0ca6d)
Signed-off-by: Ismael Juma <ismael@juma.me.uk>
2016-05-11 23:49:03 +01:00
Jason Gustafson e76d9e9581 KAFKA-3676: system tests for connector pause/resume
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1345 from hachikuji/KAFKA-3676

(cherry picked from commit f96da638ee)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-09 16:56:41 -07:00
Rajini Sivaram f4ed61cbdd KAFKA-3634; Upgrade tests for SASL authentication
Add a test for changing SASL mechanism using rolling upgrade and a test for rolling upgrade from 0.9.0.x to 0.10.0 with SASL/GSSAPI.

Author: Rajini Sivaram <rajinisivaram@googlemail.com>

Reviewers: Ben Stopford <benstopford@gmail.com>, Geoff Anderson <geoff@confluent.io>, Ismael Juma <ismael@juma.me.uk>

Closes #1290 from rajinisivaram/KAFKA-3634

(cherry picked from commit 87285f36c9)
Signed-off-by: Ismael Juma <ismael@juma.me.uk>
2016-05-09 23:47:20 +01:00
Ismael Juma 7a0b9eb063 KAFKA-3675; Add lz4 to parametrized `test_upgrade` system test
Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1343 from ijuma/kafka-3675-lz4-test-upgrade

(cherry picked from commit f5b98b8fa7)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-09 00:22:34 -07:00
Liquan Pei 76fa376e23 KAFKA-3673: Connect tests don't handle concurrent config changes
Author: Liquan Pei <liquanpei@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1340 from Ishiihara/connect-test-failure

(cherry picked from commit dbafc631ad)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-08 23:51:06 -07:00
Geoff Anderson aabf825145 KAFKA-3592: System test - configurable paths
This patch adds logic for the following:
- remove hard-coded paths to various scripts and jars in kafkatest service classes
- provide a mechanism for overriding path resolution logic with a "pluggable" path resolver class

Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1245 from granders/configurable-install-path

(cherry picked from commit 54092c12ed)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-06 11:11:51 -07:00
Geoff Anderson a9df2e7ca2 KAFKA-3581: add timeouts to joins in background thread services
This actually removes joins altogether, as well as references to self.worker_threads, which is best left as an implementation detail in BackgroundThreadService.

This makes use of hachikuji 's recent ducktape patch, and updates ducktape dependency to 0.5.0.

Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Jason Gustafson <jason@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1297 from granders/KAFKA-3581-systest-add-join-timeout

(cherry picked from commit b6cd0e2791)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-05 13:12:30 -07:00
Geoff Anderson 3cfe73a2ca MINOR: Add version check on enable-systest-events flag
Recent patch adding enable-systest-events flag without any version check breaks all uses of versioned console consumer. E.g. upgrade tests, compatibility tests etc.

Added a check to only apply the flag if running 0.10.0 or greater.

Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1298 from granders/minor-systest-fix-versioned-console-consumer

(cherry picked from commit 5c47b9f80e)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
2016-05-02 21:42:19 -07:00
Gwen Shapira f0d9611866 Merge branch 'trunk' into 0.10.0 2016-04-29 14:50:50 -07:00
Anna Povzner e29eac4bbb KAFKA-3597; Query ConsoleConsumer and VerifiableProducer if they shutdown cleanly
Even if a test calls stop() on console_consumer or verifiable_producer, it is still possible that producer/consumer will not shutdown cleanly, and will be killed forcefully after a timeout. It will be useful for some tests to know whether a clean shutdown happened or not. This PR adds methods to console_consumer and verifiable_producer to query whether clean shutdown happened or not.

hachikuji and/or granders Please review.

Author: Anna Povzner <anna@confluent.io>

Reviewers: Jason Gustafson, Geoff Anderson, Gwen Shapira

Closes #1278 from apovzner/kafka-3597
2016-04-29 10:51:29 -07:00
Liquan Pei eb50d2f6ca KAFKA-3615: Exclude test jars in kafka-run-class.sh
granders hachikuji Can you take a look when you have time? Appreciate your time to review.

Author: Liquan Pei <liquanpei@gmail.com>

Reviewers: Grant Henke <granthenke@gmail.com>, Geoff Anderson <geoff@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1263 from Ishiihara/classpath-no-test-jar
2016-04-29 10:29:00 -07:00
Rajini Sivaram cea01af125 KAFKA-2693: Ducktape tests for SASL/PLAIN and multiple mechanisms
Run a sanity test with SASL/PLAIN and a couple of replication tests with SASL/PLAIN and multiple mechanisms.

Author: Rajini Sivaram <rajinisivaram@googlemail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1282 from rajinisivaram/KAFKA-2693
2016-04-29 09:41:12 -07:00
Ashish Singh 0ada3b1fc2 KAFKA-3382: Add system test for ReplicationVerificationTool
Author: Ashish Singh <asingh@cloudera.com>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1160 from SinghAsDev/KAFKA-3382
2016-04-28 15:49:01 -07:00
Ismael Juma a5f1158c31 KAFKA-3558; Add compression_type parameter to benchmarks in benchmark_test.py
* Use a fixed `Random` seed in `EndToEndLatency.scala` for determinism
* Add `compression_type` to and remove `consumer_fetch_max_wait` from `end_to_end_latency.py`. The latter was never used.
* Tweak logging of `end_to_end_latency.py` to be similar to `consumer_performance.py`.
* Add `compression_type` to `benchmark_test.py` methods and add `snappy` to `matrix` annotation
* Use randomly generated bytes from a restricted range for `ProducerPerformance` payload. This is a simple fix for now. It can be improved in the PR for KAFKA-3554.

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

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1225 from ijuma/kafka-3558-add-compression_type-benchmark_test.py
2016-04-18 14:23:46 -07:00
Ismael Juma c1694833d5 KAFKA-3490; Multiple version support for ducktape performance tests
Author: Ismael Juma <ismael@juma.me.uk>
Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1173 from ijuma/kafka-3490-multiple-version-support-perf-tests
2016-04-13 13:50:49 -07:00
Gwen Shapira e97735f035 Minor: Correcting version to 0.10.0.0-SNAPSHOT again following merge with trunk 2016-04-11 16:29:29 -07:00
Ewen Cheslack-Postava 411b04a3c9 MINOR: Make VerifiableProducer in system tests lookup security configuration dynamically instead of at construction.
Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Anna Povzner

Closes #1207 from ewencp/minor-dynamic-security-config-verifiable-producer
2016-04-11 10:37:04 -07:00
Jason Gustafson cbdd70ec0d MINOR: improve logging of consumer system tests
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1199 from hachikuji/improve-consumer-systests
2016-04-08 10:04:46 -07:00
Anna Povzner 8b9b07e5d6 MINOR: ensure original use of prop_file in verifiable producer
This PR: https://github.com/apache/kafka/pull/958 fixed the use of prop_file in the situation when we have multiple producers (before, every producer will add to the config). However, it assumes that self.prop_file is initially "". This is correct for all existing tests, but it precludes us from extending verifiable producer and adding more properties to the producer config (same as console consumer).

This is a small PR to change the behavior to the original, but also make verifiable producer use prop_file method to be consistent with console consumer.

Also few more fixes to verifiable producer came up during the review:
-- fixed each_produced_at_least() method
-- more straightforward use of compression types

granders please review.

Author: Anna Povzner <anna@confluent.io>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1192 from apovzner/fix_verifiable_producer
2016-04-07 18:17:40 -07:00
Ewen Cheslack-Postava c3c9289c12 KAFKA-3464: Add system tests for Connect with Kafka security enabled
Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Ismael Juma, Gwen Shapira

Closes #1141 from ewencp/kafka-3464-connect-security-system-tests
2016-04-04 18:49:29 -07:00
Grant Henke 45c585b4f7 KAFKA-3483: Restructure ducktape tests to simplify running subsets of tests
… tests

Author: Grant Henke <granthenke@gmail.com>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1162 from granthenke/ducktape-structure
2016-04-03 20:04:36 -07:00
Ashish Singh 9f6a6f9713 KAFKA-3381: Add system test for SimpleConsumerShell
Author: Ashish Singh <asingh@cloudera.com>

Reviewers: Geoff Anderson

Closes #1053 from SinghAsDev/KAFKA-3381
2016-03-30 19:33:37 -07:00
Ismael Juma 78d91dcd88 KAFKA-3475; Introduce our own `MiniKdc`
This also fixes KAFKA-3453 and KAFKA-2866.

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

Reviewers: Gwen Shapira

Closes #1155 from ijuma/kafka-3475-introduce-our-minikdc
2016-03-30 19:30:34 -07:00
Geoff Anderson aaafd23df8 MINOR: Advance system test ducktape dependency from 0.3.10 to 0.4.0
Previous version of ducktape was found to have a memory leak which caused occasional failures in nightly runs.

Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1165 from granders/minor-advance-ducktape-to-0.4.0
2016-03-30 00:50:29 -07:00
Yasuhiro Matsuda de06244338 MINOR: remove streams-smoke-test.sh
guozhangwang

Author: Yasuhiro Matsuda <yasuhiro@confluent.io>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #1125 from ymatsuda/remove_smoketest_shell_script
2016-03-23 14:57:03 -07:00
Gwen Shapira 4f0417931a MINOR: update new version in additional places
Note: This goes only to trunk. 0.10.0 branch will need a separate PR with different versions.

Author: Gwen Shapira <cshapi@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1109 from gwenshap/minor-fix-version-trunk
2016-03-21 13:40:59 -07:00
Geoff Anderson c188a68e2b MINOR: Add vagrant up wrapper for simple parallel bringup on aws
The main impediment to bringing up aws machines in parallel using vagrant was the interaction between `vagrant-hostmanager` and `vagrant-aws`. If you disable hostmanager during the `up` phase, and run it after the cluster is up, parallel bringup is possible. The only caveat is that machines must be brought up in small-ish batches to prevent rate limit errors from AWS since `vagrant-aws` doesn't seem to have mechanisms to

This PR:
- disables `vagrant-hostmanager` during bringup
- adds a wrapper script to make it convenient to bring machines up in batches on aws

Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #982 from granders/vagrant-disable-hostmanager
2016-03-20 16:46:42 -07:00
Eno Thereska 0d8cbbcb20 HOTFIX: Renamed tests to match expected suffix
ewencp gwenshap granders could you have a look please? Thanks.

Author: Eno Thereska <eno.thereska@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confuent.io>

Closes #1096 from enothereska/systest-hotfix-name
2016-03-18 12:01:56 -07:00
Eno Thereska f57dabbe56 KAFKA-3202: System test that changes message version on the fly
becketqin apovzner please have a look. becketqin the test fails when the producer and consumer are 0.9.x and the message format changes on the fly.

Author: Eno Thereska <eno.thereska@gmail.com>

Reviewers: Ewen Cheslack-Postava, Ismael Juma, Gwen Shapira

Closes #1070 from enothereska/kafka-3202-format-change-fly
2016-03-17 15:37:37 -07:00
Eno Thereska a1eb12d7c6 KAFKA-3188: Compatibility test for old and new clients with 0.10 broker
apovzner becketqin please have a look if you can. Thanks.

Author: Eno Thereska <eno.thereska@gmail.com>

Reviewers: Anna Povzner, Gwen Shapira

Closes #1059 from enothereska/kafka-3188-compatibility
2016-03-17 13:17:01 -07:00
Eno Thereska b0f811804f KAFKA-3371: ClientCompatibilityTest system test failing
becketqin have a look if this looks reasonable to you. Thanks.

Author: Eno Thereska <eno.thereska@gmail.com>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1051 from enothereska/kafka-3371
2016-03-16 08:47:38 -07:00
Jiangjie Qin ffbe624e6f KAFKA-3373; add 'log' prefix to configurations in KIP-31/32
Author: Jiangjie Qin <becket.qin@gmail.com>

Reviewers: Gwen Shapira

Closes #1049 from becketqin/KAFKA-3373
2016-03-14 19:13:26 -07:00