You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by rh...@apache.org on 2020/07/21 02:42:36 UTC

[kafka-site] branch asf-site updated: Add changes to documentation and JavaDoc for AK 2.6.0 RC1

This is an automated email from the ASF dual-hosted git repository.

rhauch pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/kafka-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 66a9d7c  Add changes to documentation and JavaDoc for AK 2.6.0 RC1
66a9d7c is described below

commit 66a9d7cc408df058f7bf9a4c5a92576af502c070
Author: Randall Hauch <rh...@gmail.com>
AuthorDate: Mon Jul 20 21:42:16 2020 -0500

    Add changes to documentation and JavaDoc for AK 2.6.0 RC1
---
 26/generated/protocol_errors.html                  |  4 +-
 26/javadoc/allclasses-frame.html                   |  1 +
 26/javadoc/allclasses-noframe.html                 |  1 +
 26/javadoc/deprecated-list.html                    | 21 +++++
 26/javadoc/index-all.html                          | 35 +++++++--
 .../apache/kafka/clients/admin/package-tree.html   |  2 +-
 .../kafka/clients/consumer/package-tree.html       |  2 +-
 .../kafka/common/annotation/package-tree.html      |  2 +-
 .../apache/kafka/common/config/package-tree.html   |  6 +-
 .../apache/kafka/common/errors/ApiException.html   |  2 +-
 .../common/errors/InvalidMetadataException.html    |  2 +-
 .../errors/NotLeaderForPartitionException.html     | 36 +++++++--
 ...tion.html => NotLeaderOrFollowerException.html} | 91 +++++++++++++++-------
 .../common/errors/OffsetMetadataTooLarge.html      |  4 +-
 .../errors/ReplicaNotAvailableException.html       | 16 +++-
 .../apache/kafka/common/errors/package-frame.html  |  1 +
 .../kafka/common/errors/package-summary.html       | 87 +++++++++++----------
 .../apache/kafka/common/errors/package-tree.html   |  8 +-
 .../org/apache/kafka/common/package-tree.html      |  2 +-
 .../apache/kafka/common/resource/package-tree.html |  2 +-
 .../apache/kafka/streams/errors/package-tree.html  |  2 +-
 26/javadoc/overview-tree.html                      |  8 +-
 26/javadoc/serialized-form.html                    | 11 ++-
 26/streams/upgrade-guide.html                      |  2 +-
 26/upgrade.html                                    |  4 +
 25 files changed, 249 insertions(+), 103 deletions(-)

diff --git a/26/generated/protocol_errors.html b/26/generated/protocol_errors.html
index 00c9a2b..aa15b4d 100644
--- a/26/generated/protocol_errors.html
+++ b/26/generated/protocol_errors.html
@@ -11,10 +11,10 @@
 <tr><td>UNKNOWN_TOPIC_OR_PARTITION</td><td>3</td><td>True</td><td>This server does not host this topic-partition.</td></tr>
 <tr><td>INVALID_FETCH_SIZE</td><td>4</td><td>False</td><td>The requested fetch size is invalid.</td></tr>
 <tr><td>LEADER_NOT_AVAILABLE</td><td>5</td><td>True</td><td>There is no leader for this topic-partition as we are in the middle of a leadership election.</td></tr>
-<tr><td>NOT_LEADER_FOR_PARTITION</td><td>6</td><td>True</td><td>This server is not the leader for that topic-partition.</td></tr>
+<tr><td>NOT_LEADER_OR_FOLLOWER</td><td>6</td><td>True</td><td>For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.</td></tr>
 <tr><td>REQUEST_TIMED_OUT</td><td>7</td><td>True</td><td>The request timed out.</td></tr>
 <tr><td>BROKER_NOT_AVAILABLE</td><td>8</td><td>False</td><td>The broker is not available.</td></tr>
-<tr><td>REPLICA_NOT_AVAILABLE</td><td>9</td><td>False</td><td>The replica is not available for the requested topic-partition.</td></tr>
+<tr><td>REPLICA_NOT_AVAILABLE</td><td>9</td><td>True</td><td>The replica is not available for the requested topic-partition. Produce/Fetch requests and other requests intended only for the leader or follower return NOT_LEADER_OR_FOLLOWER if the broker is not a replica of the topic-partition.</td></tr>
 <tr><td>MESSAGE_TOO_LARGE</td><td>10</td><td>False</td><td>The request included a message larger than the max message size the server will accept.</td></tr>
 <tr><td>STALE_CONTROLLER_EPOCH</td><td>11</td><td>False</td><td>The controller moved to another broker.</td></tr>
 <tr><td>OFFSET_METADATA_TOO_LARGE</td><td>12</td><td>False</td><td>The metadata field of the offset request was too large.</td></tr>
diff --git a/26/javadoc/allclasses-frame.html b/26/javadoc/allclasses-frame.html
index 9de4a93..16516be 100644
--- a/26/javadoc/allclasses-frame.html
+++ b/26/javadoc/allclasses-frame.html
@@ -372,6 +372,7 @@
 <li><a href="org/apache/kafka/common/errors/NotEnoughReplicasException.html" title="class in org.apache.kafka.common.errors" target="classFrame">NotEnoughReplicasException</a></li>
 <li><a href="org/apache/kafka/connect/errors/NotFoundException.html" title="class in org.apache.kafka.connect.errors" target="classFrame">NotFoundException</a></li>
 <li><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors" target="classFrame">NotLeaderForPartitionException</a></li>
+<li><a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors" target="classFrame">NotLeaderOrFollowerException</a></li>
 <li><a href="org/apache/kafka/common/security/oauthbearer/OAuthBearerExtensionsValidatorCallback.html" title="class in org.apache.kafka.common.security.oauthbearer" target="classFrame">OAuthBearerExtensionsValidatorCallback</a></li>
 <li><a href="org/apache/kafka/common/security/oauthbearer/OAuthBearerLoginModule.html" title="class in org.apache.kafka.common.security.oauthbearer" target="classFrame">OAuthBearerLoginModule</a></li>
 <li><a href="org/apache/kafka/common/security/oauthbearer/OAuthBearerToken.html" title="interface in org.apache.kafka.common.security.oauthbearer" target="classFrame"><span class="interfaceName">OAuthBearerToken</span></a></li>
diff --git a/26/javadoc/allclasses-noframe.html b/26/javadoc/allclasses-noframe.html
index 883cda8..fa00553 100644
--- a/26/javadoc/allclasses-noframe.html
+++ b/26/javadoc/allclasses-noframe.html
@@ -372,6 +372,7 @@
 <li><a href="org/apache/kafka/common/errors/NotEnoughReplicasException.html" title="class in org.apache.kafka.common.errors">NotEnoughReplicasException</a></li>
 <li><a href="org/apache/kafka/connect/errors/NotFoundException.html" title="class in org.apache.kafka.connect.errors">NotFoundException</a></li>
 <li><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a></li>
+<li><a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">NotLeaderOrFollowerException</a></li>
 <li><a href="org/apache/kafka/common/security/oauthbearer/OAuthBearerExtensionsValidatorCallback.html" title="class in org.apache.kafka.common.security.oauthbearer">OAuthBearerExtensionsValidatorCallback</a></li>
 <li><a href="org/apache/kafka/common/security/oauthbearer/OAuthBearerLoginModule.html" title="class in org.apache.kafka.common.security.oauthbearer">OAuthBearerLoginModule</a></li>
 <li><a href="org/apache/kafka/common/security/oauthbearer/OAuthBearerToken.html" title="interface in org.apache.kafka.common.security.oauthbearer"><span class="interfaceName">OAuthBearerToken</span></a></li>
