RELEASENOTES

HBASE 2.2.4 Release Notes

These release notes cover new developer and user-facing incompatibilities, important issues, features, and major improvements.


  • HBASE-22827 | Major | Expose multi-region merge in shell and Admin API

merge_region shell command can now be used to merge more than 2 regions as well. It takes a list of regions as comma separated values or as an array of regions, and not just 2 regions. The full regionnames and encoded regionnames are continued to be accepted.


  • HBASE-23874 | Minor | Move Jira-attached file precommit definition from script in Jenkins config to dev-support

The Jira Precommit job (https://builds.apache.org/job/PreCommit-HBASE-Build/) will now look for a file within the source tree (dev-support/jenkins_precommit_jira_yetus.sh) instead of depending on a script section embedded in the job.


  • HBASE-17115 | Major | HMaster/HRegion Info Server does not honour admin.acl

Implements authorization for the HBase Web UI by limiting access to certain endpoints which could be used to extract sensitive information from HBase.

Access to these restricted endpoints can be limited to a group of administrators, identified either by a list of users (hbase.security.authentication.spnego.admin.users) or by a list of groups (hbase.security.authentication.spnego.admin.groups). By default, neither of these values are set which will preserve backwards compatibility (allowing all authenticated users to access all endpoints).

Further, users who have sensitive information in the HBase service configuration can set hbase.security.authentication.ui.config.protected to true which will treat the configuration endpoint as a protected, admin-only resource. By default, all authenticated users may access the configuration endpoint.


  • HBASE-23686 | Major | Revert binary incompatible change and remove reflection
  • Reverts a binary incompatible binary change for ByteRangeUtils
  • Usage of reflection inside CommonFSUtils removed

  • HBASE-23679 | Critical | FileSystem instance leaks due to bulk loads with Kerberos enabled

This issues fixes an issue with Bulk Loading on installations with Kerberos enabled and more than a single RegionServer. When multiple tables are involved in hosting a table‘s regions which are being bulk-loaded into, all but the RegionServer hosting the table’s first Region will “leak” one DistributedFileSystem object onto the heap, never freeing that memory. Eventually, with enough bulk loads, this will create a situation for RegionServers where they have no free heap space and will either spend all time in JVM GC, lose their ZK session, or crash with an OutOfMemoryError.

The only mitigation for this issue is to periodically restart RegionServers. All earlier versions of HBase 2.x are subject to this issue (2.0.x, <=2.1.8, <=2.2.3)

HBASE 2.2.3 Release Notes

These release notes cover new developer and user-facing incompatibilities, important issues, features, and major improvements.


  • HBASE-23651 | Major | Region balance throttling can be disabled

Set hbase.balancer.max.balancing to a int value which <=0 will disable region balance throttling.


  • HBASE-23596 | Major | HBCKServerCrashProcedure can double assign

Makes it so the recently added HBCKServerCrashProcedure -- the SCP that gets invoked when an operator schedules an SCP via hbck2 scheduleRecoveries command -- now works the same as SCP EXCEPT if master knows nothing of the scheduled servername. In this latter case, HBCKSCP will do a full scan of hbase:meta looking for instances of the passed servername. If any found it will attempt cleanup of hbase:meta references by reassigning any found OPEN or OPENING and by closing any in CLOSING state.

Used to fix instances of what the ‘HBCK Report’ page shows as ‘Unknown Servers’.


  • HBASE-23619 | Trivial | Use built-in formatting for logging in hbase-zookeeper

Changed the logging in hbase-zookeeper to use built-in formatting


  • HBASE-23320 | Major | Upgrade surefire plugin to 3.0.0-M4

Bumped surefire plugin to 3.0.0-M4


Now AsyncFSWAL also supports Durability.FSYNC_WAL.


  • HBASE-23239 | Major | Reporting on status of backing MOB files from client-facing cells

Users of the MOB feature can now use the mobrefs utility to get statistics about data in the MOB system and verify the health of backing files on HDFS.

HADOOP_CLASSPATH=/etc/hbase/conf:$(hbase mapredcp) yarn jar \
    /some/path/to/hbase-shaded-mapreduce.jar mobrefs mobrefs-report-output some_table foo

See javadocs of the class MobRefReporter for more details.

the reference guide has added some information about MOB internals and troubleshooting.


  • HBASE-23549 | Minor | Document steps to disable MOB for a column family

The reference guide now includes a walk through of disabling the MOB feature if needed while maintaining availability.


  • HBASE-23582 | Minor | Unbalanced braces in string representation of table descriptor

Fixed unbalanced braces in string representation within HBase shell


  • HBASE-23554 | Major | Encoded regionname to regionname utility

    Adds shell command regioninfo:

    hbase(main):001:0\>  regioninfo '0e6aa5c19ae2b2627649dc7708ce27d0'
    {ENCODED =\> 0e6aa5c19ae2b2627649dc7708ce27d0, NAME =\> 'TestTable,,1575941375972.0e6aa5c19ae2b2627649dc7708ce27d0.', STARTKEY =\> '', ENDKEY =\> '00000000000000000000299441'}
    Took 0.4737 seconds
    

  • HBASE-23293 | Minor | [REPLICATION] make ship edits timeout configurable

The default rpc timeout for ReplicationSourceShipper#shipEdits is 60s, when bulkload replication enabled, timeout exception may be occurred. Now we can conf the timeout value through replication.source.shipedits.timeout, and it’s adaptive.


  • HBASE-23312 | Major | HBase Thrift SPNEGO configs (HBASE-19852) should be backwards compatible

The newer HBase Thrift SPNEGO configs should not be required. The hbase.thrift.spnego.keytab.file and hbase.thrift.spnego.principal configs will fall back to the hbase.thrift.keytab.file and hbase.thrift.kerberos.principal original configs. The older configs will log a deprecation warning. It is preferred to new the newer SPNEGO configurations.


  • HBASE-22969 | Minor | A new binary component comparator(BinaryComponentComparator) to perform comparison of arbitrary length and position

With BinaryComponentCompartor applications will be able to design diverse and powerful set of filters for rows and columns. See https://issues.apache.org/jira/browse/HBASE-22969 for example. In general, the comparator can be used with any filter taking ByteArrayComparable. As of now, following filters take ByteArrayComparable:

  1. RowFilter
  2. ValueFilter
  3. QualifierFilter
  4. FamilyFilter
  5. ColumnValueFilter

  • HBASE-23322 | Minor | [hbck2] Simplification on HBCKSCP scheduling

An hbck2 scheduleRecoveries will run a subclass of ServerCrashProcedure which asks Master what Regions were on the dead Server but it will also do a hbase:meta table scan to see if any vestiges of the old Server remain (for the case where an SCP failed mid-point leaving references in place or where Master and hbase:meta deviated in accounting).


  • HBASE-23321 | Minor | [hbck2] fixHoles of fixMeta doesn't update in-memory state

If holes in hbase:meta, hbck2 fixMeta now will update Master in-memory state so you do not need to restart master just so you can assign the new hole-bridging regions.


  • HBASE-23282 | Major | HBCKServerCrashProcedure for ‘Unknown Servers’

hbck2 scheduleRecoveries will now run a SCP that also looks in hbase:meta for any references to the scheduled server -- not just consult Master in-memory state -- just in case vestiges of the server are leftover in hbase:meta


  • HBASE-19450 | Minor | Add log about average execution time for ScheduledChore

HBase internal chores now log a moving average of how long execution of each chore takes at INFO level for the logger org.apache.hadoop.hbase.ScheduledChore.

Such messages will happen at most once per five minutes.


  • HBASE-23250 | Minor | Log message about CleanerChore delegate initialization should be at INFO

CleanerChore delegate initialization is now logged at INFO level instead of DEBUG


  • HBASE-23243 | Major | [pv2] Filter out SUCCESS procedures; on decent-sized cluster, plethora overwhelms problems

The ‘Procedures & Locks’ tab in Master UI only displays problematic Procedures now (RUNNABLE, WAITING-TIMEOUT, etc.). It no longer notes procedures whose state is SUCCESS.


  • HBASE-23227 | Blocker | Upgrade jackson-databind to 2.9.10.1 to avoid recent CVEs

the Apache HBase REST Proxy now uses Jackson Databind version 2.9.10.1 to address the following CVEs

  • CVE-2019-16942
  • CVE-2019-16943

Users of prior releases with Jackson Databind 2.9.10 are advised to either upgrade to this release or to upgrade their local Jackson Databind jar directly.


  • HBASE-23222 | Critical | Better logging and mitigation for MOB compaction failures

The MOB compaction process in the HBase Master now logs more about its activity.

In the event that you run into the problems described in HBASE-22075, there is a new HFileCleanerDelegate that will stop all removal of MOB hfiles from the archive area. It can be configured by adding org.apache.hadoop.hbase.mob.ManualMobMaintHFileCleaner to the list configured for hbase.master.hfilecleaner.plugins. This new cleaner delegate will cause your archive area to grow unbounded; you will have to manually prune files which may be prohibitively complex. Consider if your use case will allow you to mitigate by disabling mob compactions instead.

Caveats:

  • Be sure the list of cleaner delegates still includes the default cleaners you will likely need: ttl, snapshot, and hlink.
  • Be mindful that if you enable this cleaner delegate then there will be no automated process for removing these mob hfiles. You should see a single region per table in %hbase_root%/archive that accumulates files over time. You will have to determine which of these files are safe or not to remove.
  • You should list this cleaner delegate after the snapshot and hlink delegates so that you can enable sufficient logging to determine when an archived mob hfile is needed by those subsystems. When set to TRACE logging, the CleanerChore logger will include archive retention decision justifications.
  • If your use case creates a large number of uniquely named tables, this new delegate will cause memory pressure on the master.

  • HBASE-23172 | Minor | HBase Canary region success count metrics reflect column family successes, not region successes

Added a comment to make clear that read/write success counts are tallying column family success counts, not region success counts.

Additionally, the region read and write latencies previously only stored the latencies of the last column family of the region reads/writes. This has been fixed by using a map of each region to a list of read and write latency values.


  • HBASE-23177 | Major | If fail to open reference because FNFE, make it plain it is a Reference

Changes the message on the FNFE exception thrown when the file a Reference points to is missing; the message now includes detail on Reference as well as pointed-to file so can connect how FNFE relates to region open.

HBASE 2.2.2 Release Notes

These release notes cover new developer and user-facing incompatibilities, important issues, features, and major improvements.


  • HBASE-20626 | Major | Change the value of “Requests Per Second” on WEBUI

Use ‘totalRowActionRequestCount’ to calculate QPS on web UI.


  • HBASE-22874 | Critical | Define a public interface for Canary and move existing implementation to LimitedPrivate

Downstream users who wish to programmatically check the health of their HBase cluster may now rely on a public interface derived from the previously private implementation of the canary cli tool. The interface is named Canary and can be found in the user facing javadocs.

Downstream users who previously relied on the invoking the canary via the Java classname (either on the command line or programmatically) will need to change how they do so because the non-public implementation has moved.


  • HBASE-23035 | Major | Retain region to the last RegionServer make the failover slower

Since 2.0.0,when one regionserver crashed and back online again, AssignmentManager will retain the region locations and try assign the regions to this regionserver(same host:port with the crashed one) again. But for 1.x.x, the behavior is round-robin assignment for the regions belong to the crashed regionserver. This jira change the “retain” assignment to round-robin assignment, which is same with 1.x.x version. This change will make the failover faster and improve availability.


  • HBASE-22975 | Minor | Add read and write QPS metrics at server level and table level

This issue adds read and write QPS(query per second) metrics at server and table level. The table level QPS metrics aggregation at the per-table for each RegionServer.

Using DropwizardMeter data structure to calculate QPS. And the metrics can be obtained from JMX.


  • HBASE-23040 | Minor | region mover gives NullPointerException instead of saying a host isn't in the cluster

giving the region mover “unload” command a region server name that isn‘t recognized by the cluster results in a "I don’t know about that host" message instead of a NPE.

set log level to DEBUG if you'd like the region mover to log the set of region server names it got back from the cluster.


  • HBASE-22796 | Major | [HBCK2] Add fix of overlaps to fixMeta hbck Service

Adds fix of overlaps to the fixMeta hbck service method. Uses the bulk-merge facility. Merges a max of 10 at a time. Set hbase.master.metafixer.max.merge.count to higher if you want to do more than 10 in the one go.


  • HBASE-21745 | Critical | Make HBCK2 be able to fix issues other than region assignment

This issue adds via its subtasks:

* An ‘HBCK Report’ page to the Master UI added by HBASE-22527+HBASE-22709+HBASE-22723+ (since 2.1.6, 2.2.1, 2.3.0). Lists consistency or anomalies found via new hbase:meta consistency checking extensions added to CatalogJanitor (holes, overlaps, bad servers) and by a new ‘HBCK chore’ that runs at a lesser periodicity that will note filesystem orphans and overlaps as well as the following conditions: ** Master thought this region opened, but no regionserver reported it. ** Master thought this region opened on Server1, but regionserver reported Server2 ** More than one regionservers reported opened this region Both chores can be triggered from the shell to regenerate ‘new’ reports. * Means of scheduling a ServerCrashProcedure (HBASE-21393). * An ‘offline’ hbase:meta rebuild (HBASE-22680). * Offline replace of hbase.version and hbase.id * Documentation on how to use completebulkload tool to ‘adopt’ orphaned data found by new HBCK2 ‘filesystem’ check (see below) and ‘HBCK chore’ (HBASE-22859) * A ‘holes’ and ‘overlaps’ fix that runs in the master that uses new bulk-merge facility to collapse many overlaps in the one go. * hbase-operator-tools HBCK2 client tool got a bunch of additions: ** A specialized ‘fix’ for the case where operators ran old hbck ‘offlinemeta’ repair and destroyed their hbase:meta; it ties together holes in meta with orphaned data in the fs (HBASE-22567) ** A ‘filesystem’ command that reports on orphan data as well as bad references and hlinks with a ‘fix’ for the latter two options (based on hbck1 facility updated). ** Adds back the ‘replication’ fix facility from hbck1 (HBASE-22717)

The compound result is that hbck2 is now in excess of hbck1 abilities. The provided functionality is disaggregated as per the hbck2 philosophy of providing ‘plumbing’ rather than ‘porcelain’ so there is work to do still adding fix-it playbooks, scripting across outages, and automation.


Introduces hbtop that‘s a real-time monitoring tool for HBase like Unix’s top command. See README for the details: https://github.com/apache/hbase/blob/master/hbase-hbtop/README.md

HBASE 2.2.1 Release Notes

These release notes cover new developer and user-facing incompatibilities, important issues, features, and major improvements.


  • HBASE-22867 | Critical | The ForkJoinPool in CleanerChore will spawn thousands of threads in our cluster with thousands table

Replace the ForkJoinPool in CleanerChore by ThreadPoolExecutor which can limit the spawn thread size and avoid the master GC frequently. The replacement is an internal implementation in CleanerChore, so no config key change, the upstream users can just upgrade the hbase master without any other change.


  • HBASE-22810 | Major | Initialize an separate ThreadPoolExecutor for taking/restoring snapshot

Introduced a new config key for the snapshot taking/restoring operations at master side: hbase.master.executor.snapshot.threads, its default value is 3. means we can have 3 snapshot operations running at the same time.


  • HBASE-22863 | Major | Avoid Jackson versions and dependencies with known CVEs
  1. Stopped exposing vulnerable Jackson1 dependencies so that downstreamers would not pull it in from HBase.
  2. However, since Hadoop requires some Jackson1 dependencies, put vulnerable Jackson mapper at test scope in some HBase modules and hence, HBase tarball created by hbase-assembly contains Jackson1 mapper jar in lib. Still, downsteam applications can't pull in Jackson1 from HBase.

  • HBASE-22841 | Major | TimeRange's factory functions do not support ranges, only `allTime` and `at`

Add serveral API in TimeRange class for avoiding using the deprecated TimeRange constructor: * TimeRange#from: Represents the time interval [minStamp, Long.MAX_VALUE) * TimeRange#until: Represents the time interval [0, maxStamp) * TimeRange#between: Represents the time interval [minStamp, maxStamp)


  • HBASE-22833 | Minor | MultiRowRangeFilter should provide a method for creating a filter which is functionally equivalent to multiple prefix filters

Provide a public method in MultiRowRangeFilter class to speed the requirement of filtering with multiple row prefixes, it will expand the row prefixes as multiple rowkey ranges by MultiRowRangeFilter, it's more efficient. {code} public MultiRowRangeFilter(byte[][] rowKeyPrefixes); {code}


  • HBASE-22856 | Major | HBASE-Find-Flaky-Tests fails with pip error

Update the base docker image to ubuntu 18.04 for the find flaky tests jenkins job.


  • HBASE-22771 | Major | [HBCK2] fixMeta method and server-side support

Adds a fixMeta method to hbck Service. Fixes holes in hbase:meta. Follow-up to fix overlaps. See HBASE-22567 also.

Follow-on is adding a client-side to hbase-operator-tools that can exploit this new addition (HBASE-22825)


  • HBASE-22777 | Major | Add a multi-region merge (for fixing overlaps, etc.)

Changes merge so you can merge more than two regions at a time. Currently only available inside HBase. HBASE-22827, a follow-on, is about exposing the facility in the Admin API (and then via the shell).


  • HBASE-15666 | Critical | shaded dependencies for hbase-testing-util

New shaded artifact for testing: hbase-shaded-testing-util.


  • HBASE-22539 | Blocker | WAL corruption due to early DBBs re-use when Durability.ASYNC_WAL is used

We found a critical bug which can lead to WAL corruption when Durability.ASYNC_WAL is used. The reason is that we release a ByteBuffer before actually persist the content into WAL file.

The problem maybe lead to several errors, for example, ArrayIndexOfOutBounds when replaying WAL. This is because that the ByteBuffer is reused by others.

ERROR org.apache.hadoop.hbase.executor.EventHandler: Caught throwable while processing event RS_LOG_REPLAY java.lang.ArrayIndexOutOfBoundsException: 18056 at org.apache.hadoop.hbase.KeyValue.getFamilyLength(KeyValue.java:1365) at org.apache.hadoop.hbase.KeyValue.getFamilyLength(KeyValue.java:1358) at org.apache.hadoop.hbase.PrivateCellUtil.matchingFamily(PrivateCellUtil.java:735) at org.apache.hadoop.hbase.CellUtil.matchingFamily(CellUtil.java:816) at org.apache.hadoop.hbase.wal.WALEdit.isMetaEditFamily(WALEdit.java:143) at org.apache.hadoop.hbase.wal.WALEdit.isMetaEdit(WALEdit.java:148) at org.apache.hadoop.hbase.wal.WALSplitter.splitLogFile(WALSplitter.java:297) at org.apache.hadoop.hbase.wal.WALSplitter.splitLogFile(WALSplitter.java:195) at org.apache.hadoop.hbase.regionserver.SplitLogWorker$1.exec(SplitLogWorker.java:100)

And may even cause segmentation fault and crash the JVM directly. You will see a hs_err_pidXXX.log file and usually the problem is SIGSEGV. This is usually because that the ByteBuffer has already been returned to the OS and used for other purpose.

The problem has been reported several times in the past and this time Wellington Ramos Chevreuil provided the full logs and deeply analyzed the logs so we can find the root cause. And Lijin Bin figured out that the problem may only happen when Durability.ASYNC_WAL is used. Thanks to them.

The problem only effects the 2.x releases, all users are highly recommand to upgrade to a release which has this fix in, especially that if you use Durability.ASYNC_WAL.


  • HBASE-22737 | Major | Add a new admin method and shell cmd to trigger the hbck chore to run

Add a new method runHbckChore in Hbck interface and a new shell cmd hbck_chore_run to request HBCK chore to run at master side.


  • HBASE-22741 | Major | Show catalogjanitor consistency complaints in new ‘HBCK Report’ page

Adds a “CatalogJanitor hbase:meta Consistency Issues” section to the new ‘HBCK Report’ page added by HBASE-22709. This section is empty unless the most recent CatalogJanitor scan turned up problems. If so, will show table of issues found.


  • HBASE-22723 | Major | Have CatalogJanitor report holes and overlaps; i.e. problems it sees when doing its regular scan of hbase:meta

When CatalogJanitor runs, it now checks for holes, overlaps, empty info:regioninfo columns and bad servers. Dumps findings into log. Follow-up adds report to new ‘HBCK Report’ linked off the Master UI.

NOTE: All features but the badserver check made it into branch-2.1 and branch-2.0 backports.


  • HBASE-22709 | Major | Add a chore thread in master to do hbck checking and display results in ‘HBCK Report’ page
  1. Add a new chore thread in master to do hbck checking
  2. Add a new web ui “HBCK Report” page to display checking results.

This feature is enabled by default. And the hbck chore run per 60 minutes by default. You can config “hbase.master.hbck.checker.interval” to a value lesser than or equal to 0 for disabling the chore.

Notice: the config “hbase.master.hbck.checker.interval” was renamed to “hbase.master.hbck.chore.interval” in HBASE-22737.


  • HBASE-22722 | Blocker | Upgrade jackson databind dependencies to 2.9.9.1

Upgrade jackson databind dependency to 2.9.9.1 due to CVEs

https://nvd.nist.gov/vuln/detail/CVE-2019-12814

https://nvd.nist.gov/vuln/detail/CVE-2019-12384


  • HBASE-22527 | Major | [hbck2] Add a master web ui to show the problematic regions

Add a new master web UI to show the potentially problematic opened regions. There are three case:

  1. Master thought this region opened, but no regionserver reported it.
  2. Master thought this region opened on Server1, but regionserver reported Server2
  3. More than one regionservers reported opened this region

  • HBASE-22610 | Trivial | [BucketCache] Rename “hbase.offheapcache.minblocksize”

The config point “hbase.offheapcache.minblocksize” was wrong and is now deprecated. The new config point is “hbase.blockcache.minblocksize”.


  • HBASE-22690 | Major | Deprecate / Remove OfflineMetaRepair in hbase-2+

OfflineMetaRepair is no longer supported in HBase-2+. Please refer to https://hbase.apache.org/book.html#HBCK2

This tool is deprecated in 2.x and will be removed in 3.0.


  • HBASE-22673 | Major | Avoid to expose protobuf stuff in Hbck interface

Mark the Hbck#scheduleServerCrashProcedure(List<HBaseProtos.ServerName> serverNames) as deprecated. Use Hbck#scheduleServerCrashProcedures(List<ServerName> serverNames) instead.


  • HBASE-22617 | Blocker | Recovered WAL directories not getting cleaned up

In HBASE-20734 we moved the recovered.edits onto the wal file system but when constructing the directory we missed the BASE_NAMESPACE_DIR(‘data’). So when using the default config, you will find that there are lots of new directories at the same level with the ‘data’ directory.

In this issue, we add the BASE_NAMESPACE_DIR back, and also try our best to clean up the wrong directories. But we can only clean up the region level directories, so if you want a clean fs layout on HDFS you still need to manually delete the empty directories at the same level with ‘data’.

The effect versions are 2.2.0, 2.1.[1-5], 1.4.[8-10], 1.3.[3-5].


  • HBASE-22596 | Minor | [Chore] Separate the execution period between CompactionChecker and PeriodicMemStoreFlusher

hbase.regionserver.compaction.check.period is used for controlling how often the compaction checker runs. If unset, will use hbase.server.thread.wakefrequency as default value.

hbase.regionserver.flush.check.period is used for controlling how ofter the flush checker runs. If unset, will use hbase.server.thread.wakefrequency as default value.

HBASE 2.2.0 Release Notes

These release notes cover new developer and user-facing incompatibilities, important issues, features, and major improvements.


  • HBASE-21970 | Major | Document that how to upgrade from 2.0 or 2.1 to 2.2+

See the document http://hbase.apache.org/book.html#upgrade2.2 about how to upgrade from 2.0 or 2.1 to 2.2+.

HBase 2.2+ uses a new Procedure form assiging/unassigning/moving Regions. It does not process HBase 2.1 and 2.0's Unassign/Assign Procedure types. Upgrade requires that we first drain the Master Procedure Store of old style Procedures before starting the new 2.2 Master. So you need to make sure that before you kill the old version (2.0 or 2.1) Master, there is no region in transition. And once the new version (2.2+) Master is up, you can rolling upgrade RegionServers one by one.

And there is a more safer way if you are running 2.1.1+ or 2.0.3+ cluster. It need four steps to upgrade Master.

  1. Shutdown both active and standby Masters (Your cluster will continue to server reads and writes without interruption).
  2. Set the property hbase.procedure.upgrade-to-2-2 to true in hbase-site.xml for the Master, and start only one Master, still using the 2.1.1+ (or 2.0.3+) version.
  3. Wait until the Master quits. Confirm that there is a ‘READY TO ROLLING UPGRADE’ message in the Master log as the cause of the shutdown. The Procedure Store is now empty.
  4. Start new Masters with the new 2.2+ version.

Then you can rolling upgrade RegionServers one by one. See HBASE-21075 for more details.


  • HBASE-21536 | Trivial | Fix completebulkload usage instructions

Added completebulkload short name for BulkLoadHFilesTool to bin/hbase.


  • HBASE-22500 | Blocker | Modify pom and jenkins jobs for hadoop versions

Change the default hadoop-3 version to 3.1.2. Drop the support for the releases which are effected by CVE-2018-8029, see this email https://lists.apache.org/thread.html/3d6831c3893cd27b6850aea2feff7d536888286d588e703c6ffd2e82@%3Cuser.hadoop.apache.org%3E


  • HBASE-22148 | Blocker | Provide an alternative to CellUtil.setTimestamp

The CellUtil.setTimestamp method changes to be an API with audience LimitedPrivate(COPROC) in HBase 3.0. With that designation the API should remain stable within a given minor release line, but may change between minor releases.

Previously, this method was deprecated in HBase 2.0 for removal in HBase 3.0. Deprecation messages in HBase 2.y releases have been updated to indicate the expected API audience change.


  • HBASE-21991 | Major | Fix MetaMetrics issues - [Race condition, Faulty remove logic], few improvements

The class LossyCounting was unintentionally marked Public but was never intended to be part of our public API. This oversight has been corrected and LossyCounting is now marked as Private and going forward may be subject to additional breaking changes or removal without notice. If you have taken a dependency on this class we recommend cloning it locally into your project before upgrading to this release.


  • HBASE-22226 | Trivial | Incorrect level for headings in asciidoc

Warnings for level headings are corrected in the book for the HBase Incompatibilities section.


  • HBASE-20970 | Major | Update hadoop check versions for hadoop3 in hbase-personality

Add hadoop 3.0.3, 3.1.1 3.1.2 in our hadoop check jobs.


  • HBASE-21784 | Major | Dump replication queue should show list of wal files ordered chronologically

The DumpReplicationQueues tool will now list replication queues sorted in chronological order.


  • HBASE-22384 | Minor | Formatting issues in administration section of book

Fixes a formatting issue in the administration section of the book, where listing indentation were a little bit off.


  • HBASE-22399 | Major | Change default hadoop-two.version to 2.8.x and remove the 2.7.x hadoop checks

Now the default hadoop-two.version has been changed to 2.8.5, and all hadoop versions before 2.8.2(exclude) will not be supported any more.


Removed extra + in HRegion, HStore and LoadIncrementalHFiles for branch-2 and HRegion and HStore for branch-1.


  • HBASE-20494 | Major | Upgrade com.yammer.metrics dependency

Updated metrics core from 3.2.1 to 3.2.6.


  • HBASE-22358 | Minor | Change rubocop configuration for method length

The rubocop definition for the maximum method length was set to 75.


  • HBASE-22379 | Minor | Fix Markdown for “Voting on Release Candidates” in book

Fixes the formatting of the “Voting on Release Candidates” to actually show the quote and code formatting of the RAT check.


  • HBASE-20851 | Minor | Change rubocop config for max line length of 100

The rubocop configuration in the hbase-shell module now allows a line length with 100 characters, instead of 80 as before. For everything before 2.1.5 this change introduces rubocop itself.


  • HBASE-22054 | Minor | Space Quota: Compaction is not working for super user in case of NO_WRITES_COMPACTIONS

This change allows the system and superusers to initiate compactions, even when a space quota violation policy disallows compactions from happening. The original intent behind disallowing of compactions was to prevent end-user compactions from creating undue I/O load, not disallowing *any* compaction in the system.


  • HBASE-22292 | Blocker | PreemptiveFastFailInterceptor clean repeatedFailuresMap issue

Adds new configuration hbase.client.failure.map.cleanup.interval which defaults to ten minutes.


  • HBASE-22155 | Major | Move 2.2.0 on to hbase-thirdparty-2.2.0

Updates libs used internally by hbase via hbase-thirdparty as follows:

gson 2.8.1 -\> 2.8.5 guava 22.0 -\> 27.1-jre pb 3.5.1 -\> 3.7.0 netty 4.1.17 -\> 4.1.34 commons-collections4 4.1 -\> 4.3


  • HBASE-22178 | Major | Introduce a createTableAsync with TableDescriptor method in Admin

Introduced

Future<Void> createTableAsync(TableDescriptor);


  • HBASE-22108 | Major | Avoid passing null in Admin methods

Introduced these methods: void move(byte[]); void move(byte[], ServerName); Future<Void> splitRegionAsync(byte[]);

These methods are deprecated: void move(byte[], byte[])


  • HBASE-22152 | Major | Create a jenkins file for yetus to processing GitHub PR

Add a new jenkins file for running pre commit check for GitHub PR.


  • HBASE-22007 | Major | Add restoreSnapshot and cloneSnapshot with acl methods in AsyncAdmin

Add cloneSnapshot/restoreSnapshot with acl methods in AsyncAdmin.


  • HBASE-22123 | Minor | REST gateway reports Insufficient permissions exceptions as 404 Not Found

When insufficient permissions, you now get:

HTTP/1.1 403 Forbidden

on the HTTP side, and in the message

Forbidden org.apache.hadoop.hbase.security.AccessDeniedException: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user ‘myuser',action: get, tableName:mytable, family:cf. at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.authorizeAccess(RangerAuthorizationCoprocessor.java:547) and the rest of the ADE stack


  • HBASE-22100 | Minor | False positive for error prone warnings in pre commit job

Now we will sort the javac WARNING/ERROR before generating diff in pre-commit so we can get a stable output for the error prone. The downside is that we just sort the output lexicographically so the line number will also be sorted lexicographically, which is a bit strange to human.


  • HBASE-22057 | Major | Impose upper-bound on size of ZK ops sent in a single multi()

Exposes a new configuration property “zookeeper.multi.max.size” which dictates the maximum size of deletes that HBase will make to ZooKeeper in a single RPC. This property defaults to 1MB, which should fall beneath the default ZooKeeper limit of 2MB, controlled by “jute.maxbuffer”.


  • HBASE-22052 | Major | pom cleaning; filter out jersey-core in hadoop2 to match hadoop3 and remove redunant version specifications

Fixed awkward dependency issue that prevented site building.

note specific to HBase 2.1.4

HBase 2.1.4 shipped with an early version of this fix that incorrectly altered the libraries included in our binary assembly for using Apache Hadoop 2.7 (the current build default Hadoop version for 2.1.z). For folks running out of the box against a Hadoop 2.7 cluster (or folks who skip the installation step of replacing the bundled Hadoop libraries) this will result in a failure at Region Server startup due to a missing class definition. e.g.:

2019-03-27 09:02:05,779 ERROR [main] regionserver.HRegionServer: Failed construction RegionServer
java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:644)
	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:628)
	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2667)
	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:93)
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2701)
	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2683)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:372)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:171)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:356)
	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
	at org.apache.hadoop.hbase.util.CommonFSUtils.getRootDir(CommonFSUtils.java:362)
	at org.apache.hadoop.hbase.util.CommonFSUtils.isValidWALRootDir(CommonFSUtils.java:411)
	at org.apache.hadoop.hbase.util.CommonFSUtils.getWALRootDir(CommonFSUtils.java:387)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeFileSystem(HRegionServer.java:704)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:613)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:3029)
	at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:63)
	at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:87)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
	at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:3047)
