tisonkun commented on code in PR #2024:
URL: https://github.com/apache/zookeeper/pull/2024#discussion_r1264964409


##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java:
##########
@@ -181,8 +182,7 @@ public byte[] getSerializeData() {
             try {
                 this.serializeData = Util.marshallTxnEntry(this.hdr, this.txn, 
this.txnDigest);
             } catch (IOException e) {
-                LOG.error("This really should be impossible.", e);
-                this.serializeData = new byte[32];
+                throw new UncheckedIOException(e);

Review Comment:
   I'd prefer to include this change in another PR so that if it causes issues, 
we can confidently revert that one instead of coupled with other changes in 
this patch.
   
   Since we have a lazy consensus on this change, I don't think another PR will 
block it's review and merge process.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to