sijie commented on a change in pull request #657: DistributionSchedule uses
int[] rather than HashSet
URL: https://github.com/apache/bookkeeper/pull/657#discussion_r147600535
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingAddOp.java
##########
@@ -192,9 +197,14 @@ void initiate(ByteBuf toSend, int entryLength) {
// Retain the buffer until all writes are complete
this.toSend.retain();
this.entryLength = entryLength;
- for (int bookieIndex : writeSet) {
- sendWriteRequest(bookieIndex);
+
+ // Iterate over set and trigger the sendWriteRequests
+ DistributionSchedule.WriteSet writeSet
+ = lh.distributionSchedule.getWriteSet(entryId);
+ for (int i = 0; i < writeSet.size(); i++) {
Review comment:
```
try {
...
} finally {
writeSet.recycle();
}
```
----------------------------------------------------------------
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