rdhabalia commented on code in PR #3359:
URL: https://github.com/apache/bookkeeper/pull/3359#discussion_r928057386
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerFragment.java:
##########
@@ -217,11 +218,27 @@ public List<BookieId> getEnsemble() {
return this.ensemble;
}
+ public ReplicateType getReplicateType() {
+ return replicateType;
+ }
+
+ public void setReplicateType(ReplicateType replicateType) {
+ this.replicateType = replicateType;
+ }
+
@Override
public String toString() {
return String.format("Fragment(LedgerID: %d, FirstEntryID: %d[%d], "
+ "LastKnownEntryID: %d[%d], Host: %s, Closed: %s)", ledgerId,
firstEntryId,
getFirstStoredEntryId(), lastKnownEntryId,
getLastStoredEntryId(),
getAddresses(), isLedgerClosed);
}
+
+ /**
+ * ReplicateType.
+ */
+ public enum ReplicateType {
+ DATA_LOSS,
Review Comment:
can we give better naming? `DATA_LOSS` doesn't sound correct. could be
`IGNORE_PLACEMENT_POLICY`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]