Commit Graph

889 Commits

Author SHA1 Message Date
Ken Huang ce77a7413e
KAFKA-18194 Flaky test_broker_rolling_bounce due to metadata update (#18153)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-12-13 07:33:03 +08:00
Kuan-Po Tseng d2ad418cfd
KAFKA-18156 VerifiableConsumer should ignore "--session-timeout" when using CONSUMER protocol (#18036)
Reviewers: TaiJuWu <tjwu1217@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-12-11 21:12:46 +08:00
Yung 104fa57933
KAFKA-18118 Fix the incorrect soft link of results/latest (#17992)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-12-08 08:14:53 +08:00
ShivsundarR 50b6953661
KAFKA-18122 : Added support for ShareConsumeBenchWorker (#17984)
Added ShareConsumeBenchSpec and ShareConsumeBenchWorker similar to ConsumeBenchSpec/ConsumeBenchWorker. This will help us run trogdor workloads for share consumers as well.
Added a sample json workload running 5 share consumers.

Reviewers: Andrew Schofield <aschofield@confluent.io>, Manikumar Reddy <manikumar.reddy@gmail.com>
2024-12-05 18:46:32 +05:30
Ken Huang 6ef8b1c4c0
KAFKA-18132 Remove "session.timeout.ms" from connect-distributed.properties to fix connect e2e (#18005)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-12-05 10:28:03 +08:00
mingdaoy 0322764ab2
KAFKA-17460 Remove downgrade_test.py (#18038)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-12-05 07:07:01 +08:00
Ken Huang 2ee7e4d22c
KAFKA-18152 add 0.11, 1.0, 1.1, and 2.0 streams dependencies to dockerfile (#18025)
Reviewers: Justine Olshan <jolshan@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
2024-12-04 19:24:12 +08:00
Peter Lee b295318796
KAFKA-18145 Fix failed e2e ConnectDistributedTest.test_dynamic_logging (#18023)
The org.reflections is removed, so the initial logger of worker is only "root". However, the e2e needs a non-root logger to verify dynamic logger

We can add a logger to connect_log4j.properties to fix this e2e. For example:

log4j.logger.org.apache.kafka.clients.consumer.ConsumerConfig=ERROR
this can make admin/logger return two logger - org.apache.kafka.clients.consumer.ConsumerConfig and root

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-12-04 19:22:45 +08:00
PoAn Yang 1f3f03579c
KAFKA-17979 Change [pytest] to [tool:pytest] in setup.cfg file (#17740)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-29 02:26:58 +08:00
PoAn Yang d1952e8542
KAFKA-18045 Add 0.11, 1.0, 1.1, and 2.0 back to streams_upgrade_test.py (#17876)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-25 21:34:36 +08:00
kevin-wu24 38aca3a045
KAFKA-17917: Convert Kafka core system tests to use KRaft (#17847)
- Remove some unused Zookeeper code

- Migrate group mode transactions, security rolling upgrade, and throttling tests to using KRaft

- Add KRaft downgrade tests to kraft_upgrade_test.py

Reviewers: Colin P. McCabe <cmccabe@apache.org>
2024-11-21 13:40:49 -08:00
Ken Huang fde6ae1500
KAFKA-18029 remove the `kraft.version=1` from kafka.py (#17838)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-18 00:48:19 +08:00
Ken Huang d8bfbb7d1a
KAFKA-17791: Dockerfile should use requirements.txt for dependencies (#17542)
Reviewers: Mickael Maison <mickael.maison@gmail.com>
2024-11-15 17:52:59 +01:00
TengYao Chi 84fe66827d
KAFKA-18006: Add 3.9.0 to end-to-end test (streams) (#17800)
This commit adds AK 3.9 to the system tests on trunk.
Follow-up of #17797

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Bruno Cadonna <cadonna@apache.org>
2024-11-15 14:58:24 +01:00
PoAn Yang ed9cb08dfe
KAFKA-17977 Remove new_consumer from E2E (#17798)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-15 16:26:26 +08:00
TengYao Chi e9cd9c9811
KAFKA-18006 Add 3.9.0 to end-to-end test (core, client) (#17797)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-15 00:24:24 +08:00
Ken Huang 6147a311bf
KAFKA-17888 Upgrade ZooKeeper version from 3.4.9 to 3.5.7 to avoid ZOOKEEPER-3779, which can't run under JDK 11. (#17625)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-14 19:20:51 +08:00
PoAn Yang 1c3ee7fe60
KAFKA-18004 Use version 3.8 to run the ZooKeeper service for end-to-end tests (#17790)
We plan to remove all ZooKeeper-related code in version 4.0. However, some old brokers in the end-to-end tests still require ZooKeeper service, so we need to run the ZooKeeper service using the 3.x release instead of the dev branch.

Since version 3.9 is not available in the https://s3-us-west-2.amazonaws.com/kafka-packages repo, we can use version 3.8 for now.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-13 20:34:53 +08:00
PoAn Yang 440e0b8801
KAFKA-17923 Remove old kafka version from e2e (#17673)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-11 06:22:06 +08:00
ShivsundarR 0181073d49
KAFKA-17933: Added round trip trogdor workload for share consumer. (#17692)
Added ShareRoundTripWorker.java similar to RoundTripWorker.java. This will start a producer and a share consumer on a single node. The share consumer reads back the messages produced by the producer.

Reviewers: Andrew Schofield <aschofield@confluent.io>, Manikumar Reddy <manikumar.reddy@gmail.com>
2024-11-07 16:21:14 +05:30
kevin-wu24 5ec9dffa81
KAFKA-17916: removing ZK from connect ducktape tests (#17689)
Migrates existing connect tests that were using Zookeeper to use KRaft
instead, and cleans up some dead ZK code. For broker compatibility tests,
tests for versions 2.1-2.3 still need to use ZK.

Reviewers: Colin P. McCabe <cmccabe@apache.org>
2024-11-05 14:33:17 -08:00
Bill Bejeck 36c131ef4a
KAFKA-17609:[1/4] Changes needed to convert system tests to use KRaft and remove ZK (#17275)
This is part one of a multi-pr effort to convert Kafka Streams system tests to KRaft. I decided to break down the changes into multiple PRs to reduce the review load

Reviewers: Matthias Sax <mjsax@apache.org>
2024-11-05 11:23:33 -05:00
kevin-wu24 c5a31cd6fb
KAFKA-17625: Removing explicit ZK test parameterizations (#17638)
This PR removes ZK test parameterizations from ducktape by:

- Removing zk from quorum.all_non_upgrade
- Removing quorum.zk from @matrix and @parametrize annotations
- Changing usages of quorum.all to quorum.all_kraft
- Deleting message_format_change_test.py

The default metadata_quorum value still needs to be changed to KRaft rather than ZK, but this will be done in a follow-up PR.

Reviewers: Kirk True <kirk@kirktrue.pro>, Colin P. McCabe <cmccabe@apache.org>
2024-11-04 09:38:04 -08:00
Bill Bejeck 29881782c8
KAFKA-17609 Migrate broker compatibility test from ZK to KRaft (#17603)
Reviewers: Matthias J. Sax <matthias@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-31 04:51:06 +08:00
Josep Prat 5859df9ee0
MINOR: Add Kafka 3.8.1 to system tests (#17629)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-31 01:00:37 +08:00
Bill Bejeck 58dd76817e
KAFKA-17609:[2/4]Convert system tests to kraft part 2 (#17321)
* Part 2 of 4 converting system tests to use KRaft

Reviewers: Matthias Sax <mjsax@apache.org>
2024-10-30 12:31:47 -04:00
Bill Bejeck 358d8775fb
KAFKA-17609:[3/4]Convert system tests to kraft part 3 (#17327)
Part 3 of 4 converting streams system tests to KRaft

Reviewers: Matthias Sax <mjsax@apache.org>
2024-10-30 12:20:58 -04:00
Bill Bejeck 3d2edf8de0
KAFKA-17609:[4/4]Convert system tests to kraft part 4 (#17328)
Part 4 of 4 converting streams system tests to KRaft

Reviewers: Matthias Sax <mjsax@apache.org>
2024-10-30 12:07:16 -04:00
Mahsa Seifikar bed70d4d2e
MINOR: Correct error message in reassign_partitions_test.py (#17632)
Reviewers: Justine Olshan <jolshan@confluent.io>
2024-10-30 08:20:46 -07:00
Yung db25c212ed
KAFKA-17883 Fix jvm error caused by UseParNewGC when running old kafka client in e2e (#17612)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-28 20:23:32 +08:00
Yung 24689dc6ab
KAFKA-17879 test_performance_services.py should use DEV version to run kafka service (#17606)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-28 04:32:06 +08:00
TengYao Chi 553e6b4c6d
KAFKA-17860 Remove log4j-appender module (#17588)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-24 18:13:30 +08:00
David Jacot a96cc6a24d
MINOR: Fix coordinator logging in system tests (#17585)
Reviewers: Jeff Kim <jeff.kim@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-24 02:51:18 +08:00
PoAn Yang 2d896d9130
KAFKA-17614: Remove AclAuthorizer (#17424)
Reviewers: Mickael Maison <mickael.maison@gmail.com>
2024-10-23 17:07:48 +02:00
Dongnuo Lyu 243e8e2830
KAFKA-17272 [2/2]: System tests for protocol migration (#17503)
This patch adds `consumer_protocol_migration_test.py` that tests the upgrade/downgrade paths between the old and new group protocol in KIP-848.

A successful test result can be found [here](https://confluent-open-source-kafka-branch-builder-system-test-results.s3-us-west-2.amazonaws.com/dlyu-test-sem-versions/2024-10-21--001/report.html)

Reviewers: David Jacot <djacot@confluent.io>
2024-10-22 07:40:13 -07:00
Colin Patrick McCabe e3751a838c
KAFKA-17794: Add some formatting safeguards for KIP-853 (#17504)
KIP-853 adds support for dynamic KRaft quorums. This means that the quorum topology is
no longer statically determined by the controller.quorum.voters configuration. Instead, it
is contained in the storage directories of each controller and broker.

Users of dynamic quorums must format at least one controller storage directory with either
the --initial-controllers or --standalone flags.  If they fail to do this, no quorum can be
established. This PR changes the storage tool to warn about the case where a KIP-853 flag has
not been supplied to format a KIP-853 controller. (Note that broker storage directories
can continue to be formatted without a KIP-853 flag.)

There are cases where we don't want to specify initial voters when formatting a controller. One
example is where we format a single controller with --standalone, and then dynamically add 4
more controllers with no initial topology. In this case, we want the 4 later controllers to grab
the quorum topology from the initial one. To support this case, this PR adds the
--no-initial-controllers flag.

Reviewers: José Armando García Sancio <jsancio@apache.org>, Federico Valeri <fvaleri@redhat.com>
2024-10-21 10:06:41 -07:00
Justine Olshan 8f1df347f5
MINOR: add psutil to setup.py (#17547)
Reviewers: Ian McDonald <ian_mcdonald@rocketmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 11:29:08 +08:00
Ken Huang 05a6898610
KAFKA-17812 upgrade base image of e2e from JDK 11 to JDK 17 (#17520)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-17 20:54:13 +08:00
Ken Huang bb7c083049
KAFKA-17781 add `psutil` to e2e dockerfile and upgrade ducktape version (#17480)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-16 22:38:23 +08:00
PoAn Yang 9bbf0950f9
KAFKA-17387 Remove broker-list in VerifiableConsumer (#17406)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-10 11:41:53 +08:00
Yung c36b993af0
KAFKA-17738 upgrade base image from jdk8 to jdk11 (#17432)
Reviewers: Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-10 09:28:22 +08:00
Yung be24e1d608
KAFKA-17737 E2E tests need to drop Kafka versions prior to 1.0.0 (#17427)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-10 08:57:31 +08:00
xijiu 7592bc3cbe
KAFKA-17655 add example of changing the e2e image name (#17408)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-09 10:22:02 +08:00
Chung, Ming-Yen a6bce450dd
KAFKA-17720 Remove zookeeper_migration_test.py and migration-related functions in kafka.py (#17410)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-09 09:45:33 +08:00
TengYao Chi 2733268409
KAFKA-17624 Remove the E2E uses of accessing ACLs from zk (#17338)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-08 07:10:14 +08:00
Alyssa Huang e27d0dfb17
MINOR: Fix kafkatest advertised listeners (#17294)
Followup for #17146

Reviewers: Bill Bejeck <bbejeck@apache.org>
2024-09-30 08:51:49 -04:00
Alyssa Huang 68b9770506
KAFKA-17608, KAFKA-17604, KAFKA-16963; KRaft controller crashes when active controller is removed (#17146)
This change fixes a few issues.

KAFKA-17608; KRaft controller crashes when active controller is removed
When a control batch is committed, the quorum controller currently increases the last stable offset but fails to create a snapshot for that offset. This causes an issue if the quorum controller renounces and needs to revert to that offset (which has no snapshot present). Since the control batches are no-ops for the quorum controller, it does not need to update its offsets for control records. We skip handle commit logic for control batches.

KAFKA-17604; Describe quorum output missing added voters endpoints
Describe quorum output will miss endpoints of voters which were added via AddRaftVoter. This is due to a bug in LeaderState's updateVoterAndObserverStates which will pull replica state from observer states map (which does not include endpoints). The fix is to populate endpoints from the lastVoterSet passed into the method.

Reviewers: José Armando García Sancio <jsancio@apache.org>, Colin P. McCabe <cmccabe@apache.org>, Chia-Ping Tsai <chia7712@apache.org>
2024-09-26 13:56:19 -04:00
Eric Chang e146c7c916
KAFKA-17520 Align ducktape version in tests/docker/Dockerfile and tests/setup.py (#17240)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-09-26 03:44:40 +08:00
TengYao Chi f51fc16c16
KAFKA-17459 Stablize reassign_partitions_test.py (#17250)
This test expects that each partition can receive the record, so using a non-null key helps distribute the records more randomly.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-09-24 17:36:36 +08:00
Bill Bejeck e1f11c6714
MINOR: Need to split the controller bootstrap servers on ',' in list comprehenson (#17183)
Kafka Streams system tests were failing with this error:

Failed to parse host name from entry 3001@d for the configuration controller.quorum.voters.  Each entry should be in the form `{id}@{host}:{port}`.

The cause is that in kafka.py line 876, we create a delimited string from a list comprehension, but the input is a string itself, so each character gets appended vs. the bootstrap server string of host:port. To fix this, this PR adds split(',') to controller_quorum_bootstrap_servers. Note that this only applies when dynamicRaftQuorum=False

Reviewers: Alyssa Huang <ahuang@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
2024-09-16 02:26:06 +08:00