Go to file
Michael Stack 4243536b19
HBASE-24885 STUCK RIT by hbck2 assigns (#2283)
Adds region state check on hbck2 assigns/unassigns. Returns pid of -1
if in inappropriate state with logging explaination which suggests
passing override if operator wants to assign/unassign anyways. Here
is an example of what happens now if hbck2 tries an unassign and
Region already unassigned:

  2020-08-19 11:22:06,926 INFO  [RpcServer.default.FPBQ.Fifo.handler=1,queue=0,port=50086] assignment.AssignmentManager(820): Failed {ENCODED => d1112e553991e938b6852f87774c91ee, NAME => 'TestHbck,zzzzz,1597861310769.d1112e553991e938b6852f87774c91ee.', STARTKEY => 'zzzzz', ENDKEY => ''} unassign, override=false; set override to by-pass state checks.
  org.apache.hadoop.hbase.client.DoNotRetryRegionException: Unexpected state for state=CLOSED, location=null, table=TestHbck, region=d1112e553991e938b6852f87774c91ee
          at org.apache.hadoop.hbase.master.assignment.AssignmentManager.preTransitCheck(AssignmentManager.java:583)
          at org.apache.hadoop.hbase.master.assignment.AssignmentManager.createOneUnassignProcedure(AssignmentManager.java:812)
          at org.apache.hadoop.hbase.master.MasterRpcServices.unassigns(MasterRpcServices.java:2616)
          at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$HbckService$2.callBlockingMethod(MasterProtos.java)
          at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:397)
          at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
          at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338)
          at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318)

Previous it would just create the unassign anyways. Now must pass override
to queue the procedure regardless. Safer.

hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
 javadoc on assigns/unassigns. Minor refactor in assigns/unassigns to cater to
 case where procedure may come back null (if override not set and fails state checks).

hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/AssignmentManager.java
 checkstyle cleanups.
 Clarifying javadoc on how there is no state checking when bulk assigns creating/enabling
 tables.

 createOneAssignProcedure and createOneUnassignProcedure now handle exceptions which now
 can be thrown if no override and region state is not appropriate.

 Aggregation of createAssignProcedure and createUnassignProcedure instances adding in
 region state check invoked if override is NOT set.

hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateNode.java
 Change to setProcedure so it returns passed proc as result instead of void

