Skip to content

ATLAS-5268: ATLAS-5263: Issues with import-kafka.sh and enhance release build to checksum artifacts#590

Merged
rkundam merged 1 commit intomasterfrom
atlas-5268
Apr 7, 2026
Merged

ATLAS-5268: ATLAS-5263: Issues with import-kafka.sh and enhance release build to checksum artifacts#590
rkundam merged 1 commit intomasterfrom
atlas-5268

Conversation

@rkundam
Copy link
Copy Markdown
Contributor

@rkundam rkundam commented Apr 6, 2026

What changes were proposed in this pull request?

ATLAS-5268: import-kafka.sh is failing due to missing jars commons-lang and hadoop-common.

ATLAS-5263: Checksum is getting created by including dir path as
target/apache-atlas-2.5.0-sources.tar.gz: but expected is apache-atlas-2.5.0-sources.tar.gz:

How was this patch tested?

Tested with Docker build

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses two release/packaging issues in Apache Atlas: (1) fixing release checksum files to avoid including the target/ path prefix in the generated checksum output, and (2) ensuring import-kafka.sh has required runtime JARs available by copying missing dependencies into the Kafka bridge distribution layout.

Changes:

  • Generate MD5/SHA checksum outputs from within ${release-dir} so checksum lines reference only the artifact filename (not target/<file>).
  • Copy commons-lang:commons-lang and org.apache.hadoop:hadoop-common into the Kafka bridge hook dependency directory during the dist profile build.
  • Add a module-level commons-lang.version property to pin the copied artifact version.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
release-build.xml Adjusts checksum generation commands to run in ${release-dir} so checksum output doesn’t include directory prefixes.
addons/kafka-bridge/pom.xml Ensures required JARs are copied into the Kafka bridge hook dependency directory for import-kafka.sh.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +72 to 76
<exec executable="gpg" output="${release-dir}/${build-release-tar-file}.md5" dir="${release-dir}">
<arg value="--print-md" />
<arg value="MD5" />
<arg value="${release-dir}/${build-release-tar-file}" />
<arg value="${build-release-tar-file}" />
</exec>
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MD5/SHA* checksum generation now runs in ${release-dir} so the output filenames won’t be prefixed with target/, but the legacy .mds checksum generation still runs gpg --print-mds against ${release-dir}/${build-release-tar-file} (release-build.xml:67-70). That will continue to emit target/<tarball>: in the .mds file, so the ATLAS-5263 formatting issue is only partially resolved. Consider applying the same dir="${release-dir}" + ${build-release-tar-file} argument change to the .mds exec (or removing .mds generation if it’s no longer used).

Copilot uses AI. Check for mistakes.
@rkundam rkundam merged commit 6436e27 into master Apr 7, 2026
6 checks passed
@rkundam rkundam deleted the atlas-5268 branch April 7, 2026 03:37
asf-gitbox-commits pushed a commit that referenced this pull request Apr 7, 2026
…se build to checksum artifacts (#590)

(cherry picked from commit 6436e27)
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.

3 participants