Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync #13

Merged
merged 79 commits into from
Mar 21, 2022
Merged

sync #13

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
a08e69d
HADOOP-18114. Documentation correction in assumed_roles.md (#3949)
KraFusion Feb 9, 2022
390967f
RBF: Add search box in Router's tab-mounttable web page (#3968)
Neilxzn Feb 9, 2022
efdec92
HADOOP-18091. S3A auditing leaks memory through ThreadLocal reference…
steveloughran Feb 10, 2022
c777142
RBF: Registry HDFS Router's rpcserver & rpcclient metrics for Prometh…
Neilxzn Feb 10, 2022
fe583c4
HADOOP-18096. Distcp: Sync moves filtered file to home directory rath…
ayushtkn Feb 10, 2022
ca8ba24
HADOOP-18110. ViewFileSystem: Add Support for Localized Trash Root
Jan 26, 2022
0e74f1e
Fix thread safety of EC decoding during concurrent preads (#3881)
cndaimin Feb 11, 2022
b689643
HDFS-16449. Fix hadoop web site release notes and changelog not avail…
GuoPhilipse Feb 13, 2022
7fd90cd
YARN-10788. TestCsiClient fails (#3989)
aajisaka Feb 14, 2022
0c194f2
HDFS-16396. Reconfig slow peer parameters for datanode (#3827)
tomscut Feb 15, 2022
48bef28
HDFS-16440. RBF: Support router get HAServiceStatus with Lifeline RPC…
yulongz Feb 15, 2022
19d90e6
HADOOP-18109. Ensure that default permissions of directories under in…
cheyu2022 Apr 16, 2021
2025243
HADOOP-18082.Add debug log when RPC#Reader gets a Call. (#3891). Cont…
jianghuazhu Feb 16, 2022
5f6a294
HADOOP-18126. update junit 5 version due to build issues (#3993)
pjfanning Feb 17, 2022
d58c10c
YARN-11071. AutoCreatedQueueTemplate incorrect wildcard level. Contri…
szilard-nemeth Feb 17, 2022
bb1135c
YARN-10894. Follow up YARN-10237: fix the new test case in TestRMWebS…
szilard-nemeth Feb 17, 2022
48e02f7
YARN-10580. Fix some issues in TestRMWebServicesCapacitySchedDynamicC…
szilard-nemeth Feb 17, 2022
51001fc
YARN-11022. Fix the documentation for max-parallel-apps in CS. Contri…
szilard-nemeth Feb 17, 2022
4c05d25
YARN-10995. Move PendingApplicationComparator from GuaranteedOrZeroCa…
szilard-nemeth Feb 17, 2022
ad0a1dc
YARN-11075. Explicitly declare serialVersionUID in LogMutation class.…
szilard-nemeth Feb 17, 2022
7dd288c
YARN-11070. Minimum resource ratio is overridden by subsequent labels…
szilard-nemeth Feb 17, 2022
de526e1
YARN-10947. Simplify AbstractCSQueue#initializeQueueState. Contribute…
szilard-nemeth Feb 17, 2022
a4f4590
HADOOP-18117. Add an option to preserve root directory permissions (#…
mohan3d Feb 18, 2022
007c201
YARN-11068. Update transitive log4j2 dependency to 2.17.1 (#3963)
jojochuang Feb 21, 2022
cae749b
HADOOP-18136. Verify FileUtils.unTar() handling of missing .tar files.
steveloughran Feb 21, 2022
2f448ac
HDFS-16459. RBF: register RBFMetrics in MetricsSystem for promethuess…
Neilxzn Feb 21, 2022
589695c
HDFS-16316.Improve DirectoryScanner: add regular file check related b…
jianghuazhu Feb 22, 2022
697e5d4
HADOOP-18125. Utility to identify git commit / Jira fixVersion discre…
virajjasani Feb 22, 2022
e363f51
HDFS-16461. Expose JournalNode storage info in the jmx metrics (#4002)
virajjasani Feb 22, 2022
1f157f8
HADOOP-17386. Change default fs.s3a.buffer.dir to be under Yarn conta…
monthonk Feb 22, 2022
0463498
YARN-10944. AbstractCSQueue: Eliminate code duplication in overloaded…
szilard-nemeth Feb 22, 2022
3653754
YARN-10590. Consider legacy auto queue creation absolute resource tem…
szilard-nemeth Feb 22, 2022
c18b646
HADOOP-18071. ABFS: Set driver global timeout for ITestAzureBlobFileS…
sumangala-patki Feb 23, 2022
6b07c85
HDFS-16397. Reconfig slow disk parameters for datanode (#3828)
tomscut Feb 24, 2022
12fa38d
HADOOP-18139: Allow configuration of zookeeper server principal.
omalley Feb 24, 2022
8aa568c
[SPS]: Fix bug for unit test of reconfiguring SPS mode (#3998)
tomscut Feb 28, 2022
b2f541a
Revert "[SPS]: Fix bug for unit test of reconfiguring SPS mode (#3998…
ferhui Feb 28, 2022
5eab971
HDFS-16480. Fix typo: indicies -> indices (#4020)
qijiale76 Feb 28, 2022
d05655d
Revert "HADOOP-18082.Add debug log when RPC#Reader gets a Call. (#389…
ayushtkn Feb 28, 2022
b56af00
HADOOP-18075. ABFS: Fix failure caused by listFiles() in ITestAbfsRes…
steveloughran Mar 1, 2022
9199787
HDFS-16458. [SPS]: Fix bug for unit test of reconfiguring SPS mode (#…
tomscut Mar 2, 2022
9e475ae
YARN-10983. Follow-up changes for YARN-10904. Contributed by Benjamin…
9uapaw Mar 2, 2022
902a793
HADOOP-18128. Fix typo issues of outputstream.md (#4025)
ted12138 Mar 2, 2022
356d337
YARN-11042. Fix testQueueSubmitWithACLsEnabledWithQueueMapping in Tes…
szilard-nemeth Mar 2, 2022
f800b65
Make upstream aware of 3.3.2 release
sunchao Mar 3, 2022
22fe79c
YARN-11076. Upgrade jQuery version in Yarn UI2. (#4046)
tomicooler Mar 3, 2022
1c27c69
Revert "YARN-10947. Simplify AbstractCSQueue#initializeQueueState. Co…
szilard-nemeth Mar 3, 2022
379baa5
YARN-10947. Simplify AbstractCSQueue#initializeQueueState. Contribute…
szilard-nemeth Mar 3, 2022
6995374
HADOOP-18150. Fix ITestAuditManagerDisabled test in S3A. (#4044)
mehakmeet Mar 3, 2022
2785682
HDFS-16481. Provide support to set Http and Rpc ports in MiniJournalC…
virajjasani Mar 4, 2022
1956184
HADOOP-18151. Switch the baseurl for Centos 8 (#4047)
GauthamBanasandra Mar 5, 2022
8f07081
HDFS-16462. Make HDFS get tool cross platform (#4003)
GauthamBanasandra Mar 5, 2022
851a4dc
YARN-11049. MutableConfScheduler is referred as plain String instead …
9uapaw Mar 7, 2022
da5a774
HADOOP-17563. Upgrade BouncyCastle to 1.68 (#3980)
pjfanning Mar 7, 2022
66b7240
HADOOP-18131. Upgrade maven enforcer plugin and relevant dependencies…
virajjasani Mar 8, 2022
49e4e4d
HDFS-16496. Snapshot diff on snapshotable directory fails with not sn…
sodonnel Mar 8, 2022
56d8071
YARN-11081. TestYarnConfigurationFields consistently keeps failing (#…
virajjasani Mar 8, 2022
2ece950
YARN-10945. Add javadoc to all methods of AbstractCSQueue. Contribute…
szilard-nemeth Mar 9, 2022
db8ae4b
YARN-10918. Simplify method: CapacitySchedulerQueueManager#parseQueue…
szilard-nemeth Mar 9, 2022
db36747
HADOOP-17526 Use Slf4jRequestLog for HttpRequestLog (#4050)
Apache9 Mar 10, 2022
9539ff1
YARN-11052. Improve code quality in TestRMWebServicesNodeLabels. Cont…
9uapaw Mar 10, 2022
383b734
YARN-11036. Do not inherit from TestRMWebServicesCapacitySched. Contr…
9uapaw Mar 10, 2022
d0fa9b5
HADOOP-18155. Refactor tests in TestFileUtil (#4053)
GauthamBanasandra Mar 10, 2022
481da19
YARN-10049. FIFOOrderingPolicy Improvements. Contributed by Benjamin …
szilard-nemeth Mar 10, 2022
ed65aa2
YARN-11067. Resource overcommitment due to incorrect resource normali…
szilard-nemeth Mar 10, 2022
672e380
HADOOP-18112: Implement paging during multi object delete. (#4045)
mukund-thakur Mar 11, 2022
a32cfc2
HDFS-15382. Split one FsDatasetImpl lock to block pool grain locks. (…
Hexiaoqiao Mar 12, 2022
7b5eac2
HDFS-16495: RBF should prepend the client ip rather than append it.
omalley Mar 5, 2022
8b8158f
HADOOP-18144: getTrashRoot in ViewFileSystem should return a path in …
Feb 22, 2022
1c0bc35
HDFS-16502. Reconfigure Block Invalidate limit (#4064)
virajjasani Mar 16, 2022
a237526
HDFS-16494.Removed reuse of AvailableSpaceVolumeChoosingPolicy#initLo…
Hexiaoqiao Mar 16, 2022
7f6a891
HDFS-16499. [SPS]: Should not start indefinitely while another SPS pr…
tomscut Mar 17, 2022
9037f9a
HADOOP-18162. hadoop-common support for MAPREDUCE-7341 Manifest Commi…
steveloughran Mar 16, 2022
7328c34
MAPREDUCE-7341. Add an intermediate manifest committer for Azure and GCS
steveloughran Mar 16, 2022
8294bd5
HADOOP-18163. hadoop-azure support for the Manifest Committer of MAPR…
steveloughran Mar 16, 2022
da9970d
HADOOP-18129: Change URI to String in INodeLink to reduce memory foot…
abhishekdas99 Feb 18, 2022
a631f45
HDFS-16470. Make HDFS find tool cross platform (#4076)
GauthamBanasandra Mar 18, 2022
62d59e5
HDFS-16504. Add parameter for NameNode to process getBloks request. (…
Hexiaoqiao Mar 20, 2022
e5549a2
HDFS-16503. Should verify whether the path name is valid in the WebHD…
tomscut Mar 21, 2022
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
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions LICENSE-binary
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ org.apache.kerby:kerby-pkix:1.0.1
org.apache.kerby:kerby-util:1.0.1
org.apache.kerby:kerby-xdr:1.0.1
org.apache.kerby:token-provider:1.0.1
org.apache.solr:solr-solrj:8.8.2
org.apache.yetus:audience-annotations:0.5.0
org.apache.zookeeper:zookeeper:3.6.3
org.codehaus.jackson:jackson-core-asl:1.9.13
Expand Down Expand Up @@ -467,8 +468,8 @@ com.microsoft.azure:azure-cosmosdb-gateway:2.4.5
com.microsoft.azure:azure-data-lake-store-sdk:2.3.3
com.microsoft.azure:azure-keyvault-core:1.0.0
com.microsoft.sqlserver:mssql-jdbc:6.2.1.jre7
org.bouncycastle:bcpkix-jdk15on:1.60
org.bouncycastle:bcprov-jdk15on:1.60
org.bouncycastle:bcpkix-jdk15on:1.68
org.bouncycastle:bcprov-jdk15on:1.68
org.checkerframework:checker-qual:2.5.2
org.codehaus.mojo:animal-sniffer-annotations:1.17
org.jruby.jcodings:jcodings:1.0.13
Expand Down
7 changes: 7 additions & 0 deletions dev-support/docker/Dockerfile_centos_8
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ COPY pkg-resolver pkg-resolver
RUN chmod a+x pkg-resolver/*.sh pkg-resolver/*.py \
&& chmod a+r pkg-resolver/*.json

######
# Centos 8 has reached its EOL and the packages
# are no longer available on mirror.centos.org site.
# Please see https://www.centos.org/centos-linux-eol/
######
RUN pkg-resolver/set-vault-as-baseurl-centos.sh centos:8

######
# Install packages from yum
######
Expand Down
33 changes: 33 additions & 0 deletions dev-support/docker/pkg-resolver/set-vault-as-baseurl-centos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/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.

if [ $# -lt 1 ]; then
echo "ERROR: Need at least 1 argument, $# were provided"
exit 1
fi

if [ "$1" == "centos:7" ] || [ "$1" == "centos:8" ]; then
cd /etc/yum.repos.d/ || exit &&
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* &&
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* &&
yum update -y &&
cd /root || exit
else
echo "ERROR: Setting the archived baseurl is only supported for centos 7 and 8 environments"
exit 1
fi
134 changes: 134 additions & 0 deletions dev-support/git-jira-validation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<!--
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.
-->

Apache Hadoop Git/Jira FixVersion validation
============================================================

Git commits in Apache Hadoop contains Jira number of the format
HADOOP-XXXX or HDFS-XXXX or YARN-XXXX or MAPREDUCE-XXXX.
While creating a release candidate, we also include changelist
and this changelist can be identified based on Fixed/Closed Jiras
with the correct fix versions. However, sometimes we face few
inconsistencies between fixed Jira and Git commit message.

git_jira_fix_version_check.py script takes care of
identifying all git commits with commit
messages with any of these issues:

1. commit is reverted as per commit message
2. commit does not contain Jira number format in message
3. Jira does not have expected fixVersion
4. Jira has expected fixVersion, but it is not yet resolved

Moreover, this script also finds any resolved Jira with expected
fixVersion but without any corresponding commit present.

This should be useful as part of RC preparation.

git_jira_fix_version_check supports python3 and it required
installation of jira:

```
$ python3 --version
Python 3.9.7
$ python3 -m venv ./venv
$ ./venv/bin/pip install -r dev-support/git-jira-validation/requirements.txt
$ ./venv/bin/python dev-support/git-jira-validation/git_jira_fix_version_check.py
```

The script also requires below inputs:
```
1. First commit hash to start excluding commits from history:
Usually we can provide latest commit hash from last tagged release
so that the script will only loop through all commits in git commit
history before this commit hash. e.g for 3.3.2 release, we can provide
git hash: fa4915fdbbbec434ab41786cb17b82938a613f16
because this commit bumps up hadoop pom versions to 3.3.2:
https://github.com/apache/hadoop/commit/fa4915fdbbbec434ab41786cb17b82938a613f16
2. Fix Version:
Exact fixVersion that we would like to compare all Jira's fixVersions
with. e.g for 3.3.2 release, it should be 3.3.2.
3. JIRA Project Name:
The exact name of Project as case-sensitive e.g HADOOP / OZONE
4. Path of project's working dir with release branch checked-in:
Path of project from where we want to compare git hashes from. Local fork
of the project should be up-to date with upstream and expected release
branch should be checked-in.
5. Jira server url (default url: https://issues.apache.org/jira):
Default value of server points to ASF Jiras but this script can be
used outside of ASF Jira too.
```


Example of script execution:
```
JIRA Project Name (e.g HADOOP / OZONE etc): HADOOP
First commit hash to start excluding commits from history: fa4915fdbbbec434ab41786cb17b82938a613f16
Fix Version: 3.3.2
Jira server url (default: https://issues.apache.org/jira):
Path of project's working dir with release branch checked-in: /Users/vjasani/Documents/src/hadoop-3.3/hadoop
Check git status output and verify expected branch
On branch branch-3.3.2
Your branch is up to date with 'origin/branch-3.3.2'.
nothing to commit, working tree clean
Jira/Git commit message diff starting: ##############################################
Jira not present with version: 3.3.2. Commit: 8cd8e435fb43a251467ca74fadcb14f21a3e8163 HADOOP-17198. Support S3 Access Points (#3260) (branch-3.3.2) (#3955)
WARN: Jira not found. Commit: 8af28b7cca5c6020de94e739e5373afc69f399e5 Updated the index as per 3.3.2 release
WARN: Jira not found. Commit: e42e483d0085aa46543ebcb1196dd155ddb447d0 Make upstream aware of 3.3.1 release
Commit seems reverted. Commit: 6db1165380cd308fb74c9d17a35c1e57174d1e09 Revert "HDFS-14099. Unknown frame descriptor when decompressing multiple frames (#3836)"
Commit seems reverted. Commit: 1e3f94fa3c3d4a951d4f7438bc13e6f008f228f4 Revert "HDFS-16333. fix balancer bug when transfer an EC block (#3679)"
Jira not present with version: 3.3.2. Commit: ce0bc7b473a62a580c1227a4de6b10b64b045d3a HDFS-16344. Improve DirectoryScanner.Stats#toString (#3695)
Jira not present with version: 3.3.2. Commit: 30f0629d6e6f735c9f4808022f1a1827c5531f75 HDFS-16339. Show the threshold when mover threads quota is exceeded (#3689)
Jira not present with version: 3.3.2. Commit: e449daccf486219e3050254d667b74f92e8fc476 YARN-11007. Correct words in YARN documents (#3680)
Commit seems reverted. Commit: 5c189797828e60a3329fd920ecfb99bcbccfd82d Revert "HDFS-16336. Addendum: De-flake TestRollingUpgrade#testRollback (#3686)"
Jira not present with version: 3.3.2. Commit: 544dffd179ed756bc163e4899e899a05b93d9234 HDFS-16171. De-flake testDecommissionStatus (#3280)
Jira not present with version: 3.3.2. Commit: c6914b1cb6e4cab8263cd3ae5cc00bc7a8de25de HDFS-16350. Datanode start time should be set after RPC server starts successfully (#3711)
Jira not present with version: 3.3.2. Commit: 328d3b84dfda9399021ccd1e3b7afd707e98912d HDFS-16336. Addendum: De-flake TestRollingUpgrade#testRollback (#3686)
Jira not present with version: 3.3.2. Commit: 3ae8d4ccb911c9ababd871824a2fafbb0272c016 HDFS-16336. De-flake TestRollingUpgrade#testRollback (#3686)
Jira not present with version: 3.3.2. Commit: 15d3448e25c797b7d0d401afdec54683055d4bb5 HADOOP-17975. Fallback to simple auth does not work for a secondary DistributedFileSystem instance. (#3579)
Jira not present with version: 3.3.2. Commit: dd50261219de71eaa0a1ad28529953e12dfb92e0 YARN-10991. Fix to ignore the grouping "[]" for resourcesStr in parseResourcesString method (#3592)
Jira not present with version: 3.3.2. Commit: ef462b21bf03b10361d2f9ea7b47d0f7360e517f HDFS-16332. Handle invalid token exception in sasl handshake (#3677)
WARN: Jira not found. Commit: b55edde7071419410ea5bea4ce6462b980e48f5b Also update hadoop.version to 3.3.2
...
...
...
Found first commit hash after which git history is redundant. commit: fa4915fdbbbec434ab41786cb17b82938a613f16
Exiting successfully
Jira/Git commit message diff completed: ##############################################
Any resolved Jira with fixVersion 3.3.2 but corresponding commit not present
Starting diff: ##############################################
HADOOP-18066 is marked resolved with fixVersion 3.3.2 but no corresponding commit found
HADOOP-17936 is marked resolved with fixVersion 3.3.2 but no corresponding commit found
Completed diff: ##############################################
```

118 changes: 118 additions & 0 deletions dev-support/git-jira-validation/git_jira_fix_version_check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
#!/usr/bin/env python3
############################################################################
#
# 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.
#
############################################################################
"""An application to assist Release Managers with ensuring that histories in
Git and fixVersions in JIRA are in agreement. See README.md for a detailed
explanation.
"""


import os
import re
import subprocess

from jira import JIRA

jira_project_name = input("JIRA Project Name (e.g HADOOP / OZONE etc): ") \
or "HADOOP"
# Define project_jira_keys with - appended. e.g for HADOOP Jiras,
# project_jira_keys should include HADOOP-, HDFS-, YARN-, MAPREDUCE-
project_jira_keys = [jira_project_name + '-']
if jira_project_name == 'HADOOP':
project_jira_keys.append('HDFS-')
project_jira_keys.append('YARN-')
project_jira_keys.append('MAPREDUCE-')

first_exclude_commit_hash = input("First commit hash to start excluding commits from history: ")
fix_version = input("Fix Version: ")

jira_server_url = input(
"Jira server url (default: https://issues.apache.org/jira): ") \
or "https://issues.apache.org/jira"

jira = JIRA(server=jira_server_url)

local_project_dir = input("Path of project's working dir with release branch checked-in: ")
os.chdir(local_project_dir)

GIT_STATUS_MSG = subprocess.check_output(['git', 'status']).decode("utf-8")
print('\nCheck git status output and verify expected branch\n')
print(GIT_STATUS_MSG)

print('\nJira/Git commit message diff starting: ##############################################')

issue_set_from_commit_msg = set()

for commit in subprocess.check_output(['git', 'log', '--pretty=oneline']).decode(
"utf-8").splitlines():
if commit.startswith(first_exclude_commit_hash):
print("Found first commit hash after which git history is redundant. commit: "
+ first_exclude_commit_hash)
print("Exiting successfully")
break
if re.search('revert', commit, re.IGNORECASE):
print("Commit seems reverted. \t\t\t Commit: " + commit)
continue
ACTUAL_PROJECT_JIRA = None
for project_jira in project_jira_keys:
if project_jira in commit:
ACTUAL_PROJECT_JIRA = project_jira
break
if not ACTUAL_PROJECT_JIRA:
print("WARN: Jira not found. \t\t\t Commit: " + commit)
continue
JIRA_NUM = ''
for c in commit.split(ACTUAL_PROJECT_JIRA)[1]:
if c.isdigit():
JIRA_NUM = JIRA_NUM + c
else:
break
issue = jira.issue(ACTUAL_PROJECT_JIRA + JIRA_NUM)
EXPECTED_FIX_VERSION = False
for version in issue.fields.fixVersions:
if version.name == fix_version:
EXPECTED_FIX_VERSION = True
break
if not EXPECTED_FIX_VERSION:
print("Jira not present with version: " + fix_version + ". \t Commit: " + commit)
continue
if issue.fields.status is None or issue.fields.status.name not in ('Resolved', 'Closed'):
print("Jira is not resolved yet? \t\t Commit: " + commit)
else:
# This means Jira corresponding to current commit message is resolved with expected
# fixVersion.
# This is no-op by default, if needed, convert to print statement.
issue_set_from_commit_msg.add(ACTUAL_PROJECT_JIRA + JIRA_NUM)

print('Jira/Git commit message diff completed: ##############################################')

print('\nAny resolved Jira with fixVersion ' + fix_version
+ ' but corresponding commit not present')
print('Starting diff: ##############################################')
all_issues_with_fix_version = jira.search_issues(
'project=' + jira_project_name + ' and status in (Resolved,Closed) and fixVersion='
+ fix_version)

for issue in all_issues_with_fix_version:
if issue.key not in issue_set_from_commit_msg:
print(issue.key + ' is marked resolved with fixVersion ' + fix_version
+ ' but no corresponding commit found')

print('Completed diff: ##############################################')
18 changes: 18 additions & 0 deletions dev-support/git-jira-validation/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# 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.
#
jira==3.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.0-beta-3</version>
<version>1.5.1</version>
</dependency>
</dependencies>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.0-beta-3</version>
<version>1.5.1</version>
</dependency>
</dependencies>
<executions>
Expand Down
6 changes: 6 additions & 0 deletions hadoop-client-modules/hadoop-client-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@
<artifactId>hadoop-hdfs</artifactId>
<scope>test</scope>
<type>test-jar</type>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
Expand Down
Loading