Caused by: java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilder
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 26 more

Workaround via any one of the following:

  • If you are running against a Hadoop cluster that is 2.8+, ensure you replace the Hadoop libaries in the default binary assembly with those for your version.
  • If you are running against a Hadoop cluster that is 2.8+, build the binary assembly from the source release while specifying your Hadoop version.
  • If you are running against a Hadoop cluster that is a supported 2.7 release, ensure the hadoop executable is in the PATH seen at Region Server startup and that you are not using the HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP bypass.
  • For any supported Hadoop version, manually make the Apache HTrace artifact htrace-core-3.1.0-incubating.jar available to all Region Servers via the HBASE_CLASSPATH environment variable.
  • For any supported Hadoop version, manually make the Apache HTrace artifact htrace-core-3.1.0-incubating.jar available to all Region Servers by copying it into the directory ${HBASE_HOME}/lib/client-facing-thirdparty/.

  • HBASE-22065 | Major | Add listTableDescriptors(List<TableName>) method in AsyncAdmin

Add a listTableDescriptors(List<TableName>) method in the AsyncAdmin interface, to align with the Admin interface.


  • HBASE-22040 | Major | Add mergeRegionsAsync with a List of region names method in AsyncAdmin

Add a mergeRegionsAsync(byte[][], boolean) method in the AsyncAdmin interface.