Signed-off-by: Duo Zhang <zhangduo@apache.org>
2020-08-24 09:19:43 -07:00
.idea HBASE-23707 Add IntelliJ check style plugin configuration (#1064) (#1092) 2020-01-27 10:45:27 -08:00
bin HBASE-24671 Add excludefile and designatedfile options to graceful_stop.sh 2020-07-05 19:35:27 +05:30
conf HBASE-24343 Document how to configure the http request log 2020-05-29 16:59:35 -07:00
dev-support HBASE-24876 Fix the flaky job url in hbase-personality.sh (#2253) 2020-08-13 16:52:29 +08:00
hbase-annotations HBASE-24013 Bump branch-2 version to 2.4.0-SNAPSHOT (#1309) 2020-03-19 08:01:43 -07:00
hbase-archetypes HBASE-24309 Avoid introducing log4j and slf4j-log4j dependencies for … (#1697) 2020-05-13 17:59:21 +08:00
hbase-assembly HBASE-24630 Purge dev javadoc from client bin tarball 2020-06-24 17:14:02 -07:00
hbase-asyncfs HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-build-configuration HBASE-24013 Bump branch-2 version to 2.4.0-SNAPSHOT (#1309) 2020-03-19 08:01:43 -07:00
hbase-checkstyle HBASE-24013 Bump branch-2 version to 2.4.0-SNAPSHOT (#1309) 2020-03-19 08:01:43 -07:00
hbase-client HBASE-24918 Make RegionInfo#UNDEFINED IA.Private (#2289) 2020-08-21 09:26:17 -07:00
hbase-common HBASE-24583 Normalizer can't actually merge empty regions... 2020-08-12 10:11:40 -07:00
hbase-endpoint HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-examples HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-external-blockcache HBASE-24013 Bump branch-2 version to 2.4.0-SNAPSHOT (#1309) 2020-03-19 08:01:43 -07:00
hbase-hadoop-compat HBASE-24680 Refactor the checkAndMutate code on the server side (#2184) 2020-08-10 18:57:17 +09:00
hbase-hadoop2-compat HBASE-24680 Refactor the checkAndMutate code on the server side (#2184) 2020-08-10 18:57:17 +09:00
hbase-hbtop HBASE-24775 [hbtop] StoreFile size should be rounded off (#2144) 2020-07-28 08:16:20 +09:00
hbase-http HBASE-24777 InfoServer support ipv6 host and port 2020-07-27 20:46:49 +05:30
hbase-it HBASE-24662 Update DumpClusterStatusAction to notice changes in region server count 2020-07-21 15:56:40 -07:00
hbase-logging HBASE-24309 Avoid introducing log4j and slf4j-log4j dependencies for … (#1697) 2020-05-13 17:59:21 +08:00
hbase-mapreduce HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-metrics HBASE-24663 Add procedure process time statistics UI (#2035) 2020-07-10 15:05:57 +08:00
hbase-metrics-api HBASE-24309 Avoid introducing log4j and slf4j-log4j dependencies for … (#1697) 2020-05-13 17:59:21 +08:00
hbase-procedure HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-protocol HBASE-24404 Support flush a single column family of region (#2098) 2020-07-31 09:31:14 +01:00
hbase-protocol-shaded HBASE-24627 Normalize one table at a time 2020-08-19 09:22:21 -07:00
hbase-replication HBASE-24309 Avoid introducing log4j and slf4j-log4j dependencies for … (#1697) 2020-05-13 17:59:21 +08:00
hbase-resource-bundle HBASE-24258 [Hadoop3.3] Update license for org.ow2.asm:* (#1582) 2020-05-04 14:58:15 -07:00
hbase-rest HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-rsgroup HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-server HBASE-24885 STUCK RIT by hbck2 assigns (#2283) 2020-08-24 09:19:43 -07:00
hbase-shaded HBASE-24309 Avoid introducing log4j and slf4j-log4j dependencies for … (#1697) 2020-05-13 17:59:21 +08:00
hbase-shell HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-testing-util HBASE-24309 Avoid introducing log4j and slf4j-log4j dependencies for … (#1697) 2020-05-13 17:59:21 +08:00
hbase-thrift HBASE-24912 Enlarge MemstoreFlusherChore/CompactionChecker period for unit test (#2285) 2020-08-21 12:42:11 +08:00
hbase-zookeeper HBASE-24844 RecoverableZookeeper#close followed by ExecutorService shutdown 2020-08-12 17:10:56 +05:30
src HBASE-24803 Unify hbase-shell ::Shell::Commands::Command#help behavior (#2178) 2020-07-31 07:42:54 -07:00
.editorconfig HBASE-23767 Add JDK11 compilation and unit test support to Github precommit 2020-03-05 13:59:01 -08:00
.gitattributes HBASE-6816. [WINDOWS] line endings on checkout for .sh files 2013-01-23 19:30:14 +00:00
.gitignore HBASE-24271 Set values in `conf/hbase-site.xml` that enable running on `LocalFileSystem` out of the box 2020-05-14 14:05:40 -07:00
.pylintrc HBASE-21712 : Make submit-patch.py python3 compatible 2019-01-16 09:28:25 +01:00
.rubocop.yml HBASE-23943 Updated Rubocop configuration to current version 2020-03-18 11:48:36 +01:00
CHANGES.md HBASE-24162 Move CHANGES.txt to CHANGES.md. Add RELEASENOTES.md too on branch-2, branch-2.3, and master 2020-04-10 14:41:02 -07:00
LICENSE.txt HBASE-18548 Move sources of website gen and check jobs into source control 2017-12-19 23:40:46 +08:00
NOTICE.txt HBASE-24417 update copyright notices year to 2020 (#1760) 2020-05-25 13:00:27 +08:00
README.txt HBASE-18548 Move sources of website gen and check jobs into source control 2017-12-19 23:40:46 +08:00
RELEASENOTES.md HBASE-24162 Move CHANGES.txt to CHANGES.md. Add RELEASENOTES.md too on branch-2, branch-2.3, and master 2020-04-10 14:41:02 -07:00
pom.xml HBASE-22033 Update to maven-javadoc-plugin 3.2.0 and switch to non-forking aggregate goals 2020-05-29 15:23:08 -05:00

README.txt

Apache HBase [1] is an open-source, distributed, versioned, column-oriented
store modeled after Google' Bigtable: A Distributed Storage System for
Structured Data by Chang et al.[2]  Just as Bigtable leverages the distributed
data storage provided by the Google File System, HBase provides Bigtable-like
capabilities on top of Apache Hadoop [3].

To get started using HBase, the full documentation for this release can be
found under the doc/ directory that accompanies this README.  Using a browser,
open the docs/index.html to view the project home page (or browse to [1]).
The hbase 'book' at http://hbase.apache.org/book.html has a 'quick start'
section and is where you should being your exploration of the hbase project.

The latest HBase can be downloaded from an Apache Mirror [4].

The source code can be found at [5]

The HBase issue tracker is at [6]

Apache HBase is made available under the Apache License, version 2.0 [7]

The HBase mailing lists and archives are listed here [8].

The HBase distribution includes cryptographic software. See the export control
notice here [9].

1. http://hbase.apache.org
2. http://research.google.com/archive/bigtable.html
3. http://hadoop.apache.org
4. http://www.apache.org/dyn/closer.cgi/hbase/
5. https://hbase.apache.org/source-repository.html
6. https://hbase.apache.org/issue-tracking.html
7. http://hbase.apache.org/license.html
8. http://hbase.apache.org/mail-lists.html
9. https://hbase.apache.org/export_control.html