Sean Busbey
216d2d4648
Revert "HBASE-19835 Use explicit casting to avoid side effects"
...
This reverts commit f1a81618fd
.
Conflicts:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/Segment.java
patch reverted changes that happened in parallel without explanation. see jira.
2018-02-23 16:50:15 -06:00
zhangduo
ad5cd50dfc
HBASE-20048 Revert serial replication feature
2018-02-23 13:58:31 +08:00
Chia-Ping Tsai
79d9403a79
HBASE-20017 BufferedMutatorImpl submit the same mutation repeatedly
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2018-02-20 16:59:48 -08:00
zhangduo
b7685307e4
HBASE-20020 Make sure we throw DoNotRetryIOException when ConnectionImplementation is closed
2018-02-20 06:12:13 -08:00
Reid Chan
a9a6eed372
HBASE-19950 Introduce a ColumnValueFilter
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2018-02-20 04:56:13 +08:00
eshcar
f3bb9b9613
HBASE-18294 Reduce global heap pressure: flush based on heap occupancy
2018-02-18 09:55:44 +02:00
Chia-Ping Tsai
dad90f6cce
HBASE-19680 BufferedMutatorImpl#mutate should wait the result from AP in order to throw the failed mutations
2018-02-17 07:33:58 +08:00
Mike Drob
8cf7a9d51e
HBASE-19920 Lazy init for ProtobufUtil classloader
2018-02-16 09:12:15 -06:00
Chia-Ping Tsai
2f48fdbb26
HBASE-19876 The exception happening in converting pb mutation to hbase.mutation messes up the CellScanner
2018-02-13 21:08:59 +08:00
Michael Stack
67b69fb2c7
HBASE-16060 1.x clients cannot access table state talking to 2.0 cluster
...
This patch adds mirroring of table state out to zookeeper. HBase-1.x
clients look for table state in zookeeper, not in hbase:meta where
hbase-2.x maintains table state.
The patch also moves and refactors the 'migration' code that was put in
place by HBASE-13032.
D hbase-client/src/main/java/org/apache/hadoop/hbase/CoordinatedStateException.java
Unused.
M hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
Move table state migration code from Master startup out to
TableStateManager where it belongs. Also start
MirroringTableStateManager dependent on config.
A hbase-server/src/main/java/org/apache/hadoop/hbase/master/MirroringTableStateManager.java
M hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableStateManager.java
Move migration from zookeeper of table state in here. Also plumb in
mechanism so subclass can get a chance to look at table state as we do
the startup fixup full-table scan of meta.
M hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/AssignmentManager.java
Bug-fix. Now we create regions in CLOSED state but we fail to check
table state; were presuming table always enabled. Meant on startup
there'd be an unassigned region that never got assigned.
A hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMirroringTableStateManager.java
Test migration and mirroring.
2018-02-12 08:47:02 -08:00
Michael Stack
0593dda663
HBASE-19951 Cleanup the explicit timeout value for test method
2018-02-10 09:24:31 -08:00
Aman Poonia
f1a81618fd
HBASE-19835 Use explicit casting to avoid side effects
...
Signed-off-by: tedyu <yuzhihong@gmail.com>
2018-02-08 12:32:36 -08:00
Chia-Ping Tsai
d8b999e695
HBASE-19900 Region-level exception destroy the result of batch
2018-02-07 08:41:56 +08:00
Umesh Agashe
6d04aa1794
HBASE-19915 (addendum): Fixed a typo because of which only daughterA was getting stored with a CLOSED state and not daughterB
2018-02-05 15:41:03 -08:00
Mike Drob
8de820786c
HBASE-19922 remove ProtobufUtil::PRIMITIVES
2018-02-05 15:33:46 -06:00
Michael Stack
b0e998f2a5
HBASE-19726 Failed to start HMaster due to infinite retrying on meta assign; ADDENDUM Fix failing TestMetaWithReplicas#testShutdownHandling; it was reading meta TableState
2018-02-03 21:51:50 -08:00
zhangduo
2e1ec3d3d8
HBASE-19914 Refactor TestVisibilityLabelsOnNewVersionBehaviorTable
2018-02-04 13:27:28 +08:00
Michael Stack
06dec20582
HBASE-19919 Tidying up logging
2018-02-03 08:42:02 -08:00
Umesh Agashe
811afad103
HBASE-19915 Create merged/ daughter region/s with initial state CLOSED from MetaTableAccessor#splitRegion()/ mergeRegions()
...
If the initial state is not set to CLOSED while creating merged/ children region/s, merged/
children region/s get stored in meta with state OFFLINE(0). If the master gets restarted after
Merge/ Split procedure stores merged/ children region/s, master startup sequence tries to assign
offline region/s. This is followed by re-assignment of merged/ children region from resumed Merge/
Split procedure.
This bug is related to HBASE-19530.
Signed-off-by: Michael Stack <stack@apache.org>
2018-02-02 18:25:20 -08:00
Chia-Ping Tsai
adccbb7edf
HBASE-19897 RowMutations should follow the fluent pattern
2018-02-02 05:33:08 +08:00
zhangduo
7c318cead9
HBASE-19887 Do not overwrite the surefire junit listener property in the pom of sub modules
2018-01-31 20:49:18 +08:00
zhangduo
221eb95768
HBASE-19870 Fix the NPE in ReadOnlyZKClient#run
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2018-01-29 16:28:59 +08:00
zhangduo
918599ef12
HBASE-19873 Add a CategoryBasedTimeout ClassRule for all UTs
2018-01-29 08:43:56 +08:00
Chia-Ping Tsai
541f8ad8a8
HBASE-4224 Need a flush by regionserver rather than by table option
2018-01-23 09:51:05 +08:00
Sergey Soldatov
be496ba8ea
HBASE-19774 incorrect behavior of locateRegionInMeta
2018-01-22 11:48:55 -08:00
Michael Stack
f3c563fc00
HBASE-19837 Flakey TestRegionLoad
...
Add debug, change name of the rows so readable.
2018-01-21 23:24:23 -08:00
Guangxu Cheng
cde1f821eb
HBASE-19799 Add web UI to rsgroup
...
Signed-off-by: tedyu <yuzhihong@gmail.com>
2018-01-18 12:49:43 -08:00
zhangduo
e546034f09
HBASE-19795 Move the tests which only need zookeeper in TestZooKeeper to hbase-zookeeper module
2018-01-15 10:57:51 +08:00
zhangduo
d24fddf3ed
HBASE-19772 Do not close connection to zk when there are still pending request in ReadOnlyZKClient
2018-01-14 17:08:23 +08:00
Michael Stack
a4a4ce8eac
Revert "HBASE-19772 ReadOnlyZKClient improvements"
...
Pushed by mistake. Reverting from master.
This reverts commit 70515f5311
.
2018-01-11 14:27:23 -08:00
Duo Zhang
70515f5311
HBASE-19772 ReadOnlyZKClient improvements
2018-01-11 11:37:27 -08:00
Michael Stack
a7f9668c33
HBASE-19753 Miscellany of fixes for hbase-zookeeper tests to make them more robust
...
First, we add test resources to CLASSPATH when tests run. W/o it, there
was no logging of hbase-zookeeper test output (not sure why I have to
add this here and not over in hbase-server; research turns up nothing
so far).
M hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKMainServer.java
Improve fail log message.
M hbase-zookeeper/src/test/java/org/apache/hadoop/hbase/zookeeper/TestReadOnlyZKClient.java
M hbase-zookeeper/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKNodeTracker.java
Wait until ZK is connected before progressing. On my slow zk, it could
be a while post construction before zk connected. Using an unconnected
zk caused test to fail.
M hbase-zookeeper/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKMainServer.java
Change session timeout to default 30s from 1s which was way too short.
M hbase-zookeeper/src/test/resources/log4j.properties
Set zk logs to DEBUG level in this module at least.
Adds a ZooKeeperHelper class that has utility to help interacting w/ ZK.
2018-01-11 11:23:37 -08:00
tedyu
b568cf4ebd
HBASE-19740 Repeated error message for NamespaceExistException
2018-01-10 18:25:45 -08:00
Josh Elser
8118d5de4e
HBASE-19734 Fix IntegrationTestReplication and related impl changes
...
Adds (client-side) validation to ReplicationPeerConfigBuilder and javadoc
to builder methods in addition to the test fix.
Signed-off-by: Guanghao Zhang <zghao@apache.org>
Signed-off-by: Michael Stack <stack@apache.org>
2018-01-10 13:52:31 -05:00
Guanghao Zhang
f458b89c05
HBASE-19139 Create Async Admin methods for Clear Block Cache
2018-01-09 14:43:01 +08:00
Guanghao Zhang
01f1fc8284
HBASE-19636 All rs should already start work with the new peer change when replication peer procedure is finished
...
Signed-off-by: zhangduo <zhangduo@apache.org>
2018-01-09 13:11:01 +08:00
zhangduo
19707a85dd
HBASE-19633 Clean up the replication queues in the postPeerModification stage when removing a peer
2018-01-09 13:11:01 +08:00
huzheng
f89920a60f
HBASE-19622 Reimplement ReplicationPeers with the new replication storage interface
2018-01-09 13:11:01 +08:00
huzheng
8f5e54a456
HBASE-19525 RS side changes for moving peer modification from zk watcher to procedure
2018-01-09 13:11:01 +08:00
Guanghao Zhang
76a044c5d9
HBASE-19536 Client side changes for moving peer modification from zk watcher to procedure
...
Signed-off-by: zhangduo <zhangduo@apache.org>
2018-01-09 13:11:01 +08:00
Mike Drob
022a348d61
HBASE-19721 Unnecessary stubbings in TestReversedScannerCallable
...
Signed-off-by: Michael Stack <stack@apache.org>
2018-01-06 08:58:17 -06:00
Beluga Behr
a30d9fe8d9
HBASE-19651 Remove LimitInputStream
2018-01-05 16:59:29 -06:00
Michael Stack
2bf2b5b2c1
Revert "Revert "Revert "HBASE-19651 Remove LimitInputStream"""
...
This reverts commit 032701c96c
.
2018-01-05 16:58:26 -06:00
Michael Stack
032701c96c
Revert "Revert "HBASE-19651 Remove LimitInputStream""
...
This reverts commit e5f7030ded
.
2018-01-05 16:55:59 -06:00
Beluga Behr
e5f7030ded
Revert "HBASE-19651 Remove LimitInputStream"
...
Revert to put Beluga in place as author.
This reverts commit 032fdc53de
.
2018-01-05 16:55:01 -06:00
Michael Stack
032fdc53de
HBASE-19651 Remove LimitInputStream
...
Signed-off-by: Beluga Behr <dam6923@gmail.com>
2018-01-05 08:31:11 -06:00
Chia-Ping Tsai
8119acfca7
HBASE-19596 RegionMetrics/ServerMetrics/ClusterMetrics should apply to all public classes
2018-01-04 13:13:34 +08:00
BELUGA BEHR
2bd259b445
HBASE-19473 Miscellaneous changes to ClientScanner
...
- Remove superfluous logging code guard
- Simplify some of the code
- Use ArrayDeque instead of LinkedList for queue implementation
2018-01-03 20:25:21 -08:00
zhangduo
1fa3637b4d
HBASE-19641 AsyncHBaseAdmin should use exponential backoff when polling the procedure result
2018-01-03 18:32:54 +08:00
BELUGA BEHR
4e9f4abb14
HBASE-19683 Remove Superfluous Methods From String Class (BELUGA BEHR).
...
* Remove isEmpty method
* Remove repeat
Use the Apache Commons implementations instead.
2018-01-02 11:12:38 -08:00
Niels Basjes
a6081d30f9
HBASE-19486: Ensure threadsafe WriteBufferPeriodicFlush operations
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2018-01-02 17:26:22 +08:00
Niels Basjes
5a1c36f70a
HBASE-19486 Periodically ensure records are not buffered too long by BufferedMutator
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2017-12-29 22:23:18 +08:00
Chia-Ping Tsai
e23f7afe57
HBASE-19428 Deprecate the compareTo(Row)
2017-12-29 20:03:39 +08:00
Michael Stack
2dae9d16e2
Revert "HBASE-19651 Remove LimitInputStream"
...
This reverts commit 28eaf715e8
.
2017-12-28 14:31:44 -08:00
Michael Stack
28eaf715e8
HBASE-19651 Remove LimitInputStream
...
Signed-off-by: Beluga Behr <dam6923@gmail.com>
2017-12-28 13:04:41 -08:00
Mike Drob
c3b4f788b1
HBASE-19552 find-and-replace thirdparty offset
2017-12-28 11:52:32 -06:00
Guanghao Zhang
78013a0c1e
HBASE-19653 Reduce the default hbase.client.start.log.errors.counter
...
Signed-off-by: Michael Stack <stack@apache.org>
2017-12-28 07:55:57 -08:00
Guanghao Zhang
8580ba7b6f
HBASE-19643 Need to update cache location when get error in AsyncBatchRpcRetryingCaller
2017-12-28 14:33:24 +08:00
Chia-Ping Tsai
53233be5a9
HBASE-19626 Rename Cell.DataType to Cell.Type
2017-12-28 13:04:29 +08:00
Michael Stack
1050936ce7
HBASE-19652 Turn down CleanerChore logging; too chatty
2017-12-27 20:49:26 -08:00
Michael Stack
2c65f039ed
HBASE-19647 Logging cleanups; emit regionname when RegionTooBusyException inside RetriesExhausted... make netty connect/disconnect TRACE-level; ADDENDUM
2017-12-27 14:14:58 -08:00
Chia-Ping Tsai
01b1f48ccd
HBASE-19644 add the checkstyle rule to reject the illegal imports
2017-12-28 04:10:42 +08:00
Michael Stack
16cd916976
HBASE-19647 Logging cleanups; emit regionname when RegionTooBusyException inside RetriesExhausted... make netty connect/disconnect TRACE-level
2017-12-27 11:55:42 -08:00
Chia-Ping Tsai
6b39062e86
HBASE-19628 ByteBufferCell should extend ExtendedCell
2017-12-27 22:26:40 +08:00
Vasudevan
467a4667d8
HBASE-19629 RawCell#getTags should return the Iterator<Tag> in order to avoid iterating through whole tag array at once
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2017-12-27 21:33:42 +08:00
Peter Somogyi
7145d98182
HBASE-19545 Replace getBytes(StandardCharsets.UTF_8) with Bytes.toBytes
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2017-12-27 20:07:25 +08:00
Chia-Ping Tsai
5a561e0882
HBASE-19496 (addendum) don't store the duplicate cp names in ServerMetrics
2017-12-27 07:05:16 +08:00
Chia-Ping Tsai
7ce1943ef3
HBASE-19550 Wrap the cell passed via Mutation#add(Cell) to be of ExtendedCell
2017-12-26 16:39:51 +08:00
Guanghao Zhang
1556939236
HBASE-19621 Revisit the methods in ReplicationPeerConfigBuilder
2017-12-26 14:40:31 +08:00
Guanghao Zhang
0dadb45ad7
HBASE-19576 Introduce builder for ReplicationPeerConfig and make it immutable
2017-12-23 18:55:29 +08:00
Chia-Ping Tsai
448ba3a78f
HBASE-19496 Reusing the ByteBuffer in rpc layer corrupt the ServerLoad and RegionLoad
2017-12-22 18:54:25 +08:00
Guanghao Zhang
001bce54e7
HBASE-19590 Remove the duplicate code in deprecated ReplicationAdmin
2017-12-22 18:32:15 +08:00
Apekshit Sharma
8ec0aa0d70
HBASE-19589 New regions should always be added with state CLOSED (followup of HBASE-19530)
2017-12-21 22:57:53 -08:00
Chia-Ping Tsai
59baf12c03
HBASE-19575 add copy constructor to Mutation
2017-12-22 03:24:43 +08:00
Balazs Meszaros
f572c4b80e
HBASE-10092 Move up on to log4j2
...
Changes:
- replaced commons-logging to slf4j everywhere
- log.XXX(Throwable) calls were replaced with log.XXX(t.toString(), t)
- log.XXX(Object) calls were replaced with log.XXX(Objects.toString(obj))
- log.fatal() calls were replaced with log.error(HBaseMarkers.FATAL, ...)
- programmatic log4j configuration was removed from the unit test
This commit does not affect the current logging configurations, because log4j
is still on the classpath. slf4j-log4j12 binds log4j to slf4j.
Signed-off-by: Michael Stack <stack@apache.org>
2017-12-20 22:21:33 -08:00
Jan Hentschel
dd00081c26
HBASE-19538 Removed unnecessary semicolons in hbase-client
2017-12-19 20:50:18 +01:00
Guanghao Zhang
03e79b7994
HBASE-19492 Add EXCLUDE_NAMESPACE and EXCLUDE_TABLECFS support to replication peer config
2017-12-19 16:53:43 +08:00
Michael Stack
6a9b1480c1
HBASE-19122 Suspect methods on Cell to be deprecated; ADDENDUM to fix
...
compile error
2017-12-18 16:02:54 -08:00
Michael Stack
b4056d267a
HBASE-19122 Suspect methods on Cell to be deprecated
2017-12-18 15:20:44 -08:00
Yun Chi-Shih
9d0c7c6dfb
HBASE-19531 Remove needless volatile declaration
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2017-12-19 00:34:28 +08:00
Guanghao Zhang
979767824d
HBASE-19522 The complete order may be wrong in AsyncBufferedMutatorImpl
2017-12-16 14:00:59 +08:00
Apekshit Sharma
a651ab93e3
HBASE-19530 New regions should always be added with state CLOSED
2017-12-15 21:20:58 -08:00
Peter Somogyi
59529a78f0
HBASE-19498 Fix findbugs and error-prone warnings in hbase-client (branch-2)
...
Signed-off-by: Michael Stack <stack@apache.org>
Signed-off-by: Apekshit Sharma <appy@apache.org>
2017-12-15 15:55:51 -08:00
Mike Drob
75f512bd71
HBASE-18838 Fix hadoop3 check-shaded-invariants
2017-12-15 11:19:47 -06:00
Chia-Ping Tsai
70f02dbc7c
HBASE-19462 Deprecate all addImmutable methods in Put
...
Signed-off-by: Michael Stack <stack@apache.org>
2017-12-14 14:15:54 -08:00
Josh Elser
4a1c3b4210
HBASE-19267 Remove compiler-plugin mapping executions as it breaks Java8 detection
...
It seems like the original reason this execution filter was added is no
longer an issue for 2.0. Actually, these entries actually preclude
Eclipse from correctly using the Java8 source/target version that we
have specified (which creates numerous compilation errors in Eclipse)
Signed-off-by: Guanghao Zhang <zghao@apache.org>
2017-12-14 15:11:19 -05:00
zhangduo
fe316fe7ac
HBASE-19512 Move EventType and ExecutorType from hbase-client to hbase-server
2017-12-14 20:15:44 +08:00
tedyu
104afd74a6
HBASE-19434 create_namespace command for existing namespace does not throw useful error message
2017-12-13 16:00:33 -08:00
Guangxu Cheng
86043ef629
HBASE-19000 Group multiple block cache clear requests per server
...
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-12-13 07:47:09 -08:00
BELUGA BEHR
536187446d
HBASE-19472 Remove ArrayUtil Class
...
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
2017-12-13 19:02:07 +08:00
Chia-Ping Tsai
677c1f2c63
HBASE-19427 Add TimeRange support into Append to optimize for counters
2017-12-13 15:35:49 +08:00
Peter Somogyi
7e5f3a516c
HBASE-19213 Align check and mutate operations in Table and AsyncTable
...
- Deprecates old checkAnd*() operations in Table
- Adds Table#CheckAndMutateBuilder and implements it in HTable
Commiter note: When committing the patch, noticed redundant {@inheritDoc} being added in HTable.
Removed new and olds ones.
2017-12-12 20:37:24 -08:00
tedyu
11467ef111
HBASE-19394 Support multi-homing env for the publication of RS status with multicast (hbase.status.published) (Toshihiro Suzuki)
2017-12-12 07:38:15 -08:00
Michael Stack
542060ce40
HBASE-19461 TestRSGroups is broke
2017-12-08 15:09:46 -08:00
Chia-Ping Tsai
464e4e8058
HBASE-12444 Total number of requests overflow because it's int
2017-12-07 18:39:12 +08:00
anoopsamjohn
ba4f9f8349
HBASE-19357 Bucket cache no longer L2 for LRU cache.
2017-12-07 15:03:53 +05:30
anoopsamjohn
98a21ef1ba
HBASE-19439 Mark ShortCircuitMasterConnection with InterfaceAudience Private.
2017-12-07 11:22:40 +05:30
Michael Stack
4a2e8b852d
HBASE-19295 The Configuration returned by CPEnv should be read-only.
...
Adds a ReadOnlyConfiguration that delegates gets but throws exception
on sets/adds, etc.
2017-12-06 15:18:09 -08:00
anoopsamjohn
d107e33fcd
Revert "HBASE-19357 Bucket cache no longer L2 for LRU cache."
...
This reverts commit d34e30cad3
.
2017-12-06 11:37:09 +05:30
anoopsamjohn
d34e30cad3
HBASE-19357 Bucket cache no longer L2 for LRU cache.
2017-12-06 11:25:08 +05:30