Instead of using assert, now we will throw IllegalArgumentException when you want to merge less than 2 regions at client side. And also, at master side, instead of using assert, now we will throw DoNotRetryIOException if you want merge more than 2 regions, since we only support merging two regions at once for now.


  • HBASE-22039 | Major | Should add the synchronous parameter for the XXXSwitch method in AsyncAdmin

Add drainXXX parameter for balancerSwitch/splitSwitch/mergeSwitch methods in the AsyncAdmin interface, which has the same meaning with the synchronous parameter for these methods in the Admin interface.


  • HBASE-21810 | Major | bulkload support set hfile compression on client

bulkload (HFileOutputFormat2) support config the compression on client ,you can set the job configuration “hbase.mapreduce.hfileoutputformat.compression” override the auto-detection of the target table's compression


  • HBASE-22000 | Major | Deprecated isTableAvailable with splitKeys

Deprecated AsyncTable.isTableAvailable(TableName, byte[][]).


  • HBASE-21871 | Major | Support to specify a peer table name in VerifyReplication tool

After HBASE-21871, we can specify a peer table name with --peerTableName in VerifyReplication tool like the following: hbase org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication --peerTableName=peerTable 5 TestTable

In addition, we can compare any 2 tables in any remote clusters with specifying both peerId and --peerTableName.

