[ 
https://issues.apache.org/jira/browse/HADOOP-19794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054463#comment-18054463
 ] 

ASF GitHub Bot commented on HADOOP-19794:
-----------------------------------------

cnauroth opened a new pull request, #8210:
URL: https://github.com/apache/hadoop/pull/8210

   ### Description of PR
   
   Remove the last step of the `sed` parsing logic that attempted to break 
apart the older X.Y versioning convention (e.g. 1.8) and choose just the Y 
component (e.g. 8). This is no longer relevant for the newer versioning 
convention, e.g. Java 17.
   
   ### How was this patch tested?
   
   I did a successful dry run of creating a 3.5.0 release after applying this 
patch.
   
   Here is a transcript of how the chain of `sed` operations works on 
branch-3.4 vs. trunk. Notice that on trunk, the final step returns an empty 
result, which is why we need to remove it.
   
   ```
   branch-3.4:
   > grep "<javac.version>" "${BASEDIR}/hadoop-project/pom.xml" | head -1 | sed 
 -e 's|^ *<javac.version>||'
   1.8</javac.version>
   
   > grep "<javac.version>" "${BASEDIR}/hadoop-project/pom.xml" | head -1 | sed 
 -e 's|^ *<javac.version>||' -e 's|</javac.version>.*$||'
   1.8
   
   > grep "<javac.version>" "${BASEDIR}/hadoop-project/pom.xml" | head -1 | sed 
 -e 's|^ *<javac.version>||' -e 's|</javac.version>.*$||' -e 's|..||'
   8
   
   trunk:
   > grep "<javac.version>" "${BASEDIR}/hadoop-project/pom.xml" | head -1 | sed 
 -e 's|^ *<javac.version>||'
   17</javac.version>
   
   > grep "<javac.version>" "${BASEDIR}/hadoop-project/pom.xml" | head -1 | sed 
 -e 's|^ *<javac.version>||' -e 's|</javac.version>.*$||'
   17
   
   > grep "<javac.version>" "${BASEDIR}/hadoop-project/pom.xml" | head -1 | sed 
 -e 's|^ *<javac.version>||' -e 's|</javac.version>.*$||' -e 's|..||'
   
   ```
   
   
   ### For code changes:
   
   - [X] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   ### AI Tooling
   
   If an AI tool was used:
   
   - [ ] The PR includes the phrase "Contains content generated by <tool>"
         where <tool> is the name of the AI tool used.
   - [ ] My use of AI contributions follows the ASF legal policy
         https://www.apache.org/legal/generative-tooling.html




> create-release version parsing incompatible with Java 17
> --------------------------------------------------------
>
>                 Key: HADOOP-19794
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19794
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Blocker
>
> The create-release script contains some {{sed}} logic to parse the Java 
> version declared in pom.xml and make sure the same version is used for the 
> release process. This logic assumes the older versioning convention, e.g. 
> "1.8", and doesn't work correctly with the newer versioning convention, e.g. 
> "17".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to