Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
ef1962e
NPE when flushing a non-existing column family
guluo2016 Nov 30, 2023
8fbdc7d
Update incorrect assertions
guluo2016 Nov 30, 2023
343683e
Update assertions
guluo2016 Nov 30, 2023
7f3e400
Revert "HBASE-28204 Canary can take lot more time If region starts wi…
virajjasani Dec 1, 2023
02217e1
HBASE-28222 Leak in ExportSnapshot during verifySnapshot on S3A (#5554)
bbeaudreault Dec 1, 2023
7dd4d0c
HBASE-28212 Addendum fix TestShell (#5555)
Apache9 Dec 1, 2023
8631714
HBASE-28226 Add logic to check for RegionStateNode null pointer in Fl…
hiping-tech Dec 4, 2023
cf798ad
HBASE-28199 Phase I: Suspend TRSP and SCP when updating meta (#5520)
Apache9 Dec 4, 2023
bc0f7a4
HBASE-28209: Create a jmx metrics to expose the oldWALs directory siz…
vinayakphegde Dec 4, 2023
25e9228
HBASE-28215: region reopen procedure batching/throttling (#5534)
rmdmattingly Dec 4, 2023
6e421e9
HBASE-28206 [JDK17] JVM crashes intermittently on aarch64 (#5561)
bbeaudreault Dec 6, 2023
82a2ce1
HBASE-28248 Race between RegionRemoteProcedureBase and rollback opera…
Apache9 Dec 9, 2023
25c639f
HBASE-28251 [SFT] Add description for specifying SFT impl during snap…
wchevreuil Dec 11, 2023
78c5ac3
HBASE-28190 Add slow sync log rolling test in TestAsyncLogRolling. (#…
zhuyaogai Dec 11, 2023
5503962
HBASE-28252 Add sun.net.dns and sun.net.util to the JDK11+ module exp…
stoty Dec 12, 2023
f406c6b
HBASE-28247 Add java.base/sun.net.dns and java.base/sun.net.util expo…
stoty Dec 12, 2023
3d11712
HBASE-28241 The snapshot operation encountered an NPE and failed. (#5…
hiping-tech Dec 12, 2023
29bfc61
HBASE-28244 ProcedureTestingUtility.restart is broken sometimes after…
Apache9 Dec 13, 2023
74405ea
flush failed-fast if there are non-existing families at client side
guluo2016 Dec 11, 2023
9eb6cc4
HBASE-28029 Netty SSL throughput improvement (#5580)
bbeaudreault Dec 14, 2023
4ffdcea
HBASE-28245 Sync internal protobuf version for hbase to be same as hb…
NihalJain Dec 14, 2023
4a5e721
HBASE-28243 Bump jackson version to 2.15.2 (#5562)
NihalJain Dec 14, 2023
e8762df
HBASE-28246 Expose region cached size over JMX metrics and report in …
wchevreuil Dec 14, 2023
29cf51d
HBASE-28031 Add timeout for ThrottleQuotaTestUtil.triggerCacheRefresh…
Apache9 Dec 15, 2023
e45b9c4
HBASE-28180 Review the usage of RegionStates.getOrCreateServer (#5486)
Apache9 Dec 16, 2023
d747e15
HBASE-21243 Correct java-doc for the method RpcServer.getRemoteAddress()
NihalJain Dec 16, 2023
b7c3f8c
HBASE-20528 Revise collections copying from iteration to built-in fun…
jackyhobingo Dec 16, 2023
53e01b2
HBASE-21500 "hbase.jetty.logs.serve.aliases" is broken with jetty 9 v…
NihalJain Dec 18, 2023
9f0625c
HBASE-28216 HDFS erasure coding support for table data dirs (#5579)
bbeaudreault Dec 19, 2023
8f4a495
HBASE-28254 Flaky test: TestTableShell (#5590)
anmolnar Dec 19, 2023
2c07847
HBASE-28216 Addendum: protect against test order changes
bbeaudreault Dec 19, 2023
d084b4c
HBASE-28275 Flaky test: Fix 'test_list_decommissioned_regionservers' …
NihalJain Dec 21, 2023
4e8d93d
HBASE-28269 Fix broken ruby scripts and clean up logging (#5588)
NihalJain Dec 22, 2023
8cee4dd
HBASE-28274 Flaky test: TestFanOutOneBlockAsyncDFSOutput (Part 2) (#5…
anmolnar Dec 22, 2023
5201ae2
HBASE-28224 ClientSideRegionScanner appears not to shutdown MobFileCa…
jbewing Dec 22, 2023
beceacc
HBASE-28240 Phase II: Suspend TRSP and SCP when they can not get regi…
Apache9 Dec 24, 2023
35bbfbb
HBASE-28280 Attach the design doc to dev-support/design-docs (#5595)
Apache9 Dec 24, 2023
75801a5
HBASE-28282 Update downloads.xml for release 2.5.7
apurtell Dec 24, 2023
ec43ea1
HBASE-28290 Add 'TM' superscript to the index page title when generat…
Apache9 Jan 2, 2024
4e0af3b
HBASE-28290 Addendum also change title for test javadoc (#5601)
Apache9 Jan 3, 2024
4a54558
HBASE-28249 Bump jruby to 9.3.13.0 and related joni and jcodings to 2…
NihalJain Jan 3, 2024
1198854
HBASE-28259 Add java.base/java.io=ALL-UNNAMED open to jdk11_jvm_flags…
zhaomoran Jan 5, 2024
849eee4
HBASE-28290 Addendum use 'Test API' for test javadoc (#5602)
Apache9 Jan 6, 2024
4aeabdc
HBASE-28277 Move minimum hadoop 3 support to 3.3.x for 2.6+ (#5598)
Apache9 Jan 6, 2024
1176e92
HBASE-28295 Fews tests are failing due to NCDFE: org/bouncycastle/ope…
NihalJain Jan 7, 2024
71cecb0
HBASE-26268 Provide coprocessor hooks for updateConfiguration and cle…
charlesconnell Jan 8, 2024
0916c72
HBASE-28261 Sync jvm11 module flags from hbase-surefire.jdk11.flags t…
stoty Jan 9, 2024
a09305d
HBASE-28297 IntegrationTestImportTsv fails with ArrayIndexOfOutBounds…
Apache9 Jan 10, 2024
0db4231
[ADDENDUM] HBASE-28295 Few tests are failing due to NCDFE: org/bouncy…
NihalJain Jan 10, 2024
8cab5a2
HBASE-28304 Add hbase-shaded-testing-util version to dependencyManage…
bbeaudreault Jan 11, 2024
a7429a7
HBASE-28301 IntegrationTestImportTsv fails with UnsupportedOperationE…
NihalJain Jan 11, 2024
d57e4e2
HBASE-28308 Bump gitpython from 3.1.37 to 3.1.41 in /dev-support/flak…
dependabot[bot] Jan 13, 2024
8ae77e2
HBASE-28309 Bump gitpython in /dev-support/git-jira-release-audit (#5…
dependabot[bot] Jan 13, 2024
6133d74
HBASE-28310 Bump jinja2 from 3.1.2 to 3.1.3 in /dev-support/flaky-tes…
dependabot[bot] Jan 13, 2024
4d2b8f8
HBASE-28287 MOB HFiles are expired earlier than their reference data …
liuwenjing17 Jan 13, 2024
e3a0174
HBASE-28305 Add "Uncompressed StoreFileSize" column to the table.jsp …
haosenchen Jan 13, 2024
a683fcf
HBASE-27814 Add support for dump and process metrics servlet in REST …
NihalJain Jan 14, 2024
7016c64
HBASE-28307 Add hbase-openssl module and include in release binaries …
bbeaudreault Jan 14, 2024
3cfc92f
HBASE-28265 Add 3.0.0-beta-1 to download page (#5624)
Apache9 Jan 16, 2024
f5fd60e
HBASE-28256 Enhance ByteBufferUtils.readVLong to read more bytes at a…
jbewing Jan 16, 2024
696f583
HBASE-28306 Add property to customize Version information (#5621)
bbeaudreault Jan 16, 2024
6017937
HBASE-28312 The bad auth exception can not be passed to client rpc ca…
Apache9 Jan 17, 2024
6b0ce08
HBASE-28312 Addendum NettyRpcConnection and ConnectionId do not need …
Apache9 Jan 17, 2024
c001ed3
HBASE-28316 Add BootstrapNodeService handlers (#5637)
Apache9 Jan 18, 2024
fdde227
HBASE-28319 Expose DelegatingRpcScheduler as IA.LimitedPrivate (#5638)
bbeaudreault Jan 18, 2024
2f6b6aa
HBASE-28324 TestRegionNormalizerWorkQueue#testTake is flaky (#5643)
ddupg Jan 22, 2024
877830e
HBASE-28271 Infinite waiting on lock acquisition by snapshot can resu…
virajjasani Jan 23, 2024
b8cea19
HBASE-28325 Enable infra automation to comment on a Jira when a new P…
ndimiduk Jan 23, 2024
3a91c5b
HBASE-28302 Add tracking of fs read times in ScanMetrics and slow log…
bbeaudreault Jan 23, 2024
0c48e5a
HBASE-28326 All nightly jobs are failing (#5646)
Apache9 Jan 24, 2024
354a3a2
HBASE-28322 Attach the design doc in HBASE-26220 to our code base (#5…
Apache9 Jan 24, 2024
8d88acc
HBASE-28329 Output hbase logs to working directory in client integrat…
Apache9 Jan 25, 2024
caa6aed
HBASE-28255 Correcting spelling errors or annotations with non-standa…
LeshracTheMalicious Jan 25, 2024
b87b05c
Revert "HBASE-28325 Enable infra automation to comment on a Jira when…
ndimiduk Jan 25, 2024
ef1ddc9
HBASE-28327 Add remove(String key, Metric metric) method to MetricReg…
eab148 Jan 25, 2024
1c5b5ff
HBASE-28315 Remove noisy WARN from trying to construct MetricsServlet…
bbeaudreault Jan 25, 2024
73cb0dd
HBASE-28303 Interrupt cache prefetch thread when a heap usage thresho…
wchevreuil Jan 26, 2024
addb4e7
HBASE-28332 Type conversion is no need in method CompactionChecker.ch…
guluo2016 Jan 26, 2024
9c79a7f
HBASE-28331 Client integration test fails after upgrading hadoop3 ver…
Apache9 Jan 26, 2024
11458ec
HBASE-28333 Refactor TestClientTimeouts to make it more clear that wh…
Apache9 Jan 26, 2024
d82a892
HBASE-28325 Enable infra automation to add label on a Jira when a new…
Apache9 Jan 26, 2024
3b2e981
HBASE-28151 Option to allow/disallow bypassing pre transit check for …
rahulLiving Jan 27, 2024
97574a2
HBASE-28317 Expose client TLS certificate on RpcCallContext (#5644)
charlesconnell Jan 29, 2024
f3db223
HBASE-28331 Client integration test fails after upgrading hadoop3 ver…
Apache9 Jan 29, 2024
f34e214
HBASE-28331 Addendum remove stale hadoop tarballs in client integrati…
Apache9 Jan 30, 2024
c4e332a
HBASE-28336 Correctly cast array of Certificates to array of X509Cert…
charlesconnell Jan 30, 2024
f253453
HBASE-28334 Add comment around erasure coding policy in DEFAULT_VALU…
nirdosh0110 Feb 5, 2024
256f10b
HBASE-28338 Bounded leak of FSDataInputStream buffers from checksum s…
bbeaudreault Feb 5, 2024
16de74c
HBASE-25051 DIGEST based auth broken for rpc based ConnectionRegistry…
Apache9 Feb 6, 2024
afbf2ad
HBASE-27687 Enhance quotas to consume blockBytesScanned rather than r…
rmdmattingly Feb 6, 2024
3656293
HBASE-28345 Close HBase connection on exit from HBase Shell (#5665)
stoty Feb 7, 2024
275d928
HBASE-27800: Add support for default user quotas (#5666)
rmdmattingly Feb 7, 2024
e85557a
HBASE-28337 Positive connection test in TestShadeSaslAuthenticationPr…
anmolnar Feb 8, 2024
98eb3e0
HBASE-28349 Count atomic operations against read quotas (#5668)
rmdmattingly Feb 8, 2024
b3ffc4a
HBASE-28355 Bump cryptography in /dev-support/git-jira-release-audit …
dependabot[bot] Feb 10, 2024
3ccf655
HBASE-28341 [JDK17] Fix Failure TestLdapHttpServer (#5672)
chrajeshbabu Feb 12, 2024
3e281bd
HBASE-28204 : Region Canary can take lot more time If any region (exc…
mihir6692 Feb 12, 2024
e2ff158
HBASE-28357 MoveWithAck#isSuccessfulScan for Region movement should u…
mihir6692 Feb 13, 2024
a4002d6
HBASE-28356 RegionServer Canary should use Scan just like Region Cana…
mihir6692 Feb 13, 2024
9656006
HBASE-28353 Close HBase connection on implicit exit from HBase shell …
stoty Feb 13, 2024
d925754
HBASE-28340. Use all Zk client properties that is found in HBase conf…
anmolnar Feb 15, 2024
96a447f
HBASE-28378 Bump cryptography in /dev-support/git-jira-release-audit …
dependabot[bot] Feb 18, 2024
b5175ba
HBASE-28142 Region Server Logs getting spammed with warning when stor…
anchal246 Feb 18, 2024
5398b13
HBASE-28238 rpcservice should perform some important admin operation …
Kerasone Feb 19, 2024
e23a7e7
NPE when flushing a non-existing column family
guluo2016 Nov 30, 2023
8daf232
Update incorrect assertions
guluo2016 Nov 30, 2023
6bc73ca
Update assertions
guluo2016 Nov 30, 2023
8ceb8f0
flush failed-fast if there are non-existing families at client side
guluo2016 Dec 11, 2023
3f2106c
Merge branch 'hbase_flush_issue' of https://github.com/guluo2016/hbas…
guluo2016 Feb 19, 2024
ac16dfe
update
guluo2016 Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ notifications:
commits: [email protected]
issues: [email protected]
pullrequests: [email protected]
jira_options: link
jira_options: link label
9 changes: 6 additions & 3 deletions bin/draining_servers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

java_import org.apache.hadoop.hbase.HBaseConfiguration
java_import org.apache.hadoop.hbase.client.ConnectionFactory
java_import org.apache.hadoop.hbase.client.HBaseAdmin
java_import org.apache.hadoop.hbase.zookeeper.ZKUtil
java_import org.apache.hadoop.hbase.zookeeper.ZNodePaths
java_import org.slf4j.LoggerFactory
Expand Down Expand Up @@ -136,8 +135,12 @@ def listServers(_options)

hostOrServers = ARGV[1..ARGV.size]

# Create a logger and save it to ruby global
$LOG = LoggerFactory.getLogger(NAME)
# disable debug/info logging on this script for clarity
log_level = 'ERROR'
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop.hbase', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.zookeeper', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop', log_level)

case ARGV[0]
when 'add'
if ARGV.length < 2
Expand Down
7 changes: 4 additions & 3 deletions bin/get-active-master.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
java_import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker

# disable debug/info logging on this script for clarity
log_level = org.apache.log4j.Level::ERROR
org.apache.log4j.Logger.getLogger('org.apache.hadoop.hbase').setLevel(log_level)
org.apache.log4j.Logger.getLogger('org.apache.zookeeper').setLevel(log_level)
log_level = 'ERROR'
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop.hbase', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.zookeeper', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop', log_level)

config = HBaseConfiguration.create

Expand Down
6 changes: 4 additions & 2 deletions bin/hbase
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ add_jdk11_deps_to_classpath() {
}

add_jdk11_jvm_flags() {
HBASE_OPTS="$HBASE_OPTS -Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true --add-modules jdk.unsupported --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED"
# Keep in sync with hbase-surefire.jdk11.flags in the root pom.xml
HBASE_OPTS="$HBASE_OPTS -Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true --add-modules jdk.unsupported --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED --add-exports java.base/sun.net.dns=ALL-UNNAMED --add-exports java.base/sun.net.util=ALL-UNNAMED"
}

add_opentelemetry_agent() {
Expand Down Expand Up @@ -786,7 +787,7 @@ fi
# Add lib/jdk11 jars to the classpath

if [ "${DEBUG}" = "true" ]; then
echo "Deciding on addition of lib/jdk11 jars to the classpath"
echo "Deciding on addition of lib/jdk11 jars to the classpath and setting JVM module flags"
fi

addJDK11Jars=false
Expand Down Expand Up @@ -879,6 +880,7 @@ export CLASSPATH
if [ "${DEBUG}" = "true" ]; then
echo "classpath=${CLASSPATH}" >&2
HBASE_OPTS="${HBASE_OPTS} -Xdiag"
echo "HBASE_OPTS=${HBASE_OPTS}"
fi

# resolve the command arguments
Expand Down
8 changes: 6 additions & 2 deletions bin/hbase-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,12 @@ EOF
fi

function read_java_version() {
properties="$("${JAVA_HOME}/bin/java" -XshowSettings:properties -version 2>&1)"
echo "${properties}" | "${GREP}" java.runtime.version | head -1 | "${SED}" -e 's/.* = \([^ ]*\)/\1/'
# Avoid calling java repeatedly
if [ -z "$read_java_version_cached" ]; then
properties="$("${JAVA_HOME}/bin/java" -XshowSettings:properties -version 2>&1)"
read_java_version_cached="$(echo "${properties}" | "${GREP}" java.runtime.version | head -1 | "${SED}" -e 's/.* = \([^ ]*\)/\1/')"
fi
echo "$read_java_version_cached"
}

# Inspect the system properties exposed by this JVM to identify the major
Expand Down
13 changes: 7 additions & 6 deletions bin/replication/copy_tables_desc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@
java_import org.apache.hadoop.conf.Configuration
java_import org.apache.hadoop.hbase.HBaseConfiguration
java_import org.apache.hadoop.hbase.HConstants
java_import org.apache.hadoop.hbase.HTableDescriptor
java_import org.apache.hadoop.hbase.TableName
java_import org.apache.hadoop.hbase.client.ConnectionFactory
java_import org.apache.hadoop.hbase.client.HBaseAdmin
java_import org.slf4j.LoggerFactory

# Name of this script
NAME = 'copy_tables_desc'.freeze
Expand All @@ -45,7 +42,7 @@ def usage
def copy(src, dst, table)
# verify if table exists in source cluster
begin
t = src.getTableDescriptor(TableName.valueOf(table))
t = src.getDescriptor(TableName.valueOf(table))
rescue org.apache.hadoop.hbase.TableNotFoundException
puts format("Source table \"%s\" doesn't exist, skipping.", table)
return
Expand All @@ -62,9 +59,13 @@ def copy(src, dst, table)
puts format('Schema for table "%s" was succesfully copied to remote cluster.', table)
end

usage if ARGV.size < 2 || ARGV.size > 3
# disable debug/info logging on this script for clarity
log_level = 'ERROR'
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop.hbase', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.zookeeper', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop', log_level)

LOG = LoggerFactory.getLogger(NAME)
usage if ARGV.size < 2 || ARGV.size > 3

parts1 = ARGV[0].split(':')

Expand Down
7 changes: 6 additions & 1 deletion bin/shutdown_regionserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

include Java
java_import org.apache.hadoop.hbase.HBaseConfiguration
java_import org.apache.hadoop.hbase.client.HBaseAdmin
java_import org.apache.hadoop.hbase.client.ConnectionFactory

def usage(msg = nil)
Expand All @@ -35,6 +34,12 @@ def usage(msg = nil)
abort
end

# disable debug/info logging on this script for clarity
log_level = 'ERROR'
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop.hbase', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.zookeeper', log_level)
org.apache.hadoop.hbase.logging.Log4jUtils.setAllLevels('org.apache.hadoop', log_level)

usage if ARGV.empty?

ARGV.each do |x|
Expand Down
13 changes: 9 additions & 4 deletions dev-support/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pipeline {
rm -rf "${YETUS_DIR}"
"${WORKSPACE}/component/dev-support/jenkins-scripts/cache-apache-project-artifact.sh" \
--working-dir "${WORKSPACE}/downloads-yetus" \
--keys 'https://www.apache.org/dist/yetus/KEYS' \
--keys 'https://downloads.apache.org/yetus/KEYS' \
--verify-tar-gz \
"${WORKSPACE}/yetus-${YETUS_RELEASE}-bin.tar.gz" \
"yetus/${YETUS_RELEASE}/apache-yetus-${YETUS_RELEASE}-bin.tar.gz"
Expand Down Expand Up @@ -138,7 +138,7 @@ pipeline {
echo "Ensure we have a copy of Hadoop ${HADOOP2_VERSION}"
"${WORKSPACE}/component/dev-support/jenkins-scripts/cache-apache-project-artifact.sh" \
--working-dir "${WORKSPACE}/downloads-hadoop-2" \
--keys 'http://www.apache.org/dist/hadoop/common/KEYS' \
--keys 'https://downloads.apache.org/hadoop/common/KEYS' \
--verify-tar-gz \
"${WORKSPACE}/hadoop-${HADOOP2_VERSION}-bin.tar.gz" \
"hadoop/common/hadoop-${HADOOP2_VERSION}/hadoop-${HADOOP2_VERSION}.tar.gz"
Expand All @@ -152,7 +152,7 @@ pipeline {
}
stage ('hadoop 3 cache') {
environment {
HADOOP3_VERSION="3.1.1"
HADOOP3_VERSION="3.3.5"
}
steps {
// directory must be unique for each parallel stage, because jenkins runs them in the same workspace :(
Expand All @@ -166,7 +166,7 @@ pipeline {
echo "Ensure we have a copy of Hadoop ${HADOOP3_VERSION}"
"${WORKSPACE}/component/dev-support/jenkins-scripts/cache-apache-project-artifact.sh" \
--working-dir "${WORKSPACE}/downloads-hadoop-3" \
--keys 'http://www.apache.org/dist/hadoop/common/KEYS' \
--keys 'https://downloads.apache.org/hadoop/common/KEYS' \
--verify-tar-gz \
"${WORKSPACE}/hadoop-${HADOOP3_VERSION}-bin.tar.gz" \
"hadoop/common/hadoop-${HADOOP3_VERSION}/hadoop-${HADOOP3_VERSION}.tar.gz"
Expand Down Expand Up @@ -661,6 +661,9 @@ pipeline {
rm -rf "hadoop-3" && mkdir "hadoop-3"
rm -rf ".m2-for-repo" && mkdir ".m2-for-repo"
rm -rf ".m2-for-src" && mkdir ".m2-for-src"
# remove old hadoop tarballs in workspace
rm -rf hadoop-2*.tar.gz
rm -rf hadoop-3*.tar.gz
echo "(x) {color:red}-1 source release artifact{color}\n-- Something went wrong with this stage, [check relevant console output|${BUILD_URL}/console]." >output-srctarball/commentfile
echo "(x) {color:red}-1 client integration test{color}\n-- Something went wrong with this stage, [check relevant console output|${BUILD_URL}/console]." >output-integration/commentfile
'''
Expand Down Expand Up @@ -726,6 +729,8 @@ pipeline {
echo "Attempting to use run an instance on top of Hadoop 3."
artifact=$(ls -1 "${WORKSPACE}"/hadoop-3*.tar.gz | head -n 1)
tar --strip-components=1 -xzf "${artifact}" -C "hadoop-3"
# we need to patch some files otherwise minicluster will fail to start, see MAPREDUCE-7471
${BASEDIR}/dev-support/patch-hadoop3.sh hadoop-3
if ! "${BASEDIR}/dev-support/hbase_nightly_pseudo-distributed-test.sh" \
--single-process \
--working-dir output-integration/hadoop-3 \
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions dev-support/flaky-tests/python-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
#
requests==2.31.0
future==0.18.3
gitpython==3.1.37
gitpython==3.1.41
rbtools==4.0
jinja2==3.1.2
jinja2==3.1.3
4 changes: 2 additions & 2 deletions dev-support/git-jira-release-audit/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ blessed==1.17.0
certifi==2023.7.22
cffi==1.13.2
chardet==3.0.4
cryptography==41.0.6
cryptography==42.0.2
defusedxml==0.6.0
enlighten==1.4.0
gitdb2==2.0.6
GitPython==3.1.37
GitPython==3.1.41
idna==2.8
jira==2.0.0
oauthlib==3.1.0
Expand Down
11 changes: 9 additions & 2 deletions dev-support/hbase-personality.sh
Original file line number Diff line number Diff line change
Expand Up @@ -602,13 +602,20 @@ function hadoopcheck_rebuild
else
hbase_hadoop3_versions="3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6"
fi
else
yetus_info "Setting Hadoop 3 versions to test based on branch-2.5+/master/feature branch rules"
elif [[ "${PATCH_BRANCH}" = branch-2.5 ]]; then
yetus_info "Setting Hadoop 3 versions to test based on branch-2.5 rules"
if [[ "${QUICK_HADOOPCHECK}" == "true" ]]; then
hbase_hadoop3_versions="3.2.4 3.3.6"
else
hbase_hadoop3_versions="3.2.3 3.2.4 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6"
fi
else
yetus_info "Setting Hadoop 3 versions to test based on branch-2.6+/master/feature branch rules"
if [[ "${QUICK_HADOOPCHECK}" == "true" ]]; then
hbase_hadoop3_versions="3.3.6"
else
hbase_hadoop3_versions="3.3.5 3.3.6"
fi
fi

export MAVEN_OPTS="${MAVEN_OPTS}"
Expand Down
2 changes: 1 addition & 1 deletion dev-support/hbase_nightly_pseudo-distributed-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ redirect_and_run "${working_dir}/hadoop_cluster_smoke" \
"${hadoop_exec}" --config "${working_dir}/hbase-conf/" fs -ls -R /

echo "Starting up HBase"
HBASE_CONF_DIR="${working_dir}/hbase-conf/" "${component_install}/bin/start-hbase.sh"
HBASE_CONF_DIR="${working_dir}/hbase-conf/" HBASE_LOG_DIR="${working_dir}" "${component_install}/bin/start-hbase.sh"

sleep_time=2
until "${component_install}/bin/hbase" --config "${working_dir}/hbase-conf/" shell --noninteractive >"${working_dir}/waiting_hbase_startup.log" 2>&1 <<EOF
Expand Down
24 changes: 24 additions & 0 deletions dev-support/patch-hadoop3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
##
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##

hadoop_dir=$1

sed -i "s/HADOOP_TOOLS_DIR=\${HADOOP_TOOLS_DIR:-\"share\/hadoop\/tools\"}/HADOOP_TOOLS_DIR=\${HADOOP_TOOLS_DIR:-\"\$HADOOP_TOOLS_HOME\/share\/hadoop\/tools\"}/g" "$hadoop_dir/libexec/hadoop-functions.sh"
sed -i "/hadoop_add_classpath \"\${junitjar}\"/a mockitojar=\$(echo \"\${HADOOP_TOOLS_LIB_JARS_DIR}\"\/mockito-core-[0-9]*.jar)\nhadoop_add_classpath \"\${mockitojar}\"" "$hadoop_dir/bin/mapred"
curl https://repo1.maven.org/maven2/org/mockito/mockito-core/2.28.2/mockito-core-2.28.2.jar -o "$hadoop_dir/share/hadoop/tools/lib/mockito-core-2.28.2.jar"
4 changes: 4 additions & 0 deletions hbase-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
<!-- Overriding the scope in depMgmt -->
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-openssl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.FixMethodOrder;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TestName;
import org.junit.runners.MethodSorters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -65,6 +67,7 @@
import org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup;
import org.apache.hbase.thirdparty.io.netty.channel.socket.nio.NioSocketChannel;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category({ MiscTests.class, MediumTests.class })
public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase {

Expand Down Expand Up @@ -142,8 +145,12 @@ public void test() throws IOException, InterruptedException, ExecutionException
writeAndVerify(FS, f, out);
}

/**
* Test method has been renamed to be the first in NAME_ASCENDING. It's an ugly hack to avoid
* flakiness.
*/
@Test
public void testRecover() throws IOException, InterruptedException, ExecutionException {
public void test0Recover() throws IOException, InterruptedException, ExecutionException {
Path f = new Path("/" + name.getMethodName());
EventLoop eventLoop = EVENT_LOOP_GROUP.next();
FanOutOneBlockAsyncDFSOutput out = FanOutOneBlockAsyncDFSOutputHelper.createOutput(FS, f, true,
Expand Down
6 changes: 6 additions & 0 deletions hbase-backup/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@
</exclusion>
</exclusions>
</dependency>
<!-- Required by tests using MiniMRCluster -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<scope>test</scope>
</dependency>
<!-- General dependencies -->
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public interface Abortable {
void abort(String why, Throwable e);

/**
* It just call another abort method and the Throwable parameter is null.
* It just calls another abort method and the Throwable parameter is null.
* @param why Why we're aborting.
* @see Abortable#abort(String, Throwable)
*/
Expand Down
Loading