Skip to content

Commit b442946

Browse files
authored
Merge branch 'trunk' into kip1071merge/heartbeat_1
2 parents 42ac4c7 + b4cc88f commit b442946

File tree

7 files changed

+8
-300
lines changed

7 files changed

+8
-300
lines changed

clients/src/main/java/org/apache/kafka/common/record/EndTransactionMarker.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ static EndTransactionMarker deserializeValue(ControlRecordType type, ByteBuffer
9393
throw new InvalidRecordException("Invalid version found for end transaction marker: " + version +
9494
". May indicate data corruption");
9595

96-
if (version > EndTxnMarker.HIGHEST_SUPPORTED_VERSION)
96+
if (version > EndTxnMarker.HIGHEST_SUPPORTED_VERSION) {
9797
log.debug("Received end transaction marker value version {}. Parsing as version {}", version,
9898
EndTxnMarker.HIGHEST_SUPPORTED_VERSION);
99-
EndTxnMarker marker = new EndTxnMarker(new ByteBufferAccessor(value), EndTxnMarker.HIGHEST_SUPPORTED_VERSION);
99+
version = EndTxnMarker.HIGHEST_SUPPORTED_VERSION;
100+
}
101+
EndTxnMarker marker = new EndTxnMarker(new ByteBufferAccessor(value), version);
100102
return new EndTransactionMarker(type, marker.coordinatorEpoch());
101103
}
102104

core/src/main/scala/kafka/utils/json/DecodeJson.scala

-109
This file was deleted.

core/src/main/scala/kafka/utils/json/JsonArray.scala

-27
This file was deleted.

core/src/main/scala/kafka/utils/json/JsonObject.scala

-42
This file was deleted.

core/src/main/scala/kafka/utils/json/JsonValue.scala

-116
This file was deleted.

docs/ops.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3965,7 +3965,7 @@ <h5 class="anchor-heading"><a id="kraft_shell_tool" class="anchor-link"></a><a h
39653965

39663966
<p>The kafka-metadata-shell.sh tool can be used to interactively inspect the state of the cluster metadata partition:</p>
39673967

3968-
<pre><code class="language-bash">$ bin/kafka-metadata-shell.sh --snapshot metadata_log_dir/__cluster_metadata-0/00000000000000000000.checkpoint
3968+
<pre><code class="language-bash">$ bin/kafka-metadata-shell.sh --snapshot metadata_log_dir/__cluster_metadata-0/00000000000000007228-0000000001.checkpoint
39693969
&gt;&gt; ls /
39703970
brokers local metadataQuorum topicIds topics
39713971
&gt;&gt; ls /topics
@@ -3983,7 +3983,7 @@ <h5 class="anchor-heading"><a id="kraft_shell_tool" class="anchor-link"></a><a h
39833983
"partitionEpoch" : 0
39843984
}
39853985
&gt;&gt; exit</code></pre>
3986-
3986+
Note: <code>00000000000000000000-0000000000.checkpoint</code> does not contain cluster metadata. Use a valid snapshot file when examining metadata with the <code>kafka-metadata-shell.sh</code> tool.
39873987
<h4 class="anchor-heading"><a id="kraft_deployment" class="anchor-link"></a><a href="#kraft_deployment">Deploying Considerations</a></h4>
39883988

39893989
<ul>

docs/upgrade.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ <h4><a id="upgrade_4_0_0" href="#upgrade_4_0_0">Upgrading to 4.0.0 from any vers
3737
<li>Upgrade the brokers one at a time: shut down the broker, update the code, and restart it. Once you have done so, the
3838
brokers will be running the latest version and you can verify that the cluster's behavior and performance meets expectations.
3939
</li>
40-
<li>Once the cluster's behavior and performance has been verified, bump the metadata.version by running
40+
<li>Once the cluster's behavior and performance has been verified, finalize the upgrade by running
4141
<code>
42-
bin/kafka-features.sh upgrade --metadata 4.0
42+
bin/kafka-features.sh upgrade --release-version 4.0
4343
</code>
4444
</li>
4545
<li>Note that cluster metadata downgrade is not supported in this version since it has metadata changes.

0 commit comments

Comments
 (0)