diff --git a/26/javadoc/deprecated-list.html b/26/javadoc/deprecated-list.html
index c9e24e2..604bfb7 100644
--- a/26/javadoc/deprecated-list.html
+++ b/26/javadoc/deprecated-list.html
@@ -73,6 +73,7 @@
 <ul>
 <li><a href="#interface">Deprecated Interfaces</a></li>
 <li><a href="#class">Deprecated Classes</a></li>
+<li><a href="#exception">Deprecated Exceptions</a></li>
 <li><a href="#field">Deprecated Fields</a></li>
 <li><a href="#method">Deprecated Methods</a></li>
 <li><a href="#constructor">Deprecated Constructors</a></li>
@@ -169,6 +170,26 @@
 </table>
 </li>
 </ul>
+<a name="exception">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<table class="deprecatedSummary" border="0" cellpadding="3" cellspacing="0" summary="Deprecated Exceptions table, listing deprecated exceptions, and an explanation">
+<caption><span>Deprecated Exceptions</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colOne" scope="col">Exceptions and Description</th>
+</tr>
+<tbody>
+<tr class="altColor">
+<td class="colOne"><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.NotLeaderForPartitionException</a>
+<div class="block"><span class="deprecationComment">since 2.7. Use <a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><code>NotLeaderOrFollowerException</code></a>.</span></div>
+</td>
+</tr>
+</tbody>
+</table>
+</li>
+</ul>
 <a name="field">
 <!--   -->
 </a>
diff --git a/26/javadoc/index-all.html b/26/javadoc/index-all.html
index b8da50e..1c9615d 100644
--- a/26/javadoc/index-all.html
+++ b/26/javadoc/index-all.html
@@ -8650,15 +8650,38 @@
 <dd>&nbsp;</dd>
 <dt><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderForPartitionException</span></a> - Exception in <a href="org/apache/kafka/common/errors/package-summary.html">org.apache.kafka.common.errors</a></dt>
 <dd>
-<div class="block">This server is not the leader for the given partition</div>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>
+<div class="block"><span class="deprecationComment">since 2.7. Use <a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><code>NotLeaderOrFollowerException</code></a>.</span></div>
+</div>
 </dd>
 <dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException--">NotLeaderForPartitionException()</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a></dt>
-<dd>&nbsp;</dd>
+<dd>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
+&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.String-">NotLeaderForPartitionException(String)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a></dt>
-<dd>&nbsp;</dd>
+<dd>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
+&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.Throwable-">NotLeaderForPartitionException(Throwable)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a></dt>
-<dd>&nbsp;</dd>
+<dd>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
+&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.String-java.lang.Throwable-">NotLeaderForPartitionException(String, Throwable)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a></dt>
+<dd>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
+&nbsp;</dd>
+<dt><a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderOrFollowerException</span></a> - Exception in <a href="org/apache/kafka/common/errors/package-summary.html">org.apache.kafka.common.errors</a></dt>
+<dd>
+<div class="block">Broker returns this error if a request could not be processed because the broker is not the leader
+ or follower for a topic partition.</div>
+</dd>
+<dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException--">NotLeaderOrFollowerException()</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">NotLeaderOrFollowerException</a></dt>
+<dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException-java.lang.String-">NotLeaderOrFollowerException(String)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">NotLeaderOrFollowerException</a></dt>
+<dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException-java.lang.Throwable-">NotLeaderOrFollowerException(Throwable)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">NotLeaderOrFollowerException</a></dt>
+<dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException-java.lang.String-java.lang.Throwable-">NotLeaderOrFollowerException(String, Throwable)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">NotLeaderOrFollowerException</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/kafka/connect/data/SchemaAndValue.html#NULL">NULL</a></span> - Static variable in class org.apache.kafka.connect.data.<a href="org/apache/kafka/connect/data/SchemaAndValue.html" title="class in org.apache.kafka.connect.data">SchemaAndValue</a></dt>
 <dd>&nbsp;</dd>
@@ -10569,7 +10592,9 @@
 <dt><span class="memberNameLink"><a href="org/apache/kafka/streams/kstream/Repartitioned.html#Repartitioned-org.apache.kafka.streams.kstream.Repartitioned-">Repartitioned(Repartitioned&lt;K, V&gt;)</a></span> - Constructor for class org.apache.kafka.streams.kstream.<a href="org/apache/kafka/streams/kstream/Repartitioned.html" title="class in org.apache.kafka.streams.kstream">Repartitioned</a></dt>
 <dd>&nbsp;</dd>
 <dt><a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">ReplicaNotAvailableException</span></a> - Exception in <a href="org/apache/kafka/common/errors/package-summary.html">org.apache.kafka.common.errors</a></dt>
-<dd>&nbsp;</dd>
+<dd>
+<div class="block">The replica is not available for the requested topic partition.</div>
+</dd>
 <dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html#ReplicaNotAvailableException-java.lang.String-">ReplicaNotAvailableException(String)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors">ReplicaNotAvailableException</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html#ReplicaNotAvailableException-java.lang.String-java.lang.Throwable-">ReplicaNotAvailableException(String, Throwable)</a></span> - Constructor for exception org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors">ReplicaNotAvailableException</a></dt>
diff --git a/26/javadoc/org/apache/kafka/clients/admin/package-tree.html b/26/javadoc/org/apache/kafka/clients/admin/package-tree.html
index a8a3371..711d954 100644
--- a/26/javadoc/org/apache/kafka/clients/admin/package-tree.html
+++ b/26/javadoc/org/apache/kafka/clients/admin/package-tree.html
@@ -206,8 +206,8 @@
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true [...]
 <ul>
 <li type="circle">org.apache.kafka.clients.admin.<a href="../../../../../org/apache/kafka/clients/admin/ConfigEntry.ConfigType.html" title="enum in org.apache.kafka.clients.admin"><span class="typeNameLink">ConfigEntry.ConfigType</span></a></li>
-<li type="circle">org.apache.kafka.clients.admin.<a href="../../../../../org/apache/kafka/clients/admin/ConfigEntry.ConfigSource.html" title="enum in org.apache.kafka.clients.admin"><span class="typeNameLink">ConfigEntry.ConfigSource</span></a></li>
 <li type="circle">org.apache.kafka.clients.admin.<a href="../../../../../org/apache/kafka/clients/admin/AlterConfigOp.OpType.html" title="enum in org.apache.kafka.clients.admin"><span class="typeNameLink">AlterConfigOp.OpType</span></a></li>
+<li type="circle">org.apache.kafka.clients.admin.<a href="../../../../../org/apache/kafka/clients/admin/ConfigEntry.ConfigSource.html" title="enum in org.apache.kafka.clients.admin"><span class="typeNameLink">ConfigEntry.ConfigSource</span></a></li>
 </ul>
 </li>
 </ul>
diff --git a/26/javadoc/org/apache/kafka/clients/consumer/package-tree.html b/26/javadoc/org/apache/kafka/clients/consumer/package-tree.html
index f7a4c5a..c53d2f3 100644
--- a/26/javadoc/org/apache/kafka/clients/consumer/package-tree.html
+++ b/26/javadoc/org/apache/kafka/clients/consumer/package-tree.html
@@ -173,8 +173,8 @@
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true [...]
 <ul>