For example: hbase org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication --peerTableName=peerTable zk1,zk2,zk3:2181/hbase TestTable


  • HBASE-15728 | Major | Add remaining per-table region / store / flush / compaction related metrics

Adds below flush, split, and compaction metrics

  • // split related metrics
  • private MutableFastCounter splitRequest;
  • private MutableFastCounter splitSuccess;
  • private MetricHistogram splitTimeHisto;
  • // flush related metrics
  • private MetricHistogram flushTimeHisto;
  • private MetricHistogram flushMemstoreSizeHisto;
  • private MetricHistogram flushOutputSizeHisto;
  • private MutableFastCounter flushedMemstoreBytes;
  • private MutableFastCounter flushedOutputBytes;
  • // compaction related metrics
  • private MetricHistogram compactionTimeHisto;
  • private MetricHistogram compactionInputFileCountHisto;
  • private MetricHistogram compactionInputSizeHisto;
  • private MetricHistogram compactionOutputFileCountHisto;
  • private MetricHistogram compactionOutputSizeHisto;
  • private MutableFastCounter compactedInputBytes;
  • private MutableFastCounter compactedOutputBytes;
  • private MetricHistogram majorCompactionTimeHisto;
  • private MetricHistogram majorCompactionInputFileCountHisto;
  • private MetricHistogram majorCompactionInputSizeHisto;
  • private MetricHistogram majorCompactionOutputFileCountHisto;
  • private MetricHistogram majorCompactionOutputSizeHisto;
  • private MutableFastCounter majorCompactedInputBytes;
  • private MutableFastCounter majorCompactedOutputBytes;

  • HBASE-20886 | Critical | [Auth] Support keytab login in hbase client

From 2.2.0, hbase supports client login via keytab. To use this feature, client should specify `hbase.client.keytab.file` and `hbase.client.keytab.principal` in hbase-site.xml, then the connection will contain the needed credentials which be renewed periodically to communicate with kerberized hbase cluster.


  • HBASE-21410 | Major | A helper page that help find all problematic regions and procedures

After HBASE-21410, we add a helper page to Master UI. This helper page is mainly to help HBase operator quickly found all regions and pids that are get stuck. There are 2 entries to get in this page. One is showing in the Regions in Transition section, it made “num region(s) in transition” a link that you can click and check all regions in transition and their related procedure IDs. The other one is showing in the table details section, it made the number of CLOSING or OPENING regions a link, which you can click and check regions and related procedure IDs of CLOSING or OPENING regions of a certain table. In this helper page, not only you can see all regions and related procedures, there are 2 buttons at the top which will show these regions or procedure IDs in text format. This is mainly aim to help operator to easily copy and paste all problematic procedure IDs and encoded region names to HBCK2's command line, by which we HBase operator can bypass these procedures or assign these regions.


  • HBASE-21588 | Major | Procedure v2 wal splitting implementation

After HBASE-21588, we introduce a new way to do WAL splitting coordination by procedure framework. This can simplify the process of WAL splitting and no need to connect zookeeper any more. During ServerCrashProcedure, it will create a SplitWALProcedure for each WAL that need to split. Then each SplitWALProcedure will spawn a SplitWALRemoteProcedure to send the request to regionserver. At the RegionServer side, whole process is handled by SplitWALCallable. It split the WAL and return the result to master. According to my test, this patch has a better performance as the number of WALs that need to split increase. And it can relieve the pressure on zookeeper.


  • HBASE-20734 | Major | Colocate recovered edits directory with hbase.wal.dir

Previously the recovered.edits directory was under the root directory. This JIRA moves the recovered.edits directory to be under the hbase.wal.dir if set. It also adds a check for any recovered.edits found under the root directory for backwards compatibility. This gives improvements when a faster media(like SSD) or more local FileSystem is used for the hbase.wal.dir than the root dir.


  • HBASE-20401 | Minor | Make `MAX_WAIT` and `waitIfNotFinished` in CleanerContext configurable

When oldwals (and hfile) cleaner cleans stale wals (and hfiles), it will periodically check and wait the clean results from filesystem, the total wait time will be no more than a max time.

