sijie commented on a change in pull request #664: Recycle PendingAddOps
URL: https://github.com/apache/bookkeeper/pull/664#discussion_r147252579
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingAddOp.java
##########
@@ -48,15 +51,18 @@
*
*
*/
-class PendingAddOp implements WriteCallback, TimerTask {
+class PendingAddOp extends SafeRunnable implements WriteCallback, TimerTask {
private final static Logger LOG =
LoggerFactory.getLogger(PendingAddOp.class);
+ ByteBuf payload;
ByteBuf toSend;
AddCallback cb;
Object ctx;
long entryId;
int entryLength;
- int[] writeSet;
+
+ int writeQuorumSize;
+ int[] writeSet = new int[0];
Review comment:
can you define a constant for `new int[0]`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services