-<li type="circle">org.apache.kafka.clients.consumer.<a href="../../../../../org/apache/kafka/clients/consumer/ConsumerPartitionAssignor.RebalanceProtocol.html" title="enum in org.apache.kafka.clients.consumer"><span class="typeNameLink">ConsumerPartitionAssignor.RebalanceProtocol</span></a></li>
 <li type="circle">org.apache.kafka.clients.consumer.<a href="../../../../../org/apache/kafka/clients/consumer/OffsetResetStrategy.html" title="enum in org.apache.kafka.clients.consumer"><span class="typeNameLink">OffsetResetStrategy</span></a></li>
+<li type="circle">org.apache.kafka.clients.consumer.<a href="../../../../../org/apache/kafka/clients/consumer/ConsumerPartitionAssignor.RebalanceProtocol.html" title="enum in org.apache.kafka.clients.consumer"><span class="typeNameLink">ConsumerPartitionAssignor.RebalanceProtocol</span></a></li>
 </ul>
 </li>
 </ul>
diff --git a/26/javadoc/org/apache/kafka/common/annotation/package-tree.html b/26/javadoc/org/apache/kafka/common/annotation/package-tree.html
index 5dbfea0..1bb1069 100644
--- a/26/javadoc/org/apache/kafka/common/annotation/package-tree.html
+++ b/26/javadoc/org/apache/kafka/common/annotation/package-tree.html
@@ -85,8 +85,8 @@
 </ul>
 <h2 title="Annotation Type Hierarchy">Annotation Type Hierarchy</h2>
 <ul>