The periodically wait and check configurations are hbase.oldwals.cleaner.thread.check.interval.msec (default is 500 ms) and hbase.regionserver.hfilecleaner.thread.check.interval.msec (default is 1000 ms).

Meanwhile, The max time configurations are hbase.oldwals.cleaner.thread.timeout.msec and hbase.regionserver.hfilecleaner.thread.timeout.msec, they are set to 60 seconds by default.

All support dynamic configuration.

e.g. in the oldwals cleaning scenario, one may consider tuning hbase.oldwals.cleaner.thread.timeout.msec and hbase.oldwals.cleaner.thread.check.interval.msec

  1. While deleting a oldwal never complete (strange but possible), then delete file task needs to wait for a max of 60 seconds. Here, 60 seconds might be too long, or the opposite way is to increase more than 60 seconds in the use cases of slow file delete.
  2. The check and wait of a file delete is set to default in the period of 500 milliseconds, one might want to tune this checking period to a short interval to check more frequently or to a longer interval to avoid checking too often to manage their delete file task checking period (the longer interval may be use to avoid checking too fast while using a high latency storage).

  • HBASE-21481 | Major | [acl] Superuser's permissions should not be granted or revoked by any non-su global admin

HBASE-21481 improves the quality of access control, by strengthening the protection of super users's privileges.


  • HBASE-21082 | Critical | Reimplement assign/unassign related procedure metrics

Now we have four types of RIT procedure metrics, assign, unassign, move, reopen. The meaning of assign/unassign is changed, as we will not increase the unassign metric and then the assign metric when moving a region. Also introduced two new procedure metrics, open and close, which are used to track the open/close region calls to region server. We may send open/close multiple times to finish a RIT since we may retry multiple times.


  • HBASE-20724 | Critical | Sometimes some compacted storefiles are still opened after region failover

Problem: This is an old problem since HBASE-2231. The compaction event marker was only writed to WAL. But after flush, the WAL may be archived, which means an useful compaction event marker be deleted, too. So the compacted store files cannot be archived when region open and replay WAL.

Solution: After this jira, the compaction event tracker will be writed to HFile. When region open and load store files, read the compaction evnet tracker from HFile and archive the compacted store files which still exist.


HBase contains two quota scopes: MACHINE and CLUSTER. Before this patch, set quota operations did not expose scope option to client api and use MACHINE as default, CLUSTER scope can not be set and used. Shell commands are as follows: set_quota, TYPE => THROTTLE, TABLE => ‘t1’, LIMIT => ‘10req/sec’

This issue implements CLUSTER scope in a simple way: For user, namespace, user over namespace quota, use [ClusterLimit / RSNum] as machine limit. For table and user over table quota, use [ClusterLimit / TotalTableRegionNum * MachineTableRegionNum] as machine limit. After this patch, user can set CLUSTER scope quota, but MACHINE is still default if user ignore scope. Shell commands are as follows: set_quota, TYPE => THROTTLE, TABLE => ‘t1’, LIMIT => ‘10req/sec’ set_quota, TYPE => THROTTLE, TABLE => ‘t1’, LIMIT => ‘10req/sec’, SCOPE => MACHINE set_quota, TYPE => THROTTLE, TABLE => ‘t1’, LIMIT => ‘10req/sec’, SCOPE => CLUSTER


Change spotbugs version to 3.1.11.


  • HBASE-21922 | Major | BloomContext#sanityCheck may failed when use ROWPREFIX_DELIMITED bloom filter

Remove bloom filter type ROWPREFIX_DELIMITED. May add it back when find a better solution.


  • HBASE-21783 | Major | Support exceed user/table/ns throttle quota if region server has available quota

Support enable or disable exceed throttle quota. Exceed throttle quota means, user can over consume user/namespace/table quota if region server has additional available quota because other users don't consume at the same time. Use the following shell commands to enable/disable exceed throttle quota: enable_exceed_throttle_quota disable_exceed_throttle_quota There are two limits when enable exceed throttle quota:

  1. Must set at least one read and one write region server throttle quota;
  2. All region server throttle quotas must be in seconds time unit. Because once previous requests exceed their quota and consume region server quota, quota in other time units may be refilled in a long time, this may affect later requests.

  • HBASE-20587 | Major | Replace Jackson with shaded thirdparty gson

Remove jackson dependencies from most hbase modules except hbase-rest, use shaded gson instead. The output json will be a bit different since jackson can use getter/setter, but gson will always use the fields.


Mark HConstants.META_QOS as deprecated. It is for internal use only, which is the highest priority. You should not try to set a priority greater than or equal to this value, although it is no harm but also useless.


  • HBASE-17942 | Major | Disable region splits and merges per table

This patch adds the ability to disable split and/or merge for a table (By default, split and merge are enabled for a table).


  • HBASE-21636 | Major | Enhance the shell scan command to support missing scanner specifications like ReadType, IsolationLevel etc.

Allows shell to set Scan options previously not exposed. See additions as part of the scan help by typing following hbase shell:

hbase> help ‘scan’


  • HBASE-21201 | Major | Support to run VerifyReplication MR tool without peerid

We can specify peerQuorumAddress instead of peerId in VerifyReplication tool. So it no longer requires peerId to be setup when using this tool.

For example: hbase org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication zk1,zk2,zk3:2181/hbase testTable


  • HBASE-21838 | Major | Create a special ReplicationEndpoint just for verifying the WAL entries are fine

Introduce a VerifyWALEntriesReplicationEndpoint which replicates nothing but only verifies if all the cells are valid. It can be used to capture bugs for writing WAL, as most times we will not read the WALs again after writing it if there are no region server crashes.


  • HBASE-21727 | Minor | Simplify documentation around client timeout

Deprecated HBaseConfiguration#getInt(Configuration, String, String, int) method and removed it from 3.0.0 version.


  • HBASE-21764 | Major | Size of in-memory compaction thread pool should be configurable

Introduced an new config key in this issue: hbase.regionserver.inmemory.compaction.pool.size. the default value would be 10. you can configure this to set the pool size of in-memory compaction pool. Note that all memstores in one region server will share the same pool, so if you have many regions in one region server, you need to set this larger to compact faster for better read performance.


  • HBASE-21684 | Major | Throw DNRIOE when connection or rpc client is closed

Make StoppedRpcClientException extend DoNotRetryIOException.


  • HBASE-21739 | Major | Move grant/revoke from regionserver to master

To implement user permission control in Precedure V2, move grant and revoke method from AccessController to master firstly. Mark AccessController#grant and AccessController#revoke as deprecated and please use Admin#grant and Admin#revoke instead.


  • HBASE-21791 | Blocker | Upgrade thrift dependency to 0.12.0

IMPORTANT: Due to security issues, all users who use hbase thrift should avoid using releases which do not have this fix.

The effect releases are: 2.1.x: 2.1.2 and below 2.0.x: 2.0.4 and below 1.x: 1.4.x and below

If you are using the effect releases above, please consider upgrading to a newer release ASAP.


  • HBASE-21792 | Major | Mark HTableMultiplexer as deprecated and remove it in 3.0.0

HTableMultiplexer exposes the implementation class, and it is incomplete, so we mark it as deprecated and remove it in 3.0.0 release.

There is no direct replacement for HTableMultiplexer, please use BufferedMutator if you want to batch mutations to a table.


  • HBASE-21782 | Major | LoadIncrementalHFiles should not be IA.Public

Introduce a BulkLoadHFiles interface which is marked as IA.Public, for doing bulk load programmatically. Introduce a BulkLoadHFilesTool which extends BulkLoadHFiles, and is marked as IA.LimitedPrivate(TOOLS), for using from command line. The old LoadIncrementalHFiles is deprecated and will be removed in 3.0.0.


  • HBASE-21762 | Major | Move some methods in ClusterConnection to Connection

Move the two getHbck method from ClusterConnection to Connection, and mark the methods as IA.LimitedPrivate(HBCK), as ClusterConnection is IA.Private and should not be depended by HBCK2.

Add a clearRegionLocationCache method in Connection to clear the region location cache for all the tables. As in RegionLocator, most of the methods have a ‘reload’ parameter, which implicitly tells user that we have a region location cache, so adding a method to clear the cache is fine.


  • HBASE-21713 | Major | Support set region server throttle quota

Support set region server rpc throttle quota which represents the read/write ability of region servers and throttles when region server's total requests exceeding the limit.

Use the following shell command to set RS quota: set_quota TYPE => THROTTLE, REGIONSERVER => ‘all’, THROTTLE_TYPE => WRITE, LIMIT => ‘20000req/sec’ set_quota TYPE => THROTTLE, REGIONSERVER => ‘all’, LIMIT => NONE “all” represents the throttle quota of all region servers and setting specified region server quota isn't supported currently.


  • HBASE-21689 | Minor | Make table/namespace specific current quota info available in shell(describe_namespace & describe)

In shell commands “describe_namespace” and “describe”, which are used to see the descriptors of the namespaces and tables respectively, quotas set on that particular namespace/table will also be printed along.


  • HBASE-17370 | Major | Fix or provide shell scripts to drain and decommission region server

Adds shell support for the following:

  • List decommissioned/draining region servers
  • Decommission a list of region servers, optionally offload corresponding regions
  • Recommission a region server, optionally load a list of passed regions

  • HBASE-21734 | Major | Some optimization in FilterListWithOR

After HBASE-21620, the filterListWithOR has been a bit slow because we need to merge each sub-filter‘s RC , while before HBASE-21620, we will skip many RC merging, but the logic was wrong. So here we choose another way to optimaze the performance: removing the KeyValueUtil#toNewKeyCell. Anoop Sam John suggested that the KeyValueUtil#toNewKeyCell can save some GC before because if we copy key part of cell into a single byte[], then the block the cell refering won’t be refered by the filter list any more, the upper layer can GC the data block quickly. while after HBASE-21620, we will update the prevCellList for every encountered cell now, so the lifecycle of cell in prevCellList for FilterList will be quite shorter. so just use the cell ref for saving cpu. BTW, we removed all the arrays streams usage in filter list, because it's also quite time-consuming in our test.


  • HBASE-21738 | Critical | Remove all the CSLM#size operation in our memstore because it's an quite time consuming.

We found the memstore snapshotting would cost much time because of calling the time-consuming ConcurrentSkipListMap#Size, it would make the p999 latency spike happen. So in this issue, we remove all ConcurrentSkipListMap#size in memstore by counting the cellsCount in MemstoreSizeing. As the issue described, the p999 latency spike was mitigated.


  • HBASE-21034 | Major | Add new throttle type: read/write capacity unit

Provides a new throttle type: capacity unit. One read/write/request capacity unit represents that read/write/read+write up to 1K data. If data size is more than 1K, then consume additional capacity units.

Use shell command to set capacity unit(CU): set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE, USER => ‘u1’, LIMIT => ‘10CU/sec’

Use the “hbase.quota.read.capacity.unit” property to set the data size of one read capacity unit in bytes, the default value is 1K. Use the “hbase.quota.write.capacity.unit” property to set the data size of one write capacity unit in bytes, the default value is 1K.


  • HBASE-21595 | Minor | Print thread's information and stack traces when RS is aborting forcibly

Does thread dump on stdout on abort.


  • HBASE-21732 | Critical | Should call toUpperCase before using Enum.valueOf in some methods for ColumnFamilyDescriptor

Now all the Enum configs in ColumnFamilyDescriptor can accept lower case config value.


  • HBASE-21712 | Minor | Make submit-patch.py python3 compatible

Python3 support was added to dev-support/submit-patch.py. To install newly required dependencies run `pip install -r dev-support/python-requirements.txt` command.


  • HBASE-21657 | Major | PrivateCellUtil#estimatedSerializedSizeOf has been the bottleneck in 100% scan case.

In HBASE-21657, I simplified the path of estimatedSerialiedSize() & estimatedSerialiedSizeOfCell() by moving the general getSerializedSize() and heapSize() from ExtendedCell to Cell interface. The patch also included some other improvments:

  1. For 99% of case, our cells has no tags, so let the HFileScannerImpl just return the NoTagsByteBufferKeyValue if no tags, which means we can save lots of cpu time when sending no tags cell to rpc because can just return the length instead of getting the serialize size by caculating offset/length of each fields(row/cf/cq..)
  2. Move the subclass‘s getSerializedSize implementation from ExtendedCell to their own class, which mean we did not need to call ExtendedCell’s getSerialiedSize() firstly, then forward to subclass's getSerializedSize(withTags).
  3. Give a estimated result arraylist size for avoiding the frequent list extension when in a big scan, now we estimate the array size as min(scan.rows, 512). it's also help a lot.

We gain almost 40% throughput improvement in 100% scan case for branch-2 (cacheHitRatio100%)[1], it‘s a good thing. While it’s a incompatible change in some case, such as if the upstream user implemented their own Cells, although it's rare but can happen, then their compile will be error.


  • HBASE-21647 | Major | Add status track for splitting WAL tasks

Adds task monitor that shows ServerCrashProcedure progress in UI.


  • HBASE-21652 | Major | Refactor ThriftServer making thrift2 server inherited from thrift1 server

Before this issue, thrift1 server and thrift2 server are totally different servers. If a new feature is added to thrift1 server, thrfit2 server have to make the same change to support it(e.g. authorization). After this issue, thrift2 server is inherited from thrift1, thrift2 server now have all the features thrift1 server has(e.g http support, which thrift2 server doesn't have before). The way to start thrift1 or thrift2 server remain the same after this issue.


  • HBASE-21661 | Major | Provide Thrift2 implementation of Table/Admin

ThriftAdmin/ThriftTable are implemented based on Thrift2. With ThriftAdmin/ThriftTable, People can use thrift2 protocol just like HTable/HBaseAdmin. Example of using ThriftConnection Configuration conf = HBaseConfiguration.create(); conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL,ThriftConnection.class.getName()); Connection conn = ConnectionFactory.createConnection(conf); Table table = conn.getTable(tablename) It is just like a normal Connection, similar use experience with the default ConnectionImplementation


  • HBASE-21618 | Critical | Scan with the same startRow(inclusive=true) and stopRow(inclusive=false) returns one result

There was a bug when scan with the same startRow(inclusive=true) and stopRow(inclusive=false). The old incorrect behavior is return one result. After this fix, the new correct behavior is return nothing.


  • HBASE-21159 | Major | Add shell command to switch throttle on or off

Support enable or disable rpc throttle when hbase quota is enabled. If hbase quota is enabled, rpc throttle is enabled by default. When disable rpc throttle, HBase will not throttle any request. Use the following commands to switch rpc throttle : enable_rpc_throttle / disable_rpc_throttle.


  • HBASE-21659 | Minor | Avoid to load duplicate coprocessors in system config and table descriptor

Add a new configuration “hbase.skip.load.duplicate.table.coprocessor”. The default value is false to keep compatible with the old behavior. Config it true to skip load duplicate table coprocessor.


  • HBASE-21650 | Major | Add DDL operation and some other miscellaneous to thrift2

Added DDL operations and some other structure definition to thrift2. Methods added: create/modify/addColumnFamily/deleteColumnFamily/modifyColumnFamily/enable/disable/truncate/delete table create/modify/delete namespace get(list)TableDescriptor(s)/get(list)NamespaceDescirptor(s) tableExists/isTableEnabled/isTableDisabled/isTableAvailabe And some class definitions along with those methods


  • HBASE-21643 | Major | Introduce two new region coprocessor method and deprecated postMutationBeforeWAL

Deprecated region coprocessor postMutationBeforeWAL and introduce two new region coprocessor postIncrementBeforeWAL and postAppendBeforeWAL instead.


  • HBASE-21635 | Major | Use maven enforcer to ban imports from illegal packages

Use de.skuzzle.enforcer.restrict-imports-enforcer-rule extension for maven enforcer plugin to ban illegal imports at compile time. Now if you use illegal imports, for example, import com.google.common.*, there will be a compile error, instead of a checkstyle warning.


  • HBASE-21401 | Critical | Sanity check when constructing the KeyValue

Add a sanity check when constructing KeyValue from a byte[]. we use the constructor when we‘re reading kv from socket or HFIle or WAL(replication). the santiy check isn’t designed for discovering the bits corruption in network transferring or disk IO. It is designed to detect bugs inside HBase in advance. and HBASE-21459 indicated that there's extremely small performance loss for diff kinds of keyvalue.


  • HBASE-21554 | Minor | Show replication endpoint classname for replication peer on master web UI

The replication UI on master will show the replication endpoint classname.


  • HBASE-21549 | Major | Add shell command for serial replication peer

Add a SERIAL flag for add_peer command to identifiy whether or not the replication peer is a serial replication peer. The default serial flag is false.


  • HBASE-21453 | Major | Convert ReadOnlyZKClient to DEBUG instead of INFO

Log level of ReadOnlyZKClient moved to debug.


  • HBASE-21283 | Minor | Add new shell command ‘rit’ for listing regions in transition

The HBase shell now includes a command to list regions currently in transition.

HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
Version 1.5.0-SNAPSHOT, r9bb6d2fa8b760f16cd046657240ebd4ad91cb6de, Mon Oct  8 21:05:50 UTC 2018

hbase(main):001:0> help 'rit'
List all regions in transition.
Examples:
  hbase> rit

hbase(main):002:0> create ...
0 row(s) in 2.5150 seconds
=> Hbase::Table - IntegrationTestBigLinkedList

hbase(main):003:0> rit
0 row(s) in 0.0340 seconds

hbase(main):004:0> unassign '56f0c38c81ae453d19906ce156a2d6a1'
0 row(s) in 0.0540 seconds

hbase(main):005:0> rit 
IntegrationTestBigLinkedList,L\xCC\xCC\xCC\xCC\xCC\xCC\xCB,1539117183224.56f0c38c81ae453d19906ce156a2d6a1. state=PENDING_CLOSE, ts=Tue Oct 09 20:33:34 UTC 2018 (0s ago), server=null                                                                                                                                                                                   
1 row(s) in 0.0170 seconds

  • HBASE-21567 | Major | Allow overriding configs starting up the shell

Allow passing of -Dkey=value option to shell to override hbase-* configuration: e.g.:

$ ./bin/hbase shell -Dhbase.zookeeper.quorum=ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org -Draining=false ... hbase(main):001:0> @shell.hbase.configuration.get(“hbase.zookeeper.quorum”) => “ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org” hbase(main):002:0> @shell.hbase.configuration.get(“raining”) => “false”


  • HBASE-21560 | Major | Return a new TableDescriptor for MasterObserver#preModifyTable to allow coprocessor modify the TableDescriptor

Incompatible change. Allow MasterObserver#preModifyTable to return a new TableDescriptor. And master will use this returned TableDescriptor to modify table.


  • HBASE-21551 | Blocker | Memory leak when use scan with STREAM at server side

Summary

HBase clusters will experience Region Server failures due to out of memory errors due to a leak given any of the following:

  • User initiates Scan operations set to use the STREAM reading type
  • User initiates Scan operations set to use the default reading type that read more than 4 * the block size of column families involved in the scan (e.g. by default 4*64KiB)
  • Compactions run

Root cause

When there are long running scans the Region Server process attempts to optimize access by using a different API geared towards sequential access. Due to an error in HBASE-20704 for HBase 2.0+ the Region Server fails to release related resources when those scans finish. That same optimization path is always used for the HBase internal file compaction process.

Workaround

Impact for this error can be minimized by setting the config value “hbase.storescanner.pread.max.bytes” to MAX_INT to avoid the optimization for default user scans. Clients should also be checked to ensure they do not pass the STREAM read type to the Scan API. This will have a severe impact on performance for long scans.

