Commit Graph

14048 Commits

Author SHA1 Message Date
Kuan-Po Tseng 140d35c545
KAFKA-8779 Fix flaky tests introduced by dynamic log levels (#17382)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-24 21:39:35 +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
Said Boudjelda 57053ef47d
MINOR: Remove never thrown exception in ByteUtilsBenchmark (#17532)
Reviewers: Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-24 11:51:23 +02:00
Andrew Schofield e831dfb409
KAFKA-17785: Add tagged field information to protocol docs (#17498)
Reviewers: Mickael Maison <mickael.maison@gmail.com>, Ken Huang <s7133700@gmail.com>
2024-10-24 11:14:45 +02:00
Joao Pedro Fonseca Dantas 3856644cd6
KAFKA-17233: MirrorCheckpointConnector should use batched listConsumerGroupOffsets (#17038)
Reviewers: Mickael Maison <mickael.maison@gmail.com>, Greg Harris <gharris1727@gmail.com>
2024-10-24 09:38:44 +02:00
Tom Duckering 1d231b35b8
MINOR: Use bools for ignorable in EndTxnResponse.json (#17558)
A tiny fix to a single protocol JSON which was recently updated under KAFKA-14562. It seems to erroneously use strings where bools appear to be the right type.

Reviewers: Andrew Schofield <aschofield@confluent.io>, Justine Olshan <jolshan@confluent.io>
2024-10-23 22:24:25 -07:00
Federico Valeri 363bf3cab4
MINOR: Fix the valid values generated doc of the RLM thread pools (#17575)
This patch fixes the valid values generated doc of remote.log.manager.copier.thread.pool.size and remote.log.manager.expiration.thread.pool.size.

Signed-off-by: Federico Valeri <fedevaleri@gmail.com>

Reviewers: Luke Chen <showuon@gmail.com>, Satish Duggana <satishd@apache.org>
2024-10-24 09:58:39 +08:00
Sanskar Jhajharia 8faeb9390d
MINOR: Code cleanup Kafka Streams (#16050)
Reviewers: Matthias J. Sax <matthias@confluent.io>
2024-10-23 16:54:06 -07:00
Apoorv Mittal 0d44415bac
KAFKA-17774: Adding capability to handle max fetch records in Share Fetch (KIP-932) (#17322)
The PR adds capability to restrict the messages in Share Fetch. The max fetch records will be an additional way to limit the number of records sent from broker to client.

In Share Fetch, with min and mx bytes, there exists 3 problems:

1. The max.poll.records client config sends the max number of records defined to application but might have fetched extra becuase of higher max bytes. But the timeout for the sent records has started on the broker.
2. As the application processes records as per max.poll.records, hence those number of records are sent in every acknowledgement. This causes the cache data to be tracked per offset as the batch is broken.
3. The client has to sent the partial acknoledgment batch and cannot piggyback on fetch requests.

To handle the above scenario max fetch records has been added. Once this PR is merged and we define the right methodolgy then KIP will be updated to have max fetch records in share fetch RPC rather as broker config.

Reviewers: Abhinav Dixit <adixit@confluent.io>, Andrew Schofield <aschofield@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>, Jun Rao <junrao@gmail.com>
2024-10-23 13:21:32 -07:00
TaiJuWu 661bed242e
MINOR: add controller-related tests to metadataQuorumCommandTest (#17486)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-24 03:08:26 +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
Ken Huang 2ff13976ab
KAFKA-17568 Rewrite TestPurgatoryPerformance by Java (#17246)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-24 02:44:37 +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
Alieh Saeedi 14a098b289
KAFKA-17600: Add nextOffsets to the ConsumerRecords (#17414)
This PR implements KIP-1094.

Reviewers: Andrew Schofield <aschofield@confluent.io>, Kirk True <ktrue@confluent.io>, Lucas Brutschy <lbrutschy@confluent.io>
2024-10-23 16:25:50 +02:00
Federico Valeri 9d65ff8077
KAFKA-17852 Add help message to the --ignore-formatted flag of StorageTool (#17577)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-23 03:52:08 +08:00
TengYao Chi 9cbb3f0a4f
KAFKA-17526 make ConfigCommandIntegrationTest.java test use correct arguments in testing alias (#17201)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-23 03:24:08 +08:00
Apoorv Mittal 25a3590dc2
KAFKA-17813: Moving broker endpoint class and common server connection id (#17519)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Kuan-Po Tseng <brandboat@gmail.com>, Jun Rao <junrao@gmail.com>
2024-10-22 11:58:28 -07:00
Kirk True d36eb9ed3f
KAFKA-17686 AsyncKafkaConsumer.offsetsForTimes() fails with NullPointerException (#17353)
The code to convert the Map was initially expressed using the Streams API with collect(Collectors.toMap()). Unfortunately, the implementation of Collector returned by Collectors.toMap() does not support null entries. The KafkaConsumer.offsetsForTimes() API explicitly states that nulls can be present in the returned Map, hence this change.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-23 02:42:10 +08:00
Federico Valeri d705be05d9
MINOR: Fix other tools' formatting in documentation (#17572)
Reviewers: Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-23 02:24:55 +08:00
Dmitry Werner 1c405875fa
MINOR: Fix duplicate condition in ReadOnlyWindowStoreStub (#17540)
Reviewers: Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-23 02:23:14 +08:00
Kuan-Po Tseng edb623cf67
MINOR: Remove unused method in BrokerRegistration (#17568)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-23 02:12:20 +08:00
PoAn Yang 54a83c5b9a
KAFKA-17839 DescribeConsumerGroupTest doesn't really test different arguments (#17556)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-23 02:07:33 +08:00
Apoorv Mittal cfa2edc7a7
KAFKA-17844: Complete share fetch request on exception (#17566)
The PR adds test cases and minor fix to complete share fetch requests on exception from Share Partition Manager.
2024-10-22 20:17:50 +05:30
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
Matthias J. Sax f30f2d03e9
KAFKa-16331: remove EOSv1 support for getting clientInstanceIds (#17521)
With EOSv1 removed, we don't need to collect producer's clientInstanceIds per task any longer. While we never completed this feature, we can remove the corresponding scaffolding code.

Reviewers: Bill Bejeck <bill@confluent.io>
2024-10-21 18:24:46 -07:00
Federico Valeri 84ab3b9a5c
KAFKA-17031: Make RLM thread pool configurations public and fix default handling (#17499)
According to KIP-950, remote.log.manager.thread.pool.size should be marked as deprecated and replaced by two new configurations: remote.log.manager.copier.thread.pool.size and remote.log.manager.expiration.thread.pool.size. Fix default handling so that -1 works as expected.

Reviewers: Luke Chen <showuon@gmail.com>, Gaurav Narula <gaurav_narula2@apple.com>, Satish Duggana <satishd@apache.org>, Colin P. McCabe <cmccabe@apache.org>
2024-10-21 10:39:11 -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
Apoorv Mittal 7efbed4e49
KAFKA-17545: Removing process fetch queue (#17534)
The PR removed the process fetch queue as we have moved to share fetch purgatory.

Reviewers: Abhinav Dixit <adixit@confluent.io>, Jun Rao <junrao@gmail.com>
2024-10-21 09:27:09 -07:00
Sean Quah 6e8df2951d
MINOR: Log at info level when pending member joins a group (#17495)
When a dynamic member joins a group, it sends two JOIN_GROUP requests.
The first request doesn't have a member id and returns
MEMBER_ID_REQUIRED with a broker-generated member id. The second request
includes the broker-generated member id and joins the group for real.

We emit a log message at info level for the first join request, but not
the second. Log the second join request at info level too.

Reviewers: David Jacot <djacot@confluent.io>
2024-10-21 06:22:03 -07:00
yx9o 25e8e4cbcf
KAFKA-17841 Use placeholders instead of string concatenation in logs (#17557)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-21 00:23:20 +08:00
Ken Huang 76a9df47ca
KAFKA-17639 Add Java 23 to CI build matrix (#17409)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-20 23:55:19 +08:00
Peter Lee 6d804cea64
KAFKA-17818 add log4j.properties to test-common and test-common-api (#17550)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-20 02:19:45 +08:00
Mickael Maison b54f0c129f
KAFKA-17476 Delete kafka.common.OffsetAndMetadata (#17553)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-20 02:15:24 +08:00
Peter Lee 57abfc2493
KAFKA-17838 Move the log4j.properties from resources/test to resources(#17551)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-20 02:00:32 +08:00
Federico Valeri 7aaffed372
MINOR: Add missing extention to tools commands (#17548)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 22:01:36 +08:00
Ken Huang 2267518d5b
KAFKA-17407 Fix flaky ShareGroupHeartbeatRequestTest.testPartitionAssignmentWithChangingTopics (#16994)
Reviewers: Andrew Schofield <aschofield@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 18:45:04 +08:00
Eric Chang 6b28e81ba1
KAKFA-17173 move quota config params from KafkaConfig to QuotaConfig (#17505)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 18:01:06 +08:00
Manikumar Reddy f55083c9a7
MINOR: Set sourceCompatibility/targetCompatibility properties to Scala Compile task (#17546)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 15:31:16 +08: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
Yung b3939f7901
KAFKA-17832 Remove all EnabledForJreRange (#17543)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 11:26:32 +08:00
陳昱霖(Yu-Lin Chen) 5313f8eb92
MINOR: Remove ProducerIdManagerTest from quarantinedTest (#17545)
Reviewers: PoAn Yang <payang@apache.org>, Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 01:23:33 +08:00
Dmitry Werner eb897c6ad5
MINOR: Fix potential NPE (#17541)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-19 01:05:45 +08:00
xijiu b917b85e62
KAFKA-17817 Remove cache from FetchRequest#fetchData (#17535)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-18 21:53:24 +08:00
Ken Huang 6a37d5cceb
KAFKA-17827 cleanup the mockit version (#17536)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-18 21:42:30 +08:00
Ken Huang 8107bda695
KAFKA-17654 Fix flaky ProducerIdManagerTest#testUnrecoverableErrors (#17361)
Reviewers: 陳昱霖(Yu-Lin Chen) <chenyulin0719@apache.org>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-18 21:21:29 +08:00
Anshul Goyal 5cf112dc39
KAFKA-17766: Fixing deadlock in TopicBasedRemoteLogMetadataManager (#17492)
KAFKA-17766: Issue Details: Inside TopicBasedRemoteLogMetadataManager::close, one thread(t1) is calling join on initializationThread thread after taking writeLock on "lock" object => t1 will wait for initializationThread to complete. Internally initializationThread is also using writeLock on "lock" object. This can cause deadlock in below situation

initializationThread is started
close has been invoked as part of a separate thread. But this thread is not yet scheduled by OS.
At line 430, initializationThread is preempted and OS has started running close thread. close takes writeLock and invoked join on initializationThread.
Now OS schedules initializationThread again and at line 433 this thread also tries to take writeLock. But since writeLock is already held by close thread => both are waiting on each other to complete. initializationThread will wait on close to release the writeLock, while close thread will wait for completion of initializationThread

Fix Details: We can avoid taking lock inside close() method as there no operations with any side effects. closing instance variable is of type AtomicBoolean => no race condition when updating it to true.

Co-authored-by: Anshul Goyal <anshul.goyal@broadcom.com>
Reviewers: Kamal Chandraprakash <kamal.chandraprakash@gmail.com>
2024-10-18 17:43:47 +05:30
Loïc GREFFIER d6b5943570
KAFKA-17099: Print the origin processor node in logs when a processing exception occurs (#17475)
This PR leverages the updates brought by KIP-1033 to get the name of the processor node which raised a processing exception and display it in the stacktrace instead of the source node.

Reviewer: Bruno Cadonna <cadonna@apache.org>
2024-10-18 11:31:09 +02:00
Mickael Maison 715606e703
MINOR: Use Endpoint instead of EndPoint in RemoteLogManager (#17514)
Reviewers: Luke Chen <showuon@gmail.com>
2024-10-18 09:35:00 +02:00
Ken Huang e01f6a5c1e
KAFKA-17740 Update Readme and documentation (#17435)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-18 10:54:02 +08:00
Chung, Ming-Yen d9cbbcf69c
KAFKA-17816 Add testRuntimeOnly runtimeTestLibs to test-common-api module (#17523)
Reviewers: Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2024-10-18 10:22:13 +08:00