Skip to content

Commit 1303e11

Browse files
committed
Netty 4.0: merged with 1.8-SNAPSHOT
2 parents 9d06f7f + 6a17aaa commit 1303e11

18 files changed

+1353
-81
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
language: java
22
before_install:
3+
- cat /etc/hosts # optionally check the content *before*
4+
- sudo hostname "$(hostname | cut -c1-63)"
5+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
6+
- cat /etc/hosts # optionally check the content *after*
37
- wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz -O /tmp/protobuf-2.5.0.tar.gz
48
- tar -C /tmp -xvf /tmp/protobuf-2.5.0.tar.gz
59
- cd /tmp/protobuf-2.5.0 && ./configure --prefix=/usr && make --quiet && sudo make install
@@ -12,3 +16,5 @@ jdk:
1216
- openjdk6
1317
notifications:
1418
email: false
19+
addons:
20+
hostname: short-hostname

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ proto_builddir := $(top_builddir)/protobuf
3939
spec_title := Asynchronous HBase Client
4040
spec_vendor := The Async HBase Authors
4141
# Semantic Versioning (see http://semver.org/).
42-
spec_version := 1.7.1-SNAPSHOT
42+
spec_version := 1.8.0-SNAPSHOT
4343
jar := $(top_builddir)/asynchbase-$(spec_version).jar
4444

4545
asynchbase_PROTOS := \
@@ -109,6 +109,8 @@ asynchbase_SOURCES := \
109109
src/RegionOfflineException.java \
110110
src/RegionMovedException.java \
111111
src/RegionOpeningException.java \
112+
src/RegionServerAbortedException.java \
113+
src/RegionServerStoppedException.java \
112114
src/RemoteException.java \
113115
src/RpcTimedOutException.java \
114116
src/RowFilter.java \
@@ -119,6 +121,7 @@ asynchbase_SOURCES := \
119121
src/SecureRpcHelper.java \
120122
src/SecureRpcHelper94.java \
121123
src/SecureRpcHelper96.java \
124+
src/ServerNotRunningYetException.java \
122125
src/SingletonList.java \
123126
src/SubstringComparator.java \
124127
src/TableNotFoundException.java \
@@ -168,6 +171,7 @@ unittest_SRC := \
168171
test/TestRegionClient.java \
169172
test/TestRegionClientDecode.java \
170173
test/TestRegionClientSendRpc.java \
174+
test/TestScanner.java \
171175
test/TestSecureRpcHelper.java \
172176
test/TestSecureRpcHelper96.java \
173177
test/TestSecureRpcHelper94.java \

NEWS

+32-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AsyncHBase - User visible and noteworthy changes.
22
This project uses Semantic Versioning (see http://semver.org/).
33

4-
* Version 1.7.1 (??)
4+
* Version 1.7.1 (2016-02-10)
55

66
This is a bug fix release.
77

@@ -49,6 +49,36 @@ Noteworthy bug fixes:
4949
- Fix an issue where an RPC could be stranded in the inflight map when an
5050
exception is thrown.
5151

52+
* Version 1.6.0 (2014-10-07) [a56249b]
53+
54+
This is mostly a bugfix release, but the introduction of a few new APIs made
55+
it become 1.6.0 instead of 1.5.1.
56+
57+
New public APIs:
58+
- Introduction of RegionMovedException.
59+
- Introduction of a lot of new filters (BinaryComparator,
60+
BinaryPrefixComparator, BitComparator, CompareFilter,
61+
DependentColumnFilter, FamilyFilter, FilterComparator,
62+
QualifierFilter, RegexStringComparator, RowFilter,
63+
SubstringComparator, TimestampsFilter, ValueFilter).
64+
Noteworthy bug fixes:
65+
- When a region was unavailable, some RPCs could be spuriously retried more
66+
than once, which could lead to double-counting when the RPC was an atomic
67+
increment (#81).
68+
- Fix an error handling bug that arises when an RPC response fails to be
69+
de-serialized properly (something that shouldn't happen in the first
70+
place).
71+
- Fix a compatibility issue with the latest versions of CDH5 that were
72+
causing scanners to raise an InvalidResponseException.
73+
- Properly handle RegionMovedException.
74+
- Make our probes to recover from moving regions more lightweight by
75+
crafting an unlikely key that is very unlikely to be present in the table,
76+
since unfortunately exists() still materializes the row in memory in the
77+
RegionServer, which is problematic for tables with big rows (#82).
78+
- Fixed an off-by-one in the serialization of batched RPCs that could lead
79+
to an uncaught IndexOutOfBoundsException.
80+
81+
5282
* Version 1.5.0 (2013-12-13) [67fc3b7]
5383

5484
This release introduces compatibility with HBase 0.96 and up, and adds
@@ -283,4 +313,4 @@ POSSIBILITY OF SUCH DAMAGE.
283313

284314
Local Variables:
285315
mode: outline
286-
End:
316+
End:

src/Bytes.java

+11
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ public final class Bytes {
5050
private Bytes() { // Can't instantiate.
5151
}
5252

53+
/**
54+
* Create a max byte array with the specified max byte count
55+
* @param num_bytes the length of returned byte array
56+
* @return the created max byte array
57+
*/
58+
public static byte[] createMaxByteArray(int num_bytes) {
59+
byte[] max_byte_arr = new byte[num_bytes];
60+
Arrays.fill(max_byte_arr, (byte) 0xff);
61+
return max_byte_arr;
62+
}
63+
5364
// ------------------------------ //
5465
// Byte array conversion utilies. //
5566
// ------------------------------ //

src/CompareAndSetRequest.java

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ ByteBuf serialize(byte server_version) {
174174
MutationProto.ColumnValue.QualifierValue.newBuilder()
175175
.setQualifier(qualifier)
176176
.setValue(value)
177+
.setTimestamp(put.timestamp())
177178
.build();
178179
final MutationProto.ColumnValue column =
179180
MutationProto.ColumnValue.newBuilder()

src/GetRequest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ private GetRequest(final float unused,
191191
* indicating whether or not the given table / key exists.
192192
*/
193193
static HBaseRpc exists(final byte[] table, final byte[] key) {
194-
return new GetRequest(0F, table, key);
194+
final GetRequest rpc = new GetRequest(0F, table, key);
195+
rpc.setProbe(true);
196+
return rpc;
195197
}
196198

197199
/**
@@ -206,6 +208,7 @@ static HBaseRpc exists(final byte[] table,
206208
final byte[] key, final byte[] family) {
207209
final GetRequest rpc = new GetRequest(0F, table, key);
208210
rpc.family(family);
211+
rpc.setProbe(true);
209212
return rpc;
210213
}
211214

0 commit comments

Comments
 (0)