This is an automated email from the ASF dual-hosted git repository.
schofielaj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3f8ca851ec8 MINOR: Correct missing space in RecordState exception
message (#20902)
3f8ca851ec8 is described below
commit 3f8ca851ec836ea1c0caf0a9685f50d8b3727028
Author: majialong <[email protected]>
AuthorDate: Tue Nov 18 17:04:05 2025 +0800
MINOR: Correct missing space in RecordState exception message (#20902)
Correct a missing space in `RecordState#validateTransition` exception
message to improve log readability.
Reviewers: Andrew Schofield <[email protected]>, Ken Huang
<[email protected]>
---
.../src/main/java/org/apache/kafka/server/share/fetch/RecordState.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/server/src/main/java/org/apache/kafka/server/share/fetch/RecordState.java
b/server/src/main/java/org/apache/kafka/server/share/fetch/RecordState.java
index 2870f4ad8e1..99547f58456 100644
--- a/server/src/main/java/org/apache/kafka/server/share/fetch/RecordState.java
+++ b/server/src/main/java/org/apache/kafka/server/share/fetch/RecordState.java
@@ -49,7 +49,7 @@ public enum RecordState {
public RecordState validateTransition(RecordState newState) throws
IllegalStateException {
Objects.requireNonNull(newState, "newState cannot be null");
if (this == newState) {
- throw new IllegalStateException("The state transition is invalid
as the new state is"
+ throw new IllegalStateException("The state transition is invalid
as the new state is "
+ "the same as the current state");
}