Skip to content

Implement GzipByteBuffDecompressor and integrate with ReusableStreamG… - #258

Draft
SaadASTheDev wants to merge 336 commits into
hubspot-2.6from
gZipByteBuffDecompressor-hs26
Draft

Implement GzipByteBuffDecompressor and integrate with ReusableStreamG…#258
SaadASTheDev wants to merge 336 commits into
hubspot-2.6from
gZipByteBuffDecompressor-hs26

Conversation

@SaadASTheDev

Copy link
Copy Markdown

…zipCodec

rmdmattingly and others added 30 commits October 17, 2025 10:51
…fresh (apache#7387) (apache#7393) (apache#7395)

Signed-off-by: Charles Connell <cconnell@apache.org>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
…to SFT interface (apache#5939) (apache#7382)

Signed-off-by: Andrew Purtell <apurtell@apache.org>

Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
	hbase-server/src/main/java/org/apache/hadoop/hbase/util/ServerRegionReplicaUtil.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/master/janitor/TestCatalogJanitor.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobFileCache.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobStoreCompaction.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/MockHStoreFile.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegionFileSystem.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHStoreFile.java
…nd RELEASENOTES.md

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off by: Ray Mattingly <rmattingly@apache.org>
)

Signed-off by: Ray Mattingly <rmattingly@apache.org>
…job (apache#7198)"

Compatibility issue, see JIRA

This reverts commit 22ba3bf.

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Reviewed-by: Vaibhav Joshi <vjoshi@cloudera.com>
…o file creation in HRegion initialize (apache#7406)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>

Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/master/janitor/MetaFixer.java
	hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
…nd RELEASENOTES.md

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Andrew Purtell <apurtell@apache.org>
…ster (apache#7415)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Junegunn Choi <junegunn@apache.org>
Signed-off-by: Pankaj Kumar <pankajkumar@apache.org>
Reviewed-by: chaijunjie0101 <1340011734@qq.com>
(cherry picked from commit eae2198)
(cherry picked from commit 5fb9066)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 4ac5b6d)
…e bucket cache (apache#7399)

Reviewed by: Kota-SH <shanmukhaharipriya@gmail.com>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…#7440)

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit b911715)
…it (apache#7442)

Signed-off-by: Nihal Jain <nihaljain@apache.org>
(cherry picked from commit 7fd4057)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
(cherry picked from commit 144cd01)
…sable_rpc_throttle (apache#7448) (apache#7458)

Signed-off-by: Nihal Jain <nihaljain@apache.org>
Signed-off-by: Pankaj Kumar <pankajkumar@apache.org>
Reviewed-by: Vaibhav Joshi <vjoshi@cloudera.com>

(cherry picked from commit 59bd6b2)

Co-authored-by: Liu Xiao <42756849+liuxiaocs7@users.noreply.github.com>
…ased Priority (apache#7425) (apache#7462)

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…#7466)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: Aman Poonia <aman.poonia.29@gmail.com>
(cherry picked from commit 290ae1e)

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
Reviewed-by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
Change-Id: Icc6fd32e3b9e56702a48bfa7ba53cb0a84764e0e
…erver as we can get this information by Procedure of master" to branch-2.6 (apache#7471)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
…e:meta table (apache#6859)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
…allback.testFallback is flaky" into branch-2 and branch-2.6 (apache#7472) apache#7476 (apache#7476)

The change in HBASE-25334 (introduced by commit 32c4432 in branch-2 and
branch-2.6) has diverged between the master (apache#2728) and branch-2 branches. 
This is a following up changes after HBASE-29720 and have the complete functional
changes of HBASE-25334 that uses SCP as the source of dead servers in progress.

Signed-off-by: Istvan Toth <stoty@apache.org>
Co-authored-by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
apache#7479)

* HBASE-29223 Migrate Master Status Jamon page back to JSP (apache#6875)

The JSP code is equivalent to the Jamon code, just changed the syntax back to JSP.
Request attributes are used to transfer data between JSP pages.
Tried to preserve the code as much as possible but did some changes:

Sub-templates were usually extracted to separate JSP file (and included with `<jsp:include`), in some case it was extracted as Java method.

Extracted some sections from master page to separate JSP pages:
- Software Attributes
- Warnings

Extracted the long JavaScript from the master page which executes on page load to separate JS file.

Extracted some frequently used static methods to a new util class: `MasterStatusUtil`. Also added unit tests for the static methods in `MasterStatusUtil`.

Changed the Master Status page back to `/master.jsp` again. Now made sure that `/master-status` redirects to `/master.jsp`.

Signed-off-by: Istvan Toth <stoty@apache.org>
(cherry picked from commit be40011)

* [ADDENDUM] HBASE-29223 Fix TestMasterStatusUtil (apache#7416)

TestMasterStatusUtil.testGetFragmentationInfoTurnedOn failed in master nightly build

Signed-off-by: Nihal Jain <nihaljain@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 8ef271f)
…ntryBatch (apache#7431)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 100cd23)
Co-authored-by: ukumawat <ukumawat@salesforce.com>

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 5e6ca9f)
rmdmattingly and others added 15 commits August 9, 2026 18:57
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)

Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
…ith WAL Compression (not yet upstream)

* Initial changes to allow partial cell read in WAL

* Add tests

* More tests

* Add back comments

* Remove redundant tests and simplify

* Get tag value even if tag is out of bounds due to addition

* Clean up a bit

* Add explanatory comment

* Initialize to empty

* Resolve PR comment issue regarding LRU eviction for tags

* Address PR review: two-phase rollback and remove unused dictType param

Rollback in UndoableLRUDictionary previously restored nodes one at a time,
doing remove/setContents/put on the content-based nodeToIndex HashMap. This
could clobber entries when two nodes shared the same content during the
restore (e.g., an evicted value re-added to a different slot). The fix
restores all node state first, then rebuilds nodeToIndex from scratch.

Also removes the unused dictType parameter from TagCompressionContext since
every caller hardcodes LRUDictionary.class and we always need
UndoableLRUDictionary for correctness.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: skhillon <skhillon@hubspot.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…deletes subsequent COMPLETE backups (not yet upstream)

Co-authored-by: Hernan Gelaf-Romer <hgelafromer@hubspot.com>
…essors in region replication (CDC optimization)

* Filter cell. extended attributes and split oversized batches in region replica replication

Region replica replication was forwarding all extended attributes including
large "cell."-prefixed ones added by CDC coprocessors that have no use for
replicas. Strip these in replicate() before buffering to reduce memory and
network overhead.

Also add RPC size limit enforcement (matching HBaseInterClusterReplicationEndpoint)
to split batches that exceed hbase.ipc.max.request.size, preventing permanently
stalled replication.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix test compilation: add replicationRpcLimit parameter to test call sites

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add unit tests for splitBatches and extract as package-private static method

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Remove controller.reset() between batch RPCs

reset() clears priority, callTimeout, tableName, and regionInfo which were
set by the superclass before call() was entered. Since setCellScanner is
called at the top of each loop iteration with the new batch's scanner,
no cleanup is needed between iterations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Revert batch-splitting changes, keep only cell. attribute filtering

Scoping down to just the extended attribute filtering. The batch-splitting
for oversized RPCs will be addressed separately.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: skhillon <skhillon@hubspot.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Hernan Gelaf-Romer <hgelafromer@hubspot.com>
…n 2.7)

Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
…emental backup bulkload copy (not yet upstream)

Co-authored-by: Hernan Gelaf-Romer <hgelafromer@hubspot.com>
…mpt to merge primary and secondary replicas (will be in 2.6.6)

* HubSpot Backport: HBASE-30299 Filter secondary replicas from region normalization planning

The SimpleRegionNormalizer.NormalizeContext was including secondary
replica regions in the list of table regions used for merge/split
planning. Add a filter to remove non-default replicas so only primary
regions are considered for normalization.

Cherry-picked from apache/hbase cd4fce2

* Add table name retrieval in test for secondary replica handling in region planning

---------

Co-authored-by: sahmadsabri <sahmadsabri@hubspot.com>
…ger can lead to data loss (not yet upstream)
sahmadsabri and others added 11 commits August 14, 2026 16:26
…buff

Brings in the latest versions of GzipByteBuffDecompressor, GzipHFileDecompressionContext, TestGzipByteBuffDecompressor, and TestHFileCompressionGzip from the HBASE-30321-gzipbytebuff branch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pulls latest refactor that removes heap decompression logic and supports only
direct-to-direct decompression via ZlibDirectDecompressor (zero-copy path).
Heap/mixed buffer callers fall back to the stream path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@charlesconnell
charlesconnell force-pushed the gZipByteBuffDecompressor-hs26 branch from acc50f5 to 60ebea0 Compare August 14, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.