Mreged from trunk. HDFS-5411. Update Bookkeeper dependency to 4.2.3. Contributed by Rakesh R.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.5@1608786 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2da1a373e3
commit
2d439fd0c1
|
@ -516,6 +516,8 @@ Release 2.5.0 - UNRELEASED
|
|||
HDFS-4221. Remove the format limitation point from BKJM documentation as HDFS-3810
|
||||
closed. (Rakesh R via umamahesh)
|
||||
|
||||
HDFS-5411. Update Bookkeeper dependency to 4.2.3. (Rakesh R via umamahesh)
|
||||
|
||||
BREAKDOWN OF HDFS-2006 SUBTASKS AND RELATED JIRAS
|
||||
|
||||
HDFS-6299. Protobuf for XAttr and client-side implementation. (Yi Liu via umamahesh)
|
||||
|
|
|
@ -237,7 +237,7 @@ public class BookKeeperJournalManager implements JournalManager {
|
|||
zkPathLatch.countDown();
|
||||
}
|
||||
};
|
||||
ZkUtils.createFullPathOptimistic(zkc, zkAvailablePath, new byte[0],
|
||||
ZkUtils.asyncCreateFullPathOptimistic(zkc, zkAvailablePath, new byte[0],
|
||||
Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT, callback, null);
|
||||
|
||||
try {
|
||||
|
|
|
@ -149,13 +149,16 @@ class BKJMUtil {
|
|||
int checkBookiesUp(int count, int timeout) throws Exception {
|
||||
ZooKeeper zkc = connectZooKeeper();
|
||||
try {
|
||||
boolean up = false;
|
||||
int mostRecentSize = 0;
|
||||
for (int i = 0; i < timeout; i++) {
|
||||
try {
|
||||
List<String> children = zkc.getChildren("/ledgers/available",
|
||||
false);
|
||||
mostRecentSize = children.size();
|
||||
// Skip 'readonly znode' which is used for keeping R-O bookie details
|
||||
if (children.contains("readonly")) {
|
||||
mostRecentSize = children.size() - 1;
|
||||
}
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Found " + mostRecentSize + " bookies up, "
|
||||
+ "waiting for " + count);
|
||||
|
@ -166,7 +169,6 @@ class BKJMUtil {
|
|||
}
|
||||
}
|
||||
if (mostRecentSize == count) {
|
||||
up = true;
|
||||
break;
|
||||
}
|
||||
} catch (KeeperException e) {
|
||||
|
|
|
@ -730,7 +730,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.bookkeeper</groupId>
|
||||
<artifactId>bookkeeper-server</artifactId>
|
||||
<version>4.0.0</version>
|
||||
<version>4.2.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
Loading…
Reference in New Issue