This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
Update Kafka wire protocol to 3.4.0 and implement KIP-699 and KIP-709 #1981
Merged
gaoran10
merged 6 commits into
streamnative:master
from
gaoran10:update_kafka_wireprotocol_and_impl_kip_699_and_709
Aug 7, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7b901c6
Update Kafka wireprotocol to 3.4.0 and implement KIP-699 and KIP-709
eolivelli 97b819f
add ignore annotation for test `testAlterClientQuotas`
gaoran10 161ed32
fix test
gaoran10 209fdc4
fix
gaoran10 b3e990c
remove ManagedLedgerInterceptor check
gaoran10 c0caa7e
add a new check for `AppendIndexMetadataInterceptor`
gaoran10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
296 changes: 214 additions & 82 deletions
296
kafka-impl/src/main/java/io/streamnative/pulsar/handlers/kop/KafkaRequestHandler.java
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
...main/java/io/streamnative/pulsar/handlers/kop/exceptions/KoPTopicInitializeException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.streamnative.pulsar.handlers.kop.exceptions; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
* KoP topic load exception. | ||
*/ | ||
public class KoPTopicInitializeException extends KoPBaseException { | ||
|
||
@Serial | ||
private static final long serialVersionUID = 0L; | ||
|
||
public KoPTopicInitializeException(Throwable throwable) { | ||
super(throwable); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't have this check, the
UpgradeTest
will encounter an NPE problem while getting the current offset in methodfetchOldestAvailableIndexFromTopic
, but we can't disable the Kafka transaction in that test right now, because newly Kafka client requires the producer id.Actually, I think this check is necessary because the Kafka transaction can't work without continuously offset, maybe we can add this check while starting the broker. @Demogorgon314