This is an automated email from the ASF dual-hosted git repository.
sodonnell pushed a commit to branch HDDS-3816-ec
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/HDDS-3816-ec by this push:
new f386662 HDDS-6381. EC: Improve exception message in
ByteBufferEncodingState (#3143)
f386662 is described below
commit f386662a37394be290fadc4dbba1149b9f7730ab
Author: cchenax <[email protected]>
AuthorDate: Thu Mar 24 18:30:46 2022 +0800
HDDS-6381. EC: Improve exception message in ByteBufferEncodingState (#3143)
---
.../org/apache/ozone/erasurecode/rawcoder/ByteBufferEncodingState.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/hadoop-hdds/erasurecode/src/main/java/org/apache/ozone/erasurecode/rawcoder/ByteBufferEncodingState.java
b/hadoop-hdds/erasurecode/src/main/java/org/apache/ozone/erasurecode/rawcoder/ByteBufferEncodingState.java
index a8ffec1..4ca7a3f 100644
---
a/hadoop-hdds/erasurecode/src/main/java/org/apache/ozone/erasurecode/rawcoder/ByteBufferEncodingState.java
+++
b/hadoop-hdds/erasurecode/src/main/java/org/apache/ozone/erasurecode/rawcoder/ByteBufferEncodingState.java
@@ -98,7 +98,8 @@ class ByteBufferEncodingState extends EncodingState {
if (buffer.remaining() != encodeLength) {
throw new HadoopIllegalArgumentException(
- "Invalid buffer, not of length " + encodeLength);
+ "Invalid buffer remaining " + buffer.remaining()
+ + ", not of length " + encodeLength);
}
if (buffer.isDirect() != usingDirectBuffer) {
throw new HadoopIllegalArgumentException(
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]