-<li type="circle">org.apache.kafka.common.annotation.<a href="../../../../../org/apache/kafka/common/annotation/InterfaceStability.Unstable.html" title="annotation in org.apache.kafka.common.annotation"><span class="typeNameLink">InterfaceStability.Unstable</span></a> (implements java.lang.annotation.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li>
 <li type="circle">org.apache.kafka.common.annotation.<a href="../../../../../org/apache/kafka/common/annotation/InterfaceStability.Stable.html" title="annotation in org.apache.kafka.common.annotation"><span class="typeNameLink">InterfaceStability.Stable</span></a> (implements java.lang.annotation.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li>
+<li type="circle">org.apache.kafka.common.annotation.<a href="../../../../../org/apache/kafka/common/annotation/InterfaceStability.Unstable.html" title="annotation in org.apache.kafka.common.annotation"><span class="typeNameLink">InterfaceStability.Unstable</span></a> (implements java.lang.annotation.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li>
 <li type="circle">org.apache.kafka.common.annotation.<a href="../../../../../org/apache/kafka/common/annotation/InterfaceStability.Evolving.html" title="annotation in org.apache.kafka.common.annotation"><span class="typeNameLink">InterfaceStability.Evolving</span></a> (implements java.lang.annotation.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li>
 </ul>
 </div>
diff --git a/26/javadoc/org/apache/kafka/common/config/package-tree.html b/26/javadoc/org/apache/kafka/common/config/package-tree.html
index 2bc6fc0..b42ef1e 100644
--- a/26/javadoc/org/apache/kafka/common/config/package-tree.html
+++ b/26/javadoc/org/apache/kafka/common/config/package-tree.html
@@ -134,11 +134,11 @@
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true [...]
 <ul>
-<li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/ConfigDef.Width.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">ConfigDef.Width</span></a></li>
-<li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/ConfigDef.Importance.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">ConfigDef.Importance</span></a></li>
-<li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/ConfigResource.Type.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">ConfigResource.Type</span></a></li>
 <li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/ConfigDef.Type.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">ConfigDef.Type</span></a></li>
+<li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/ConfigDef.Importance.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">ConfigDef.Importance</span></a></li>
+<li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/ConfigDef.Width.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">ConfigDef.Width</span></a></li>
 <li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/SslClientAuth.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">SslClientAuth</span></a></li>
+<li type="circle">org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/ConfigResource.Type.html" title="enum in org.apache.kafka.common.config"><span class="typeNameLink">ConfigResource.Type</span></a></li>
 </ul>
 </li>
 </ul>
diff --git a/26/javadoc/org/apache/kafka/common/errors/ApiException.html b/26/javadoc/org/apache/kafka/common/errors/ApiException.html
index 4fcff44..1c0dff2 100644
--- a/26/javadoc/org/apache/kafka/common/errors/ApiException.html
+++ b/26/javadoc/org/apache/kafka/common/errors/ApiException.html
@@ -131,7 +131,7 @@ var activeTableTab = "activeTableTab";
 </dl>
 <dl>
 <dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../../org/apache/kafka/common/errors/AuthenticationException.html" title="class in org.apache.kafka.common.errors">AuthenticationException</a>, <a href="../../../../../org/apache/kafka/common/errors/AuthorizationException.html" title="class in org.apache.kafka.common.errors">AuthorizationException</a>, <a href="../../../../../org/apache/kafka/common/errors/BrokerNotAvailableException.html" title="class in org.apache.kafka.common.errors">BrokerNotAvailableException</ [...]
+<dd><a href="../../../../../org/apache/kafka/common/errors/AuthenticationException.html" title="class in org.apache.kafka.common.errors">AuthenticationException</a>, <a href="../../../../../org/apache/kafka/common/errors/AuthorizationException.html" title="class in org.apache.kafka.common.errors">AuthorizationException</a>, <a href="../../../../../org/apache/kafka/common/errors/BrokerNotAvailableException.html" title="class in org.apache.kafka.common.errors">BrokerNotAvailableException</ [...]
 </dl>
 <hr>
 <br>
diff --git a/26/javadoc/org/apache/kafka/common/errors/InvalidMetadataException.html b/26/javadoc/org/apache/kafka/common/errors/InvalidMetadataException.html
index 2fe48b0..d85cf39 100644
--- a/26/javadoc/org/apache/kafka/common/errors/InvalidMetadataException.html
+++ b/26/javadoc/org/apache/kafka/common/errors/InvalidMetadataException.html
@@ -135,7 +135,7 @@
 </dl>
 <dl>
 <dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../../org/apache/kafka/common/errors/ElectionNotNeededException.html" title="class in org.apache.kafka.common.errors">ElectionNotNeededException</a>, <a href="../../../../../org/apache/kafka/common/errors/EligibleLeadersNotAvailableException.html" title="class in org.apache.kafka.common.errors">EligibleLeadersNotAvailableException</a>, <a href="../../../../../org/apache/kafka/common/errors/FencedLeaderEpochException.html" title="class in org.apache.kafka.common.erro [...]
+<dd><a href="../../../../../org/apache/kafka/common/errors/ElectionNotNeededException.html" title="class in org.apache.kafka.common.errors">ElectionNotNeededException</a>, <a href="../../../../../org/apache/kafka/common/errors/EligibleLeadersNotAvailableException.html" title="class in org.apache.kafka.common.errors">EligibleLeadersNotAvailableException</a>, <a href="../../../../../org/apache/kafka/common/errors/FencedLeaderEpochException.html" title="class in org.apache.kafka.common.erro [...]
 </dl>
 <hr>
 <br>
diff --git a/26/javadoc/org/apache/kafka/common/errors/NotLeaderForPartitionException.html b/26/javadoc/org/apache/kafka/common/errors/NotLeaderForPartitionException.html
index 3c17355..6403576 100644
--- a/26/javadoc/org/apache/kafka/common/errors/NotLeaderForPartitionException.html
+++ b/26/javadoc/org/apache/kafka/common/errors/NotLeaderForPartitionException.html
@@ -42,7 +42,7 @@
 <div class="subNav">
 <ul class="navList">
 <li><a href="../../../../../org/apache/kafka/common/errors/NotEnoughReplicasException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/kafka/common/errors/OffsetMetadataTooLarge.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
 <li><a href="../../../../../index.html?org/apache/kafka/common/errors/NotLeaderForPartitionException.html" target="_top">Frames</a></li>
@@ -138,11 +138,19 @@
 <dt>All Implemented Interfaces:</dt>
 <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
 </dl>
+<dl>
+<dt>Direct Known Subclasses:</dt>
+<dd><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">NotLeaderOrFollowerException</a></dd>
+</dl>
 <hr>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
+<div class="block"><span class="deprecationComment">since 2.7. Use <a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><code>NotLeaderOrFollowerException</code></a>.</span></div>
+</div>
 <br>
-<pre>public class <span class="typeNameLabel">NotLeaderForPartitionException</span>
+<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
+public class <span class="typeNameLabel">NotLeaderForPartitionException</span>
 extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataException.html" title="class in org.apache.kafka.common.errors">InvalidMetadataException</a></pre>
-<div class="block">This server is not the leader for the given partition</div>
+<div class="block">This server is not the leader for the given partition.</div>
 <dl>
 <dt><span class="seeLabel">See Also:</span></dt>
 <dd><a href="../../../../../serialized-form.html#org.apache.kafka.common.errors.NotLeaderForPartitionException">Serialized Form</a></dd>
@@ -165,17 +173,25 @@ extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataEx
 <th class="colOne" scope="col">Constructor and Description</th>
 </tr>
 <tr class="altColor">
-<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException--">NotLeaderForPartitionException</a></span>()</code>&nbsp;</td>
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException--">NotLeaderForPartitionException</a></span>()</code>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
+&nbsp;</td>
 </tr>
 <tr class="rowColor">
-<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.String-">NotLeaderForPartitionException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>&nbsp;</td>
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.String-">NotLeaderForPartitionException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
+&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.String-java.lang.Throwable-">NotLeaderForPartitionException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
-                              <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>&nbsp;</td>
+                              <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
+&nbsp;</td>
 </tr>
 <tr class="rowColor">
-<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.Throwable-">NotLeaderForPartitionException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>&nbsp;</td>
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html#NotLeaderForPartitionException-java.lang.Throwable-">NotLeaderForPartitionException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
+&nbsp;</td>
 </tr>
 </table>
 </li>
@@ -228,6 +244,7 @@ extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataEx
 <li class="blockList">
 <h4>NotLeaderForPartitionException</h4>
 <pre>public&nbsp;NotLeaderForPartitionException()</pre>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
 </li>
 </ul>
 <a name="NotLeaderForPartitionException-java.lang.String-">
@@ -237,6 +254,7 @@ extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataEx
 <li class="blockList">
 <h4>NotLeaderForPartitionException</h4>
 <pre>public&nbsp;NotLeaderForPartitionException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</pre>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
 </li>
 </ul>
 <a name="NotLeaderForPartitionException-java.lang.Throwable-">
@@ -246,6 +264,7 @@ extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataEx
 <li class="blockList">
 <h4>NotLeaderForPartitionException</h4>
 <pre>public&nbsp;NotLeaderForPartitionException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</pre>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
 </li>
 </ul>
 <a name="NotLeaderForPartitionException-java.lang.String-java.lang.Throwable-">
@@ -256,6 +275,7 @@ extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataEx
 <h4>NotLeaderForPartitionException</h4>
 <pre>public&nbsp;NotLeaderForPartitionException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                                       <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</pre>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
 </li>
 </ul>
 </li>
@@ -286,7 +306,7 @@ extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataEx
 <div class="subNav">
 <ul class="navList">
 <li><a href="../../../../../org/apache/kafka/common/errors/NotEnoughReplicasException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/kafka/common/errors/OffsetMetadataTooLarge.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
 <li><a href="../../../../../index.html?org/apache/kafka/common/errors/NotLeaderForPartitionException.html" target="_top">Frames</a></li>
diff --git a/26/javadoc/org/apache/kafka/common/errors/ReplicaNotAvailableException.html b/26/javadoc/org/apache/kafka/common/errors/NotLeaderOrFollowerException.html
similarity index 76%
copy from 26/javadoc/org/apache/kafka/common/errors/ReplicaNotAvailableException.html
copy to 26/javadoc/org/apache/kafka/common/errors/NotLeaderOrFollowerException.html
index a45d1a7..107be60 100644
--- a/26/javadoc/org/apache/kafka/common/errors/ReplicaNotAvailableException.html
+++ b/26/javadoc/org/apache/kafka/common/errors/NotLeaderOrFollowerException.html
@@ -3,7 +3,7 @@
 <html lang="en">
 <head>
 <!-- Generated by javadoc -->
-<title>ReplicaNotAvailableException (kafka 2.6.0 API)</title>
+<title>NotLeaderOrFollowerException (kafka 2.6.0 API)</title>
 <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
 <script type="text/javascript" src="../../../../../script.js"></script>
 </head>
@@ -11,7 +11,7 @@
 <script type="text/javascript"><!--
     try {
         if (location.href.indexOf('is-external=true') == -1) {
-            parent.document.title="ReplicaNotAvailableException (kafka 2.6.0 API)";
+            parent.document.title="NotLeaderOrFollowerException (kafka 2.6.0 API)";
         }
     }
     catch(err) {
@@ -41,12 +41,12 @@
 </div>
 <div class="subNav">
 <ul class="navList">
-<li><a href="../../../../../org/apache/kafka/common/errors/RecordTooLargeException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/kafka/common/errors/RetriableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/OffsetMetadataTooLarge.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
-<li><a href="../../../../../index.html?org/apache/kafka/common/errors/ReplicaNotAvailableException.html" target="_top">Frames</a></li>
-<li><a href="ReplicaNotAvailableException.html" target="_top">No&nbsp;Frames</a></li>
+<li><a href="../../../../../index.html?org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" target="_top">Frames</a></li>
+<li><a href="NotLeaderOrFollowerException.html" target="_top">No&nbsp;Frames</a></li>
 </ul>
 <ul class="navList" id="allclasses_navbar_top">
 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
@@ -85,7 +85,7 @@
 <!-- ======== START OF CLASS DATA ======== -->
 <div class="header">
 <div class="subTitle">org.apache.kafka.common.errors</div>
-<h2 title="Class ReplicaNotAvailableException" class="title">Class ReplicaNotAvailableException</h2>
+<h2 title="Class NotLeaderOrFollowerException" class="title">Class NotLeaderOrFollowerException</h2>
 </div>
 <div class="contentContainer">
 <ul class="inheritance">
@@ -107,7 +107,22 @@
 <li><a href="../../../../../org/apache/kafka/common/errors/ApiException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.ApiException</a></li>
 <li>
 <ul class="inheritance">
-<li>org.apache.kafka.common.errors.ReplicaNotAvailableException</li>
+<li><a href="../../../../../org/apache/kafka/common/errors/RetriableException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.RetriableException</a></li>
+<li>
+<ul class="inheritance">
+<li><a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.InvalidMetadataException</a></li>
+<li>
+<ul class="inheritance">
+<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.NotLeaderForPartitionException</a></li>
+<li>
+<ul class="inheritance">
+<li>org.apache.kafka.common.errors.NotLeaderOrFollowerException</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
 </ul>
 </li>
 </ul>
@@ -130,11 +145,17 @@
 </dl>
 <hr>
 <br>
-<pre>public class <span class="typeNameLabel">ReplicaNotAvailableException</span>
-extends <a href="../../../../../org/apache/kafka/common/errors/ApiException.html" title="class in org.apache.kafka.common.errors">ApiException</a></pre>
+<pre>public class <span class="typeNameLabel">NotLeaderOrFollowerException</span>
+extends <a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a></pre>
+<div class="block">Broker returns this error if a request could not be processed because the broker is not the leader
+ or follower for a topic partition. This could be a transient exception during leader elections and
+ reassignments. For `Produce` and other requests which are intended only for the leader, this exception
+ indicates that the broker is not the current leader. For consumer `Fetch` requests which may be
+ satisfied by a leader or follower, this exception indicates that the broker is not a replica
+ of the topic partition.</div>
 <dl>
 <dt><span class="seeLabel">See Also:</span></dt>
-<dd><a href="../../../../../serialized-form.html#org.apache.kafka.common.errors.ReplicaNotAvailableException">Serialized Form</a></dd>
+<dd><a href="../../../../../serialized-form.html#org.apache.kafka.common.errors.NotLeaderOrFollowerException">Serialized Form</a></dd>
 </dl>
 </li>
 </ul>
@@ -154,14 +175,17 @@ extends <a href="../../../../../org/apache/kafka/common/errors/ApiException.html
 <th class="colOne" scope="col">Constructor and Description</th>
 </tr>
 <tr class="altColor">
-<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/ReplicaNotAvailableException.html#ReplicaNotAvailableException-java.lang.String-">ReplicaNotAvailableException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>&nbsp;</td>
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException--">NotLeaderOrFollowerException</a></span>()</code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
-<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/ReplicaNotAvailableException.html#ReplicaNotAvailableException-java.lang.String-java.lang.Throwable-">ReplicaNotAvailableException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
-                            <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>&nbsp;</td>
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException-java.lang.String-">NotLeaderOrFollowerException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>&nbsp;</td>
 </tr>
 <tr class="altColor">
-<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/ReplicaNotAvailableException.html#ReplicaNotAvailableException-java.lang.Throwable-">ReplicaNotAvailableException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>&nbsp;</td>
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException-java.lang.String-java.lang.Throwable-">NotLeaderOrFollowerException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
+                            <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html#NotLeaderOrFollowerException-java.lang.Throwable-">NotLeaderOrFollowerException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code>&nbsp;</td>
 </tr>
 </table>
 </li>
@@ -207,32 +231,41 @@ extends <a href="../../../../../org/apache/kafka/common/errors/ApiException.html
 <!--   -->
 </a>
 <h3>Constructor Detail</h3>
-<a name="ReplicaNotAvailableException-java.lang.String-">
+<a name="NotLeaderOrFollowerException--">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
-<h4>ReplicaNotAvailableException</h4>
-<pre>public&nbsp;ReplicaNotAvailableException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</pre>
+<h4>NotLeaderOrFollowerException</h4>
+<pre>public&nbsp;NotLeaderOrFollowerException()</pre>
 </li>
 </ul>
-<a name="ReplicaNotAvailableException-java.lang.String-java.lang.Throwable-">
+<a name="NotLeaderOrFollowerException-java.lang.String-">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
-<h4>ReplicaNotAvailableException</h4>
-<pre>public&nbsp;ReplicaNotAvailableException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
-                                    <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</pre>
+<h4>NotLeaderOrFollowerException</h4>
+<pre>public&nbsp;NotLeaderOrFollowerException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</pre>
+</li>
+</ul>
+<a name="NotLeaderOrFollowerException-java.lang.Throwable-">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>NotLeaderOrFollowerException</h4>
+<pre>public&nbsp;NotLeaderOrFollowerException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</pre>
 </li>
 </ul>
-<a name="ReplicaNotAvailableException-java.lang.Throwable-">
+<a name="NotLeaderOrFollowerException-java.lang.String-java.lang.Throwable-">
 <!--   -->
 </a>
 <ul class="blockListLast">
 <li class="blockList">
-<h4>ReplicaNotAvailableException</h4>
-<pre>public&nbsp;ReplicaNotAvailableException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</pre>
+<h4>NotLeaderOrFollowerException</h4>
+<pre>public&nbsp;NotLeaderOrFollowerException(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
+                                    <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</pre>
 </li>
 </ul>
 </li>
@@ -262,12 +295,12 @@ extends <a href="../../../../../org/apache/kafka/common/errors/ApiException.html
 </div>
 <div class="subNav">
 <ul class="navList">
-<li><a href="../../../../../org/apache/kafka/common/errors/RecordTooLargeException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/kafka/common/errors/RetriableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/OffsetMetadataTooLarge.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
-<li><a href="../../../../../index.html?org/apache/kafka/common/errors/ReplicaNotAvailableException.html" target="_top">Frames</a></li>
-<li><a href="ReplicaNotAvailableException.html" target="_top">No&nbsp;Frames</a></li>
+<li><a href="../../../../../index.html?org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" target="_top">Frames</a></li>
+<li><a href="NotLeaderOrFollowerException.html" target="_top">No&nbsp;Frames</a></li>
 </ul>
 <ul class="navList" id="allclasses_navbar_bottom">
 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
diff --git a/26/javadoc/org/apache/kafka/common/errors/OffsetMetadataTooLarge.html b/26/javadoc/org/apache/kafka/common/errors/OffsetMetadataTooLarge.html
index fb3b5d5..4cf7c68 100644
--- a/26/javadoc/org/apache/kafka/common/errors/OffsetMetadataTooLarge.html
+++ b/26/javadoc/org/apache/kafka/common/errors/OffsetMetadataTooLarge.html
@@ -41,7 +41,7 @@
 </div>
 <div class="subNav">
 <ul class="navList">
-<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
 <li><a href="../../../../../org/apache/kafka/common/errors/OffsetNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
@@ -275,7 +275,7 @@ extends <a href="../../../../../org/apache/kafka/common/errors/ApiException.html
 </div>
 <div class="subNav">
 <ul class="navList">
-<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
 <li><a href="../../../../../org/apache/kafka/common/errors/OffsetNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
diff --git a/26/javadoc/org/apache/kafka/common/errors/ReplicaNotAvailableException.html b/26/javadoc/org/apache/kafka/common/errors/ReplicaNotAvailableException.html
index a45d1a7..aa33617 100644
--- a/26/javadoc/org/apache/kafka/common/errors/ReplicaNotAvailableException.html
+++ b/26/javadoc/org/apache/kafka/common/errors/ReplicaNotAvailableException.html
@@ -107,6 +107,12 @@
 <li><a href="../../../../../org/apache/kafka/common/errors/ApiException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.ApiException</a></li>
 <li>
 <ul class="inheritance">
+<li><a href="../../../../../org/apache/kafka/common/errors/RetriableException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.RetriableException</a></li>
+<li>
+<ul class="inheritance">
+<li><a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.InvalidMetadataException</a></li>
+<li>
+<ul class="inheritance">
 <li>org.apache.kafka.common.errors.ReplicaNotAvailableException</li>
 </ul>
 </li>
@@ -121,6 +127,10 @@
 </ul>
 </li>
 </ul>
+</li>
+</ul>
+</li>
+</ul>
 <div class="description">
 <ul class="blockList">
 <li class="blockList">
@@ -131,7 +141,11 @@
 <hr>
 <br>
 <pre>public class <span class="typeNameLabel">ReplicaNotAvailableException</span>
-extends <a href="../../../../../org/apache/kafka/common/errors/ApiException.html" title="class in org.apache.kafka.common.errors">ApiException</a></pre>
+extends <a href="../../../../../org/apache/kafka/common/errors/InvalidMetadataException.html" title="class in org.apache.kafka.common.errors">InvalidMetadataException</a></pre>
+<div class="block">The replica is not available for the requested topic partition. This may be
+ a transient exception during reassignments. From version 2.6 onwards, Fetch requests
+ and other requests intended only for the leader or follower of the topic partition return
+ <a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><code>NotLeaderOrFollowerException</code></a> if the broker is a not a replica of the partition.</div>
 <dl>
 <dt><span class="seeLabel">See Also:</span></dt>
 <dd><a href="../../../../../serialized-form.html#org.apache.kafka.common.errors.ReplicaNotAvailableException">Serialized Form</a></dd>
diff --git a/26/javadoc/org/apache/kafka/common/errors/package-frame.html b/26/javadoc/org/apache/kafka/common/errors/package-frame.html
index 3a10bc8..d898538 100644
--- a/26/javadoc/org/apache/kafka/common/errors/package-frame.html
+++ b/26/javadoc/org/apache/kafka/common/errors/package-frame.html
@@ -74,6 +74,7 @@
 <li><a href="NotEnoughReplicasAfterAppendException.html" title="class in org.apache.kafka.common.errors" target="classFrame">NotEnoughReplicasAfterAppendException</a></li>
 <li><a href="NotEnoughReplicasException.html" title="class in org.apache.kafka.common.errors" target="classFrame">NotEnoughReplicasException</a></li>
 <li><a href="NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors" target="classFrame">NotLeaderForPartitionException</a></li>
+<li><a href="NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors" target="classFrame">NotLeaderOrFollowerException</a></li>
 <li><a href="OffsetMetadataTooLarge.html" title="class in org.apache.kafka.common.errors" target="classFrame">OffsetMetadataTooLarge</a></li>
 <li><a href="OffsetNotAvailableException.html" title="class in org.apache.kafka.common.errors" target="classFrame">OffsetNotAvailableException</a></li>
 <li><a href="OffsetOutOfRangeException.html" title="class in org.apache.kafka.common.errors" target="classFrame">OffsetOutOfRangeException</a></li>
diff --git a/26/javadoc/org/apache/kafka/common/errors/package-summary.html b/26/javadoc/org/apache/kafka/common/errors/package-summary.html
index 2a9ef43..fadc449 100644
--- a/26/javadoc/org/apache/kafka/common/errors/package-summary.html
+++ b/26/javadoc/org/apache/kafka/common/errors/package-summary.html
@@ -386,214 +386,223 @@
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a></td>
-<td class="colLast">
-<div class="block">This server is not the leader for the given partition</div>
+<td class="colLast">Deprecated
+<div class="block"><span class="deprecationComment">since 2.7.</span></div>
 </td>
 </tr>
 <tr class="altColor">
+<td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">NotLeaderOrFollowerException</a></td>
+<td class="colLast">
+<div class="block">Broker returns this error if a request could not be processed because the broker is not the leader
+ or follower for a topic partition.</div>
+</td>
+</tr>
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/OffsetMetadataTooLarge.html" title="class in org.apache.kafka.common.errors">OffsetMetadataTooLarge</a></td>
 <td class="colLast">
 <div class="block">The client has tried to save its offset with associated metadata larger than the maximum size allowed by the server.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/OffsetNotAvailableException.html" title="class in org.apache.kafka.common.errors">OffsetNotAvailableException</a></td>
 <td class="colLast">
 <div class="block">Indicates that the leader is not able to guarantee monotonically increasing offsets
  due to the high watermark lagging behind the epoch start offset after a recent leader election</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/OffsetOutOfRangeException.html" title="class in org.apache.kafka.common.errors">OffsetOutOfRangeException</a></td>
 <td class="colLast">
 <div class="block">No reset policy has been defined, and the offsets for these partitions are either larger or smaller
  than the range of offsets the server has for the given partition.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/OperationNotAttemptedException.html" title="class in org.apache.kafka.common.errors">OperationNotAttemptedException</a></td>
 <td class="colLast">
 <div class="block">Indicates that the broker did not attempt to execute this operation.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/OutOfOrderSequenceException.html" title="class in org.apache.kafka.common.errors">OutOfOrderSequenceException</a></td>
 <td class="colLast">
 <div class="block">This exception indicates that the broker received an unexpected sequence number from the producer,
  which means that data may have been lost.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/PolicyViolationException.html" title="class in org.apache.kafka.common.errors">PolicyViolationException</a></td>
 <td class="colLast">
 <div class="block">Exception thrown if a create topics request does not satisfy the configured policy for a topic.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/PreferredLeaderNotAvailableException.html" title="class in org.apache.kafka.common.errors">PreferredLeaderNotAvailableException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/ProducerFencedException.html" title="class in org.apache.kafka.common.errors">ProducerFencedException</a></td>
 <td class="colLast">
 <div class="block">This fatal exception indicates that another producer with the same <code>transactional.id</code> has been
  started.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/ReassignmentInProgressException.html" title="class in org.apache.kafka.common.errors">ReassignmentInProgressException</a></td>
 <td class="colLast">
 <div class="block">Thrown if a request cannot be completed because a partition reassignment is in progress.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/RebalanceInProgressException.html" title="class in org.apache.kafka.common.errors">RebalanceInProgressException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/RecordBatchTooLargeException.html" title="class in org.apache.kafka.common.errors">RecordBatchTooLargeException</a></td>
 <td class="colLast">
 <div class="block">This record batch is larger than the maximum allowable size</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/RecordTooLargeException.html" title="class in org.apache.kafka.common.errors">RecordTooLargeException</a></td>
 <td class="colLast">
 <div class="block">This record is larger than the maximum allowable size</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors">ReplicaNotAvailableException</a></td>
-<td class="colLast">&nbsp;</td>
+<td class="colLast">
+<div class="block">The replica is not available for the requested topic partition.</div>
+</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/RetriableException.html" title="class in org.apache.kafka.common.errors">RetriableException</a></td>
 <td class="colLast">
 <div class="block">A retryable exception is a transient exception that if retried may succeed.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/SaslAuthenticationException.html" title="class in org.apache.kafka.common.errors">SaslAuthenticationException</a></td>
 <td class="colLast">
 <div class="block">This exception indicates that SASL authentication has failed.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/SecurityDisabledException.html" title="class in org.apache.kafka.common.errors">SecurityDisabledException</a></td>
 <td class="colLast">
 <div class="block">An error indicating that security is disabled on the broker.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/SerializationException.html" title="class in org.apache.kafka.common.errors">SerializationException</a></td>
 <td class="colLast">
 <div class="block">Any exception during serialization in the producer</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/SslAuthenticationException.html" title="class in org.apache.kafka.common.errors">SslAuthenticationException</a></td>
 <td class="colLast">
 <div class="block">This exception indicates that SSL handshake has failed.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/StaleBrokerEpochException.html" title="class in org.apache.kafka.common.errors">StaleBrokerEpochException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/TimeoutException.html" title="class in org.apache.kafka.common.errors">TimeoutException</a></td>
 <td class="colLast">
 <div class="block">Indicates that a request timed out.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/TopicAuthorizationException.html" title="class in org.apache.kafka.common.errors">TopicAuthorizationException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/TopicDeletionDisabledException.html" title="class in org.apache.kafka.common.errors">TopicDeletionDisabledException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/TopicExistsException.html" title="class in org.apache.kafka.common.errors">TopicExistsException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/TransactionalIdAuthorizationException.html" title="class in org.apache.kafka.common.errors">TransactionalIdAuthorizationException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/TransactionCoordinatorFencedException.html" title="class in org.apache.kafka.common.errors">TransactionCoordinatorFencedException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnknownLeaderEpochException.html" title="class in org.apache.kafka.common.errors">UnknownLeaderEpochException</a></td>
 <td class="colLast">
 <div class="block">The request contained a leader epoch which is larger than that on the broker that received the
  request.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnknownMemberIdException.html" title="class in org.apache.kafka.common.errors">UnknownMemberIdException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnknownProducerIdException.html" title="class in org.apache.kafka.common.errors">UnknownProducerIdException</a></td>
 <td class="colLast">
 <div class="block">This exception is raised by the broker if it could not locate the producer metadata associated with the producerId
  in question.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnknownServerException.html" title="class in org.apache.kafka.common.errors">UnknownServerException</a></td>
 <td class="colLast">
 <div class="block">An error occurred on the server for which the client doesn't have a corresponding error code.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnknownTopicOrPartitionException.html" title="class in org.apache.kafka.common.errors">UnknownTopicOrPartitionException</a></td>
 <td class="colLast">
 <div class="block">This topic/partition doesn't exist.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnstableOffsetCommitException.html" title="class in org.apache.kafka.common.errors">UnstableOffsetCommitException</a></td>
 <td class="colLast">
 <div class="block">Exception thrown when there are unstable offsets for the requested topic partitions.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnsupportedByAuthenticationException.html" title="class in org.apache.kafka.common.errors">UnsupportedByAuthenticationException</a></td>
 <td class="colLast">
 <div class="block">Authentication mechanism does not support the requested function.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnsupportedCompressionTypeException.html" title="class in org.apache.kafka.common.errors">UnsupportedCompressionTypeException</a></td>
 <td class="colLast">
 <div class="block">The requesting client does not support the compression type of given partition.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnsupportedForMessageFormatException.html" title="class in org.apache.kafka.common.errors">UnsupportedForMessageFormatException</a></td>
 <td class="colLast">
 <div class="block">The message format version does not support the requested function.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnsupportedSaslMechanismException.html" title="class in org.apache.kafka.common.errors">UnsupportedSaslMechanismException</a></td>
 <td class="colLast">
 <div class="block">This exception indicates that the SASL mechanism requested by the client
  is not enabled on the broker.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/UnsupportedVersionException.html" title="class in org.apache.kafka.common.errors">UnsupportedVersionException</a></td>
 <td class="colLast">
 <div class="block">Indicates that a request API or version needed by the client is not supported by the broker.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/kafka/common/errors/WakeupException.html" title="class in org.apache.kafka.common.errors">WakeupException</a></td>
 <td class="colLast">
 <div class="block">Exception used to indicate preemption of a blocking operation by an external thread.</div>
diff --git a/26/javadoc/org/apache/kafka/common/errors/package-tree.html b/26/javadoc/org/apache/kafka/common/errors/package-tree.html
index cd66e90..f36ba44 100644
--- a/26/javadoc/org/apache/kafka/common/errors/package-tree.html
+++ b/26/javadoc/org/apache/kafka/common/errors/package-tree.html
@@ -158,7 +158,6 @@
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/RebalanceInProgressException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RebalanceInProgressException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/RecordBatchTooLargeException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RecordBatchTooLargeException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/RecordTooLargeException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RecordTooLargeException</span></a></li>
-<li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">ReplicaNotAvailableException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/RetriableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RetriableException</span></a>
 <ul>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/CoordinatorLoadInProgressException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">CoordinatorLoadInProgressException</span></a></li>
@@ -176,8 +175,13 @@
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/LeaderNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">LeaderNotAvailableException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/ListenerNotFoundException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">ListenerNotFoundException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/NetworkException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NetworkException</span></a></li>
-<li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderForPartitionException</span></a></li>
+<li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderForPartitionException</span></a>
+<ul>
+<li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderOrFollowerException</span></a></li>
+</ul>
+</li>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/PreferredLeaderNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">PreferredLeaderNotAvailableException</span></a></li>
+<li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">ReplicaNotAvailableException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="../../../../../org/apache/kafka/common/errors/UnknownTopicOrPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">UnknownTopicOrPartitionException</span></a></li>
 </ul>
 </li>
diff --git a/26/javadoc/org/apache/kafka/common/package-tree.html b/26/javadoc/org/apache/kafka/common/package-tree.html
index 7bd9ab1..2b34bb7 100644
--- a/26/javadoc/org/apache/kafka/common/package-tree.html
+++ b/26/javadoc/org/apache/kafka/common/package-tree.html
@@ -134,8 +134,8 @@
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true [...]
 <ul>
 <li type="circle">org.apache.kafka.common.<a href="../../../../org/apache/kafka/common/ElectionType.html" title="enum in org.apache.kafka.common"><span class="typeNameLink">ElectionType</span></a></li>
-<li type="circle">org.apache.kafka.common.<a href="../../../../org/apache/kafka/common/IsolationLevel.html" title="enum in org.apache.kafka.common"><span class="typeNameLink">IsolationLevel</span></a></li>
 <li type="circle">org.apache.kafka.common.<a href="../../../../org/apache/kafka/common/ConsumerGroupState.html" title="enum in org.apache.kafka.common"><span class="typeNameLink">ConsumerGroupState</span></a></li>
+<li type="circle">org.apache.kafka.common.<a href="../../../../org/apache/kafka/common/IsolationLevel.html" title="enum in org.apache.kafka.common"><span class="typeNameLink">IsolationLevel</span></a></li>
 </ul>
 </li>
 </ul>
diff --git a/26/javadoc/org/apache/kafka/common/resource/package-tree.html b/26/javadoc/org/apache/kafka/common/resource/package-tree.html
index fd2b619..82bc1db 100644
--- a/26/javadoc/org/apache/kafka/common/resource/package-tree.html
+++ b/26/javadoc/org/apache/kafka/common/resource/package-tree.html
@@ -92,8 +92,8 @@
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true [...]
 <ul>
-<li type="circle">org.apache.kafka.common.resource.<a href="../../../../../org/apache/kafka/common/resource/PatternType.html" title="enum in org.apache.kafka.common.resource"><span class="typeNameLink">PatternType</span></a></li>
 <li type="circle">org.apache.kafka.common.resource.<a href="../../../../../org/apache/kafka/common/resource/ResourceType.html" title="enum in org.apache.kafka.common.resource"><span class="typeNameLink">ResourceType</span></a></li>
+<li type="circle">org.apache.kafka.common.resource.<a href="../../../../../org/apache/kafka/common/resource/PatternType.html" title="enum in org.apache.kafka.common.resource"><span class="typeNameLink">PatternType</span></a></li>
 </ul>
 </li>
 </ul>
diff --git a/26/javadoc/org/apache/kafka/streams/errors/package-tree.html b/26/javadoc/org/apache/kafka/streams/errors/package-tree.html
index 9b12a23..e7f7f3f 100644
--- a/26/javadoc/org/apache/kafka/streams/errors/package-tree.html
+++ b/26/javadoc/org/apache/kafka/streams/errors/package-tree.html
@@ -129,8 +129,8 @@
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true [...]
 <ul>
-<li type="circle">org.apache.kafka.streams.errors.<a href="../../../../../org/apache/kafka/streams/errors/DeserializationExceptionHandler.DeserializationHandlerResponse.html" title="enum in org.apache.kafka.streams.errors"><span class="typeNameLink">DeserializationExceptionHandler.DeserializationHandlerResponse</span></a></li>
 <li type="circle">org.apache.kafka.streams.errors.<a href="../../../../../org/apache/kafka/streams/errors/ProductionExceptionHandler.ProductionExceptionHandlerResponse.html" title="enum in org.apache.kafka.streams.errors"><span class="typeNameLink">ProductionExceptionHandler.ProductionExceptionHandlerResponse</span></a></li>
+<li type="circle">org.apache.kafka.streams.errors.<a href="../../../../../org/apache/kafka/streams/errors/DeserializationExceptionHandler.DeserializationHandlerResponse.html" title="enum in org.apache.kafka.streams.errors"><span class="typeNameLink">DeserializationExceptionHandler.DeserializationHandlerResponse</span></a></li>
 </ul>
 </li>
 </ul>
diff --git a/26/javadoc/overview-tree.html b/26/javadoc/overview-tree.html
index 8e25c0a..50c5496 100644
--- a/26/javadoc/overview-tree.html
+++ b/26/javadoc/overview-tree.html
@@ -531,7 +531,6 @@
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/RebalanceInProgressException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RebalanceInProgressException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/RecordBatchTooLargeException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RecordBatchTooLargeException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/RecordTooLargeException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RecordTooLargeException</span></a></li>
-<li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">ReplicaNotAvailableException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/RetriableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">RetriableException</span></a>
 <ul>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/CoordinatorLoadInProgressException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">CoordinatorLoadInProgressException</span></a></li>
@@ -549,8 +548,13 @@
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/LeaderNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">LeaderNotAvailableException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/ListenerNotFoundException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">ListenerNotFoundException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NetworkException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NetworkException</span></a></li>
-<li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderForPartitionException</span></a></li>
+<li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderForPartitionException</span></a>
+<ul>
+<li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">NotLeaderOrFollowerException</span></a></li>
+</ul>
+</li>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/PreferredLeaderNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">PreferredLeaderNotAvailableException</span></a></li>
+<li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">ReplicaNotAvailableException</span></a></li>
 <li type="circle">org.apache.kafka.common.errors.<a href="org/apache/kafka/common/errors/UnknownTopicOrPartitionException.html" title="class in org.apache.kafka.common.errors"><span class="typeNameLink">UnknownTopicOrPartitionException</span></a></li>
 </ul>
 </li>
diff --git a/26/javadoc/serialized-form.html b/26/javadoc/serialized-form.html
index f122c9e..fd0ac60 100644
--- a/26/javadoc/serialized-form.html
+++ b/26/javadoc/serialized-form.html
@@ -830,6 +830,15 @@
 <dd>1L</dd>
 </dl>
 </li>
+<li class="blockList"><a name="org.apache.kafka.common.errors.NotLeaderOrFollowerException">
+<!--   -->
+</a>
+<h3>Class <a href="org/apache/kafka/common/errors/NotLeaderOrFollowerException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.NotLeaderOrFollowerException</a> extends <a href="org/apache/kafka/common/errors/NotLeaderForPartitionException.html" title="class in org.apache.kafka.common.errors">NotLeaderForPartitionException</a> implements Serializable</h3>
+<dl class="nameValue">
+<dt>serialVersionUID:</dt>
+<dd>1L</dd>
+</dl>
+</li>
 <li class="blockList"><a name="org.apache.kafka.common.errors.OffsetMetadataTooLarge">
 <!--   -->
 </a>
@@ -928,7 +937,7 @@
 <li class="blockList"><a name="org.apache.kafka.common.errors.ReplicaNotAvailableException">
 <!--   -->
 </a>
-<h3>Class <a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.ReplicaNotAvailableException</a> extends <a href="org/apache/kafka/common/errors/ApiException.html" title="class in org.apache.kafka.common.errors">ApiException</a> implements Serializable</h3>
+<h3>Class <a href="org/apache/kafka/common/errors/ReplicaNotAvailableException.html" title="class in org.apache.kafka.common.errors">org.apache.kafka.common.errors.ReplicaNotAvailableException</a> extends <a href="org/apache/kafka/common/errors/InvalidMetadataException.html" title="class in org.apache.kafka.common.errors">InvalidMetadataException</a> implements Serializable</h3>
 <dl class="nameValue">
 <dt>serialVersionUID:</dt>
 <dd>1L</dd>
diff --git a/26/streams/upgrade-guide.html b/26/streams/upgrade-guide.html
index 9d5a20e..5fd2ebb 100644
--- a/26/streams/upgrade-guide.html
+++ b/26/streams/upgrade-guide.html
@@ -74,7 +74,7 @@
         For Kafka Streams 0.10.0, broker version 0.10.0 or higher is required.
     </p>
 
-    <p>Since 2.6.0 release, Kafka Streams depends on a RocksDBs version that requires MacOS 10.15 or higher.</p>
+    <p>Since 2.6.0 release, Kafka Streams depends on a RocksDB version that requires MacOS 10.14 or higher.</p>
 
     <p>
         Another important thing to keep in mind: in deprecated <code>KStreamBuilder</code> class, when a <code>KTable</code> is created from a source topic via <code>KStreamBuilder.table()</code>, its materialized state store
diff --git a/26/upgrade.html b/26/upgrade.html
index 2983cf7..676bc69 100644
--- a/26/upgrade.html
+++ b/26/upgrade.html
@@ -35,6 +35,10 @@
         <a href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-602%3A+Change+default+value+for+client.dns.lookup">KIP-602</a>
         for more details.
     </li>
+    <li><code>NotLeaderForPartitionException</code> has been deprecated and replaced with <code>NotLeaderOrFollowerException</code>.
+        Fetch requests and other requests intended only for the leader or follower return NOT_LEADER_OR_FOLLOWER(6) instead of REPLICA_NOT_AVAILABLE(9)
+        if the broker is not a replica, ensuring that this transient error during reassignments is handled by all clients as a retriable exception.
+    </li>
 </ul>
 
 <h5><a id="upgrade_250_notable" href="#upgrade_250_notable">Notable changes in 2.5.0</a></h5>