From time to time, Impala creates releases. These are tarballs of the Impala source that follow the rules below.
Decisions about releases are made by three groups:
- A Release Manager, who must be a committer, does the work of creating the release, signing it, counting votes, and so on.
- The community, who share in the discussion of whether it is the right time to create a release and what that release should contain. The community can also cast non-binding votes on the release.
- The PMC, who cast binding votes on the release.
This page describes the procedures that the release manager and voting PMC members take during release time.
How to Manage a Release
Release managers are self-selected from among the set of committers. Release management must happen partially on "hardware owned and controlled by the committer". In particular, release managers are not permitted to store code signing keys on hardware they do not own or control.
- If you have not done so yet, set up your apache.org email address.
- Make a code signing key if you don't have one yet. This must be done on "hardware owned and controlled by the committer".
- Publish your key if you haven't done so yet
- Optional but reccomended: if you haven't done so yet, add yourself to the Apache Web-of-Trust by meeting face-to-face with a person so they can sign your key
- Publish your signed key
- If you haven't done so before, add your key to the KEYS file in the release staging area and the release distribution area using SVN.
- The staging area is https://dist.apache.org/repos/dist/dev/impala/
- The release area is https://dist.apache.org/repos/dist/release/impala/. If you are not a PMC member, you will need to ask a PMC member to edit the file for you.
- Pick a commit in the "master" branch you want to release from and test it.
- Test the licencing using Apache RAT; follow the instructions in
- Propose a release on the dev@ list. It should start with the string "[DISCUSS]". Explain that this is not a "[VOTE]", and that anyone may participate.
- Make a new branch off of your commit called "branch-x.y.z", where x.y.z is the version you want to release. If you are not on the PMC, ask a PMC member to do this:
- In this branch (but not in master), update the version number in
- Also in this branch (but not in master), update the GIT_HASH in bin/save-version.sh to the git hash of the top commit in the branch. Please bear in mind to update this on every RC. (The git hash will of course not reflect that of the commit that includes this change as well, but that's okay)
- Continue testing. If you find bugs, file them. When they are fixed, cherry-pick the fixes from master to your branch that you want to include in the release
At that time, tag the tree at the release candidate
- Make a release tarball:
Make the tarball using git archive. Name it apache-impala-x.y.z.tar.gz.
Make signature, as well as sha512 checksums. This must be done on "hardware owned and controlled by the committer".
Before uploading your release candidate, follow the procedure in the section below on how to vote on a release. Don't upload until you could vote +1.
- Get commitments from at least five PMC members to vote on the artifact in the time frame for the upcoming vote. The list of PMC members is available at http://people.apache.org/committers-by-project.html#impala-pmc.
Upload the artifacts. The location is https://dist.apache.org/repos/dist/dev/impala/. Upload all three artifacts (tarball, .asc and .sha512). Do not overwrite old release candidates.
- Prepare a patch to the downloads.html page (on the asf-site branch of the git repo) to point to the latest downloads and to remove the links to any downloads that are subsumed by this release. Do not submit the patch yet.
- Prepare a patch to include the changelog for the latest release on the docs site. More help on this here.
- Access the IMPALA Versions page
- Select the proper release version. They are not all in a sanely sorted order.
- On the top right, select "Release Notes".
- Select "Configure Release Notes". Ensure HTML and the proper version are set.
- Click Create
- Scroll down to find a TEXTAREA containing the HTML release notes. Copy the contents and save it to a file.
Add HTML tags to make this a standalone page. For example:
- Reorder the sections so that the issueType groupings show the more interesting groups, like New Feature, Epic, and Improvement, before less interesting groups like Sub-tasks.
- Provide a link to the changelog on the docs main page.
- Full example of this is here.
- If the full docs are not yet ready for the release, it's OK to leave the link to the previous release's HTML documentation so that a link to HTML documentation always exists. But please coordinate with the people who are working on the docs before you announce the release.
- Take a vote on dev@. Your vote email should:
- Have a subject that starts with "[VOTE]"
- Explain what the vote is about
- Explain how to find the artifacts for testing, and include the tag and git tree hash (not release hash!) they correspond to. The tree hash can be viewed with git log --pretty="%T %s".
- Explain what each type of vote means
- Explain the conditions for the vote passing, including how long the vote will remain open for.
- Include a link to this wiki page so voters can read the instructions in it on how to test, verify, and vote.
- Explain how you tested it.
- At your discretion, discuss what dependencies or tools you used to compile or run it, like gcc, hadoop, impala-lzo, and so on.
- Be consistent with the Impala bylaws. For instance, at the moment I am writing this wiki page, votes stay open for 72 hours (not counting weekends), and only PMC members have binding votes.
When the vote closes, tally up the votes (who votes what) in a thread with the same title as the vote thread, but with "[RESULT] " prepended. Link to the vote thread form https://email@example.com. The email should include a list of every vote, and reasons for the -1s ala:
+1 (binding): Alice Bobopolis Carol Davestein -1 (non-binding): Emily Frankfurt (Build failed)
If that vote passes, tag the git tree at the release:
Publish the release. The location is https://dist.apache.org/repos/dist/release/impala/. Upload all three artifacts. If you are not a PMC member, you will need a PMC member to do the upload fo you.
- Wait 24 hours for mirrors to catch up.
- Push your downloads.html and changelog patches.
- Optional but recommended: Add the release to the Apache Reporter Service: https://reporter.apache.org/addrelease.html?impala. If you are not a PMC member, you will need a PMC member to do it for you.
- Announce the release to firstname.lastname@example.org, email@example.com, and firstname.lastname@example.org. The email must come from your apache.org email address.
- If you are not already subscribed from your @apache.org address, subscribe to dev@ and user@ by mailing dev-subscribe@ and user-subscribe@.
Give your email a subject like "[ANNOUNCE] Apache Impala x.y.z release", and include in the body:
The Apache Impala team is pleased to announce the release of Impala x.y.z. Impala is a high-performance distributed SQL engine. The release is available at: https://impala.apache.org/downloads.html Thanks, The Apache Impala team
- Announce the release on the community links listed on https://impala.apache.org/community.html.
- Send a patch review to the master branch to update its version number to "p.q.r-SNAPSHOT" (where p.q.r is greater than x.y.z)
- In the issue tracker, change the target version for open tickets targeted at x.y.z to p.q.r. You may need to create a version p.q.r if it does not already exist.
- In the issue tracker, "Release" the version on this screen: https://issues.apache.org/jira/plugins/servlet/project-config/IMPALA/versions. If you are not a PMC member, you will need a PMC member to do it for you.
- In the SVN repo where you put the final release artifacts, delete the previous release, assuming that branch is no longer being actively worked on. If there is more than one active branch, leave the latest release from each branch up. If you are not a PMC member, you will need a PMC member do that for you.
How to Vote on a Release Candidate
Download the tarball. Check the signature and the checksums, and check that the tarball matches the upstream tag. The script below shows how to do each of those steps. To use it, set your environment variables VERSION, RELEASE_CANDIDATE, TREE_HASH, and RELEASE_MANAGER like:
You can get the RELEASE_MANAGER username from the KEYS file here. The rest of the fields should be evident from the Vote thread.
Committers can run this (along with the pre-commit tests) via the experimental "release-test" job on Impala's Jenkins server.
Test the release quality, possibly using
bin/run-all-tests.py.The ASF requires in its "Release Policy" that: "Before voting +1 PMC members are required to download the signed source code package, compile it as provided, and test the resulting executable on their own platform, along with also verifying that the package meets the requirements of the ASF policy on releases." The ASF interprets "own platform" in this sentence to not require that you own and physically control the machine you are testing on, unlike the procedure for signing a release.
Check compliance with ASF release policy. Use Apache RAT and follow the instructions in
bin/check-rat-report.pyto check licence compliance.
- If it is an official "[VOTE]" thread, vote +1 or -1. If you are a PMC member, add "(binding)" after your vote; otherwise, add "(non-binding)". If you vote -1, explain why.