sijie commented on a change in pull request #657: DistributionSchedule uses
int[] rather than HashSet
URL: https://github.com/apache/bookkeeper/pull/657#discussion_r147226197
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingAddOp.java
##########
@@ -76,6 +76,11 @@
this.cb = cb;
this.ctx = ctx;
this.entryId = LedgerHandle.INVALID_ENTRY_ID;
+
+ writeSet = new int[lh.metadata.getWriteQuorumSize()];
+ // require writeSet be populated for it to be usable
+ Arrays.fill(writeSet, -12345);
Review comment:
define a CONSTANT for `-12345`.
----------------------------------------------------------------
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