HBASE-20110 Findbugs in zk and mr caused nightly #409 branch-2 to fail
This commit is contained in:
parent
016cf0c64b
commit
5b64de45ed
|
@ -145,6 +145,8 @@ public class Import extends Configured implements Tool {
|
|||
}
|
||||
|
||||
@Override
|
||||
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "EQ_COMPARETO_USE_OBJECT_EQUALS",
|
||||
justification = "This is wrong, yes, but we should be purging Writables, not fixing them")
|
||||
public int compareTo(CellWritableComparable o) {
|
||||
return CellComparator.getInstance().compare(this.kv, o.kv);
|
||||
}
|
||||
|
|
|
@ -419,7 +419,6 @@ public class RecoverableZooKeeper {
|
|||
// try to verify whether the previous setData success or not
|
||||
try{
|
||||
Stat stat = new Stat();
|
||||
startTime = EnvironmentEdgeManager.currentTime();
|
||||
byte[] revData = checkZk().getData(path, false, stat);
|
||||
if(Bytes.compareTo(revData, newData) == 0) {
|
||||
// the bad version is caused by previous successful setData
|
||||
|
@ -556,7 +555,6 @@ public class RecoverableZooKeeper {
|
|||
// If the connection was lost, there is still a possibility that
|
||||
// we have successfully created the node at our previous attempt,
|
||||
// so we read the node and compare.
|
||||
startTime = EnvironmentEdgeManager.currentTime();
|
||||
byte[] currentData = checkZk().getData(path, false, null);
|
||||
if (currentData != null &&
|
||||
Bytes.compareTo(currentData, data) == 0) {
|
||||
|
@ -725,7 +723,6 @@ public class RecoverableZooKeeper {
|
|||
}
|
||||
|
||||
public void sync(String path, AsyncCallback.VoidCallback cb, Object ctx) throws KeeperException {
|
||||
long startTime = EnvironmentEdgeManager.currentTime();
|
||||
checkZk().sync(path, cb, null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue