Cell value data type
+ * @param Promoted data type
+ * @param PB message that is used to transport initializer specific bytes
+ * @param PB message that is used to transport Cell (<T>) instance
+ * @param PB message that is used to transport Promoted (<S>) instance
*/
@InterfaceAudience.Private
public class AggregateImplementation
diff --git a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
index 43bb594ec190..d68ee88fe4a8 100644
--- a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
+++ b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
@@ -95,7 +95,7 @@
/**
* Writes HFiles. Passed Cells must arrive in order.
* Writes current time as the sequence id for the file. Sets the major compacted
- * attribute on created @{link {@link HFile}s. Calling write(null,null) will forcibly roll
+ * attribute on created {@link HFile}s. Calling write(null,null) will forcibly roll
* all HFiles being written.
*
* Using this class as part of a MapReduce job is best done
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java
index a916d0d27155..7b79e704af04 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java
@@ -256,6 +256,7 @@ public Configuration getConf() {
* @param rsServices interface to available region server functionality
* @param conf the configuration
*/
+ @SuppressWarnings("ReturnValueIgnored") // Checking method exists as CPU optimization
public RegionCoprocessorHost(final HRegion region,
final RegionServerServices rsServices, final Configuration conf) {
super(rsServices);
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBaseSaslRpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBaseSaslRpcServer.java
index 071fef509462..a05d5cf48b2a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBaseSaslRpcServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBaseSaslRpcServer.java
@@ -68,7 +68,7 @@ public void dispose() {
public String getAttemptingUser() {
Optional optionalUser = serverWithProvider.getAttemptingUser();
if (optionalUser.isPresent()) {
- optionalUser.get().toString();
+ return optionalUser.get().toString();
}
return "Unknown";
}
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestPutDeleteEtcCellIteration.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestPutDeleteEtcCellIteration.java
index 9f2cc0114649..b5e1178cca89 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestPutDeleteEtcCellIteration.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestPutDeleteEtcCellIteration.java
@@ -61,7 +61,7 @@ public void testPutIteration() throws IOException {
for (CellScanner cellScanner = p.cellScanner(); cellScanner.advance();) {
Cell cell = cellScanner.current();
byte [] bytes = Bytes.toBytes(index++);
- cell.equals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes));
+ assertEquals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes), cell);
}
assertEquals(COUNT, index);
}
@@ -74,15 +74,13 @@ public void testPutConcurrentModificationOnIteration() throws IOException {
p.addColumn(bytes, bytes, TIMESTAMP, bytes);
}
int index = 0;
- int trigger = 3;
for (CellScanner cellScanner = p.cellScanner(); cellScanner.advance();) {
Cell cell = cellScanner.current();
byte [] bytes = Bytes.toBytes(index++);
// When we hit the trigger, try inserting a new KV; should trigger exception
- if (trigger == 3) p.addColumn(bytes, bytes, TIMESTAMP, bytes);
- cell.equals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes));
+ p.addColumn(bytes, bytes, TIMESTAMP, bytes);
+ assertEquals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes), cell);
}
- assertEquals(COUNT, index);
}
@Test
@@ -96,7 +94,7 @@ public void testDeleteIteration() throws IOException {
for (CellScanner cellScanner = d.cellScanner(); cellScanner.advance();) {
Cell cell = cellScanner.current();
byte [] bytes = Bytes.toBytes(index++);
- cell.equals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, KeyValue.Type.DeleteColumn));
+ assertEquals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, KeyValue.Type.Delete), cell);
}
assertEquals(COUNT, index);
}
@@ -151,7 +149,7 @@ public void testResultIteration() throws IOException {
for (CellScanner cellScanner = r.cellScanner(); cellScanner.advance();) {
Cell cell = cellScanner.current();
byte [] bytes = Bytes.toBytes(index++);
- cell.equals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes));
+ assertEquals(new KeyValue(ROW, bytes, bytes, TIMESTAMP, bytes), cell);
}
assertEquals(COUNT, index);
}
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/codec/CodecPerformance.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/codec/CodecPerformance.java
index 73f5ca0959fe..047171d65c89 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/codec/CodecPerformance.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/codec/CodecPerformance.java
@@ -17,6 +17,7 @@
*/
package org.apache.hadoop.hbase.codec;
+import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -96,10 +97,7 @@ static int getRoughSize(final Cell [] cells) {
}
static void verifyCells(final Cell [] input, final Cell [] output) {
- assertEquals(input.length, output.length);
- for (int i = 0; i < input.length; i ++) {
- input[i].equals(output[i]);
- }
+ assertArrayEquals(input, output);
}
static void doCodec(final Codec codec, final Cell [] cells, final int cycles, final int count,
diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java
index 37cf8d692665..b91ad0983d4e 100644
--- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java
+++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java
@@ -155,7 +155,6 @@ private synchronized ResultScannerWrapper getScanner(int id) {
* id->scanner hash-map.
*
* @param id the ID of the scanner to remove
- * @return a Scanner, or null if ID was invalid.
*/
private synchronized void removeScanner(int id) {
scannerMap.invalidate(id);
diff --git a/pom.xml b/pom.xml
index 49728590de69..ebf7ed300fd2 100755
--- a/pom.xml
+++ b/pom.xml
@@ -1780,7 +1780,7 @@
-->
8.28
1.6.0
- 2.4.0
+ 2.10.0
2.4.2
1.0.0
1.8