sijie commented on a change in pull request #788: Issue 787: Client should be
able to get ledger metadata from Handles.
URL: https://github.com/apache/bookkeeper/pull/788#discussion_r153957412
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerMetadata.java
##########
@@ -279,6 +294,11 @@ public void addEnsemble(long startEntryId,
ArrayList<BookieSocketAddress> ensemb
return ensembles.get(ensembles.headMap(entryId + 1).lastKey());
}
+ @Override
+ public List<BookieSocketAddress> getEnsembleAt(long entryId) {
+ return getEnsemble(entryId);
Review comment:
yes. in distributedlog, we wrote some classes under
`org.apache.bookkeeper.client` to access this package private field. One of the
reasons that I am making this public as part of ReadHandle is to be able to
access some metadata. so I don't need to keep any hacky code in distributedlog.
Also I marked this class as `LimitedPrivate` and `Unstable` at this moment.
It is subject to a change in future. because I want to make it immutable, but
not at this moment. when we make it immutable, we convert this as `Public`.
Hope this make sense to you.
----------------------------------------------------------------
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