ivankelly closed pull request #774: Open should run recovery by default
URL: https://github.com/apache/bookkeeper/pull/774
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
index 910f33a8c..f12c158b6 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
@@ -218,7 +218,7 @@ void openComplete(int rc, LedgerHandle lh) {
 
     static final class OpenBuilderImpl implements OpenBuilder {
 
-        private boolean builderRecovery = false;
+        private boolean builderRecovery = true;
         private Long builderLedgerId;
         private byte[] builderPassword;
         private org.apache.bookkeeper.client.api.DigestType builderDigestType
diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/OpenBuilder.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/OpenBuilder.java
index f1e5ac825..91b81722c 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/OpenBuilder.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/OpenBuilder.java
@@ -44,7 +44,7 @@
 
     /**
      * Define to open the ledger in recovery mode or in readonly mode. In 
recovery mode the ledger will be fenced and
-     * the writer of the ledger will be prevented from issuing other writes to 
the ledger. It defaults to 'false'
+     * the writer of the ledger will be prevented from issuing other writes to 
the ledger. It defaults to 'true'
      *
      * @param recovery recovery mode
      *


 

----------------------------------------------------------------
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

Reply via email to