Compactions always use this sequential optimized reading mechanism so downstream users will need to periodically restart Region Server roles after compactions have happened.


  • HBASE-21550 | Major | Add a new method preCreateTableRegionInfos for MasterObserver which allows CPs to modify the TableDescriptor

Add a new method preCreateTableRegionInfos for MasterObserver, which will be called before creating region infos for the given table, before the preCreateTable method. It allows you to return a new TableDescritor to override the original one. Returns null or throws exception will stop the creation.


  • HBASE-21492 | Critical | CellCodec Written To WAL Before It's Verified

After HBASE-21492 the return type of WALCellCodec#getWALCellCodecClass has been changed from String to Class


  • HBASE-21387 | Major | Race condition surrounding in progress snapshot handling in snapshot cache leads to loss of snapshot files

To prevent race condition between in progress snapshot (performed by TakeSnapshotHandler) and HFileCleaner which results in data loss, this JIRA introduced mutual exclusion between taking snapshot and running HFileCleaner. That is, at any given moment, either some snapshot can be taken or, HFileCleaner checks hfiles which are not referenced, but not both can be running.


  • HBASE-21452 | Major | Illegal character in hbase counters group name

Changes group name of hbase metrics from “HBase Counters” to “HBaseCounters”.


  • HBASE-21443 | Major | [hbase-connectors] Purge hbase-* modules from core now they've been moved to hbase-connectors

Parent issue moved hbase-spark* modules to hbase-connectors. This issue removes hbase-spark* modules from hbase core repo.


  • HBASE-21430 | Major | [hbase-connectors] Move hbase-spark* modules to hbase-connectors repo

hbase-spark* modules have been cloned to https://github.com/apache/hbase-connectors All spark connector dev is to happen in that repo from here on out.

Let me file a subtask to remove hbase-spark* modules from hbase core.


  • HBASE-21417 | Critical | Pre commit build is broken due to surefire plugin crashes

Add -Djdk.net.URLClassPath.disableClassPathURLCheck=true when executing surefire plugin.


  • HBASE-21191 | Major | Add a holding-pattern if no assign for meta or namespace (Can happen if masterprocwals have been cleared).

Puts master startup into holding pattern if meta is not assigned (previous it would exit). To make progress again, operator needs to inject an assign (Caveats and instruction can be found in HBASE-21035).


  • HBASE-21322 | Critical | Add a scheduleServerCrashProcedure() API to HbckService

Adds scheduleServerCrashProcedure to the HbckService.


  • HBASE-21325 | Major | Force to terminate regionserver when abort hang in somewhere

Add two new config hbase.regionserver.abort.timeout and hbase.regionserver.abort.timeout.task. If regionserver abort timeout, it will schedule an abort timeout task to run. The default abort task is SystemExitWhenAbortTimeout, which will force to terminate region server when abort timeout. And you can config a special abort timeout task by hbase.regionserver.abort.timeout.task.


  • HBASE-21215 | Major | Figure how to invoke hbck2; make it easy to find

Adds to bin/hbase means of invoking hbck2. Pass the new ‘-j’ option on the ‘hbck’ command with a value of the full path to the HBCK2.jar.

E.g:

$ ./bin/hbase hbck -j ~/checkouts/hbase-operator-tools/hbase-hbck2/target/hbase-hbck2-1.0.0-SNAPSHOT.jar setTableState x ENABLED


  • HBASE-21372 | Major | Set hbase.assignment.maximum.attempts to Long.MAX

Retry assigns ‘forever’ (or until an intervention such as a ServerCrashProcedure).

Previous retry was a maximum of ten times but on failure, handling was an indeterminate.


  • HBASE-21338 | Major | [balancer] If balancer is an ill-fit for cluster size, it gives little indication

The description claims the balancer not dynamically configurable but this is an error; it is http://hbase.apache.org/book.html#dyn_config

Also, if balancer is seen to be cutting out too soon, try setting “hbase.master.balancer.stochastic.runMaxSteps” to true.

Adds cleaner logging around balancer start.


  • HBASE-21073 | Major | “Maintenance mode” master

    Instead of being an ephemeral state set by hbck, maintenance mode is now an explicit toggle set by either configuration property or environment variable. In maintenance mode, master will host system tables and not assign any user-space tables to RSs. This gives operators the ability to affect repairs to meta table with fewer moving parts.


  • HBASE-21335 | Critical | Change the default wait time of HBCK2 tool

Changed waitTime parameter to lockWait on bypass. Changed default waitTime from 0 -- i.e. wait for ever -- to 1ms so if lock is held, we'll go past it and if override enforce bypass.


  • HBASE-21291 | Major | Add a test for bypassing stuck state-machine procedures

bypass will now throw an Exception if passed a lockWait <= 0; i.e bypass will prevent an operator getting stuck on an entity lock waiting forever (lockWait == 0)


  • HBASE-21320 | Major | [canary] Cleanup of usage and add commentary

Cleans up usage and docs around Canary. Does not change command-line args (though we should -- smile).


  • HBASE-21278 | Critical | Do not rollback successful sub procedures when rolling back a procedure

For the sub procedures which are successfully finished, do not do rollback. This is a change in rollback behavior.

State changes which are done by sub procedures should be handled by parent procedures when rolling back. For example, when rolling back a MergeTableProcedure, we will schedule new procedures to bring the offline regions online instead of rolling back the original procedures which off-lined the regions (in fact these procedures can not be rolled back...).


  • HBASE-21158 | Critical | Empty qualifier cell should not be returned if it does not match QualifierFilter

Scans that make use of QualifierFilter previously would erroneously return both columns with an empty qualifier along with those that matched. After this change that behavior has changed to only return those columns that match.


  • HBASE-21098 | Major | Improve Snapshot Performance with Temporary Snapshot Directory when rootDir on S3

It is recommended to place the working directory on-cluster on HDFS as doing so has shown a strong performance increase due to data locality. It is important to note that the working directory should not overlap with any existing directories as the working directory will be cleaned out during the snapshot process. Beyond that, any well-named directory on HDFS should be sufficient.


  • HBASE-21185 | Minor | WALPrettyPrinter: Additional useful info to be printed by wal printer tool, for debugability purposes

This adds two extra features to WALPrettyPrinter tool:

  1. Output for each cell combined size of cell descriptors, plus the cell value itself, in a given WAL edit. This is printed on the results as “cell total size sum:” info by default;

  2. An optional -g/--goto argument, that allows to seek straight to that specific WAL file position, then sequentially reading the WAL from that point towards its end;


  • HBASE-21287 | Major | JVMClusterUtil Master initialization wait time not configurable

Local HBase cluster (as used by unit tests) wait times on startup and initialization can be configured via `hbase.master.start.timeout.localHBaseCluster` and `hbase.master.init.timeout.localHBaseCluster`


  • HBASE-21280 | Trivial | Add anchors for each heading in UI

Adds anchors #tables, #tasks, etc.


  • HBASE-21232 | Major | Show table state in Tables view on Master home page

Add table state column to the tables panel


  • HBASE-21223 | Critical | [amv2] Remove abort_procedure from shell

Removed the abort_procedure command from shell -- dangerous -- and deprecated abortProcedure in Admin API.


  • HBASE-20636 | Major | Introduce two bloom filter type : ROWPREFIX_FIXED_LENGTH and ROWPREFIX_DELIMITED

