-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-18445: Remove LazyDownConversionRecords and LazyDownConversionRecordsSend #18445
Conversation
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.
@xijiu thanks for this patch!
@@ -203,8 +203,7 @@ public static FetchResponseData.PartitionData partitionResponse(int partition, E | |||
* Returns `partition.records` as `Records` (instead of `BaseRecords`). If `records` is `null`, returns `MemoryRecords.EMPTY`. | |||
* | |||
* If this response was deserialized after a fetch, this method should never fail. An example where this would | |||
* fail is a down-converted response (e.g. LazyDownConversionRecords) on the broker (before it's serialized and | |||
* sent on the wire). | |||
* fail is a down-converted response on the broker (before it's serialized and sent on the wire). |
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.
the message conversion has been removed by #18218, so this comment is stale. could you please remove it?
@@ -124,8 +124,7 @@ public static ShareFetchResponse parse(ByteBuffer buffer, short version) { | |||
* Returns `partition.records` as `Records` (instead of `BaseRecords`). If `records` is `null`, returns `MemoryRecords.EMPTY`. | |||
* | |||
* <p>If this response was deserialized after a share fetch, this method should never fail. An example where this would | |||
* fail is a down-converted response (e.g. LazyDownConversionRecords) on the broker (before it's serialized and | |||
* sent on the wire). | |||
* fail is a down-converted response on the broker (before it's serialized and sent on the wire). |
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.
ditto
docs/upgrade.html
Outdated
@@ -75,6 +75,8 @@ <h5><a id="upgrade_400_notable" href="#upgrade_400_notable">Notable changes in 4 | |||
</li> | |||
<li>The function <code>onNewBatch</code> in <code>org.apache.kafka.clients.producer.Partitioner</code> class was removed. | |||
</li> | |||
<li>The <code>org.apache.kafka.common.record.LazyDownConversionRecords</code> class and <code>org.apache.kafka.common.record.LazyDownConversionRecordsSend</code> class were removed. |
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.
they are not public APIs so we don't need to add them into upgrade.html
// of temporary memory used for down-conversion, etc. Pull out any such statistics from the underlying send | ||
// and fold it up appropriately. | ||
if (completedSend instanceof LazyDownConversionRecordsSend) { | ||
if (recordConversionStats == null) |
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.
we can remove recordConversionStats and recordConversionStats(), right?
…cordsSend (#18445) Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
As title.
Committer Checklist (excluded from commit message)