Add two bloom filter type : ROWPREFIX_FIXED_LENGTH and ROWPREFIX_DELIMITED

  1. ROWPREFIX_FIXED_LENGTH: specify the length of the prefix
  2. ROWPREFIX_DELIMITED: specify the delimiter of the prefix Need to specify parameters for these two types of bloomfilter, otherwise the table will fail to create Example: create ‘t1’, {NAME => ‘f1’, BLOOMFILTER => ‘ROWPREFIX_FIXED_LENGTH’, CONFIGURATION => {‘RowPrefixBloomFilter.prefix_length’ => ‘10’}} create ‘t1’, {NAME => ‘f1’, BLOOMFILTER => ‘ROWPREFIX_DELIMITED’, CONFIGURATION => {‘RowPrefixDelimitedBloomFilter.delimiter’ => ‘#’}}

  • HBASE-21156 | Critical | [hbck2] Queue an assign of hbase:meta and bulk assign/unassign

Adds ‘raw’ assigns/unassigns to the Hbck Service. Takes a list of encoded region names and bulk assigns/unassigns. Skirts Master ‘state’ check and does not invoke Coprocessors. For repair only.

Here is what HBCK2 usage looks like now:

{code} $ java -cp hbase-hbck2-1.0.0-SNAPSHOT.jar org.apache.hbase.HBCK2 usage: HBCK2 <OPTIONS> COMMAND [<ARGS>]

Options: -d,--debug run with debug output -h,--help output this help message --hbase.zookeeper.peerport peerport of target hbase ensemble --hbase.zookeeper.quorum ensemble of target hbase --zookeeper.znode.parent parent znode of target hbase

Commands: setTableState <TABLENAME> <STATE> Possible table states: ENABLED, DISABLED, DISABLING, ENABLING To read current table state, in the hbase shell run: hbase> get ‘hbase:meta’, ‘<TABLENAME>’, ‘table:state’ A value of \x08\x00 == ENABLED, \x08\x01 == DISABLED, etc. An example making table name ‘user’ ENABLED: $ HBCK2 setTableState users ENABLED Returns whatever the previous table state was.

assign <ENCODED_REGIONNAME> ... A ‘raw’ assign that can be used even during Master initialization. Skirts Coprocessors. Pass one or more encoded RegionNames: e.g. 1588230740 is hard-coded encoding for hbase:meta region and de00010733901a05f5a2a3a382e27dd4 is an example of what a random user-space encoded Region name looks like. For example: $ HBCK2 assign 1588230740 de00010733901a05f5a2a3a382e27dd4 Returns the pid of the created AssignProcedure or -1 if none.

unassign <ENCODED_REGIONNAME> ... A ‘raw’ unassign that can be used even during Master initialization. Skirts Coprocessors. Pass one or more encoded RegionNames: Skirts Coprocessors. Pass one or more encoded RegionNames: de00010733901a05f5a2a3a382e27dd4 is an example of what a random user-space encoded Region name looks like. For example: $ HBCK2 unassign 1588230740 de00010733901a05f5a2a3a382e27dd4 Returns the pid of the created UnassignProcedure or -1 if none. {code}


  • HBASE-21021 | Major | Result returned by Append operation should be ordered

This change ensures Append operations are assembled into the expected order.


  • HBASE-21171 | Major | [amv2] Tool to parse a directory of MasterProcWALs standalone

Make it so can run the WAL parse and load system in isolation. Here is an example:

{code}$ HBASE_OPTS=" -XX:+UnlockDiagnosticVMOptions -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:+DebugNonSafepoints" ./bin/hbase org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore ~/big_set_of_masterprocwals/ {code}


  • HBASE-21107 | Minor | add a metrics for netty direct memory

Add a new nettyDirectMemoryUsage under server's ipc metrics to show direct memory usage for netty rpc server.


  • HBASE-21153 | Major | Shaded client jars should always build in relevant phase to avoid confusion

Client facing artifacts are now built whenever Maven is run through the “package” goal. Previously, the client facing artifacts would create placeholder jars that skipped repackaging HBase and third-party dependencies unless the “release” profile was active.

Build times may be noticeably longer depending on your build hardware. For example, the Jenkins worker nodes maintained by ASF Infra take ~14% longer to do a full packaging build. An example portability-focused personal laptop took ~25% longer.


Allows configuration of the length of RPC messages printed to the log at TRACE level via “hbase.ipc.trace.param.size” in RpcServer.


  • HBASE-20649 | Minor | Validate HFiles do not have PREFIX_TREE DataBlockEncoding

Users who have previously made use of prefix tree encoding can now check that their existing HFiles no longer contain data that uses it with an additional preupgrade check command.

hbase pre-upgrade validate-hfile

Please see the “HFile Content validation” section of the ref guide's coverage of the pre-upgrade validator tool for usage details.


  • HBASE-20941 | Major | Create and implement HbckService in master

Adds an HBCK Service and a first method to force-change-in-table-state for use by an HBCK client effecting ‘repair’ to a malfunctioning HBase.


  • HBASE-21071 | Major | HBaseTestingUtility::startMiniCluster() to use builder pattern

Cleanup all the cluster start override combos in HBaseTestingUtility by adding a StartMiniClusterOption and Builder.


Fence out hbase-1.x hbck1 instances. Stop them making state changes on an hbase-2.x cluster; they could do damage. We do this by writing the hbck1 lock file into place on hbase-2.x Master start-up.

To disable this new behavior, set hbase.write.hbck1.lock.file to false


  • HBASE-20881 | Major | Introduce a region transition procedure to handle all the state transition for a region

Introduced a new TransitRegionStateProcedure to replace the old AssignProcedure/UnassignProcedure/MoveRegionProcedure. In the old code, MRP will not be attached to RegionStateNode, so it can not be interrupted by ServerCrashProcedure, which introduces lots of tricky code to deal with races, and also causes lots of other difficulties on how to prevent scheduling redundant or even conflict procedures for a region.

And now TRSP is the only one procedure which can bring region online or offline. When you want to schedule one, you need to check whether there is already one attached to the RegionStateNode, under the lock of the RegionStateNode. If not just go ahead, and if there is one, then you should do something, for example, give up and fail directly, or tell the TRSP to give up(This is what SCP does). Since the check and attach are both under the lock of RSN, it will greatly reduce the possible races, and make the code much simpler.


  • HBASE-21012 | Critical | Revert the change of serializing TimeRangeTracker

HFiles generated by 2.0.0, 2.0.1, 2.1.0 are not forward compatible to 1.4.6-, 1.3.2.1-, 1.2.6.1-, and other inactive releases. Why HFile lose compatability is hbase in new versions (2.0.0, 2.0.1, 2.1.0) use protobuf to serialize/deserialize TimeRangeTracker (TRT) while old versions use DataInput/DataOutput. To solve this, We have to put HBASE-21012 to 2.x and put HBASE-21013 in 1.x. For more information, please check HBASE-21008.


  • HBASE-20965 | Major | Separate region server report requests to new handlers

After HBASE-20965, we can use MasterFifoRpcScheduler in master to separate RegionServerReport requests to indenpedent handler. To use this feature, please set “hbase.master.rpc.scheduler.factory.class” to “org.apache.hadoop.hbase.ipc.MasterFifoRpcScheduler”. Use “hbase.master.server.report.handler.count” to set RegionServerReport handlers count, the default value is half of “hbase.regionserver.handler.count” value, but at least 1, and the other handlers count in master is “hbase.regionserver.handler.count” value minus RegionServerReport handlers count, but at least 1 too.


  • HBASE-20813 | Minor | Remove RPC quotas when the associated table/Namespace is dropped off

In previous releases, when a Space Quota was configured on a table or namespace and that table or namespace was deleted, the Space Quota was also deleted. This change improves the implementation so that the same is also done for RPC Quotas.


  • HBASE-20986 | Major | Separate the config of block size when we do log splitting and write Hlog

After HBASE-20986, we can set different value to block size of WAL and recovered edits. Both of their default value is 2 * default HDFS blocksize. And hbase.regionserver.recoverededits.blocksize is for block size of recovered edits while hbase.regionserver.hlog.blocksize is for block size of WAL.


  • HBASE-20856 | Minor | PITA having to set WAL provider in two places

With this change if a WAL's meta provider (hbase.wal.meta_provider) is not explicitly set, it now defaults to whatever hbase.wal.provider is set to. Previous, the two settings operated independently, each with its own default.

This change is operationally incompatible with previous HBase versions because the default WAL meta provider no longer defaults to AsyncFSWALProvider but to hbase.wal.provider.

The thought is that this is more in line with an operator's expectation, that a change in hbase.wal.provider is sufficient to change how WALs are written, especially given hbase.wal.meta_provider is an obscure configuration and that the very idea that meta regions would have their own wal provider would likely come as a surprise.


  • HBASE-20538 | Critical | Upgrade our hadoop versions to 2.7.7 and 3.0.3

Update hadoop-two.version to 2.7.7 and hadoop-three.version to 3.0.3 due to a JDK issue which is solved by HADOOP-15473.


  • HBASE-20846 | Major | Restore procedure locks when master restarts
  1. Make hasLock method final, and add a locked field in Procedure to record whether we have the lock. We will set it to true in doAcquireLock and to false in doReleaseLock. The sub procedures do not need to manage it any more.

  2. Also added a locked field in the proto message. When storing, the field will be set according to the return value of hasLock. And when loading, there is a new field in Procedure called lockedWhenLoading. We will set it to true if the locked field in proto message is true.

  3. The reason why we can not set the locked field directly to true by calling doAcquireLock is that, during initialization, most procedures need to wait until master is initialized. So the solution here is that, we introduced a new method called waitInitialized in Procedure, and move the wait master initialized related code from acquireLock to this method. And we added a restoreLock method to Procedure, if lockedWhenLoading is true, we will call the acquireLock to get the lock, but do not set locked to true. And later when we call doAcquireLock and pass the waitInitialized check, we will test lockedWhenLoading, if it is true, when we just set the locked field to true and return, without actually calling the acquireLock method since we have already called it once.


  • HBASE-20672 | Minor | New metrics ReadRequestRate and WriteRequestRate

Exposing 2 new metrics in HBase to provide ReadRequestRate and WriteRequestRate at region server level. These metrics give the rate of request handled by the region server and are reset after every monitoring interval.


  • HBASE-6028 | Minor | Implement a cancel for in-progress compactions

Added a new command to the shell to switch on/off compactions called “compaction_switch”. Disabling compactions will interrupt any currently ongoing compactions. This setting will be lost on restart of the server. Added the configuration hbase.regionserver.compaction.enabled so user can enable/disable compactions via hbase-site.xml.


  • HBASE-20884 | Major | Replace usage of our Base64 implementation with java.util.Base64

Class org.apache.hadoop.hbase.util.Base64 has been removed in it's entirety from HBase 2+. In HBase 1, unused methods have been removed from the class and the audience was changed from Public to Private. This class was originally intended as an internal utility class that could be used externally but thinking since changed; these classes should not have been advertised as public to end-users.

This represents an incompatible change for users who relied on this implementation. An alternative implementation for affected clients is available at java.util.Base64 when using Java 8 or newer; be aware, it may encode/decode differently. For clients seeking to restore this specific implementation, it is available in the public domain for download at http://iharder.sourceforge.net/current/java/base64/


  • HBASE-20357 | Major | AccessControlClient API Enhancement

This enhances the AccessControlClient APIs to retrieve the permissions based on namespace, table name, family and qualifier for specific user. AccessControlClient can also validate a user whether allowed to perform specified operations on a particular table. Following APIs have been added,

  1. getUserPermissions(Connection connection, String tableRegex, byte[] columnFamily, byte[] columnQualifier, String userName) Scope of retrieving permission will be same as existing.
  2. hasPermission(onnection connection, String tableName, byte[] columnFamily, byte[] columnQualifier, String userName, Permission.Action... actions) Scope of validating user privilege, User can perform self check without any special privilege but ADMIN privilege will be required to perform check for other users. For example, suppose there are two users “userA” & “userB” then there can be below scenarios, a. When userA want to check whether userA have privilege to perform mentioned actions userA don‘t need ADMIN privilege, as it’s a self query. b. When userA want to check whether userB have privilege to perform mentioned actions, userA must have ADMIN or superuser privilege, as it's trying to query for other user.