You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "dombizita (via GitHub)" <gi...@apache.org> on 2023/01/23 16:52:57 UTC
[GitHub] [ozone] dombizita opened a new pull request, #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
dombizita opened a new pull request, #4199:
URL: https://github.com/apache/ozone/pull/4199
## What changes were proposed in this pull request?
Cleaning up dependencies that were added previously and are not used by the HttpFS module.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-7737
## How was this patch tested?
Built it successfully locally, also run the `dependency.sh` and the HttpFS related robot tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] dombizita commented on a diff in pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "dombizita (via GitHub)" <gi...@apache.org>.
dombizita commented on code in PR #4199:
URL: https://github.com/apache/ozone/pull/4199#discussion_r1085492411
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
Review Comment:
thanks for bringing this to my attention, I added it back
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] kerneltime commented on a diff in pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "kerneltime (via GitHub)" <gi...@apache.org>.
kerneltime commented on code in PR #4199:
URL: https://github.com/apache/ozone/pull/4199#discussion_r1086074774
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -111,26 +111,37 @@
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>curator-test</artifactId>
- <version>2.4.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>curator-client</artifactId>
- <version>2.4.0</version>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
+ <scope>runtime</scope>
<version>2.4.0</version>
+ <exclusions>
Review Comment:
Can you add a comment as to why these dependencies were excluded.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] dombizita commented on a diff in pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "dombizita (via GitHub)" <gi...@apache.org>.
dombizita commented on code in PR #4199:
URL: https://github.com/apache/ozone/pull/4199#discussion_r1085493940
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.mail</groupId>
+ <artifactId>javax.mail</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.netty</groupId>
+ <artifactId>netty</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>2.4.0</version>
Review Comment:
thanks, done the changes
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.mail</groupId>
+ <artifactId>javax.mail</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.netty</groupId>
+ <artifactId>netty</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
Review Comment:
thanks, done changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] dombizita commented on a diff in pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "dombizita (via GitHub)" <gi...@apache.org>.
dombizita commented on code in PR #4199:
URL: https://github.com/apache/ozone/pull/4199#discussion_r1085493197
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
Review Comment:
thanks for checking it, I removed it from both places.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] dombizita commented on pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "dombizita (via GitHub)" <gi...@apache.org>.
dombizita commented on PR #4199:
URL: https://github.com/apache/ozone/pull/4199#issuecomment-1402144243
thanks for the review and checking these @adoroszlai, I updated my patch accordingly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] adoroszlai commented on pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #4199:
URL: https://github.com/apache/ozone/pull/4199#issuecomment-1404089123
Thanks @dombizita for the patch, @kerneltime for the review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] dombizita commented on a diff in pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "dombizita (via GitHub)" <gi...@apache.org>.
dombizita commented on code in PR #4199:
URL: https://github.com/apache/ozone/pull/4199#discussion_r1086470408
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -111,26 +111,37 @@
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>curator-test</artifactId>
- <version>2.4.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>curator-client</artifactId>
- <version>2.4.0</version>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
+ <scope>runtime</scope>
<version>2.4.0</version>
+ <exclusions>
Review Comment:
thanks for the review @kerneltime, I updated my patch with a comment, that I excluded these as non of them is used by the HttpFS module, but all of them would be a new (unnecessary) dependency in Ozone, the `jar-report.txt` should be updated with that too. I didn't add a comment for each, but I will detail it here.
- the `commons-math` (we are using `commons-math3` in Ozone) and `jline` is never used in the HttpFS module, even in `apache/hadoop`'s HttpFS module (`jline` is used in `hadoop-auth` there, but that was removed from here in #2536).
- `javax.mail` and `org.jboss.netty` is excluded in `apache/hadoop` as well.
- `log4j` and `slf4j-log4j12` is not used in Ozone anymore, @adoroszlai replaced them in #3773, I use `reload4j` like he did.
I checked both projects dependency trees to verify these informations. let me know if something is not clear :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] adoroszlai merged pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #4199:
URL: https://github.com/apache/ozone/pull/4199
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] kerneltime commented on pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "kerneltime (via GitHub)" <gi...@apache.org>.
kerneltime commented on PR #4199:
URL: https://github.com/apache/ozone/pull/4199#issuecomment-1400693369
@tanvipenumudy can you please help review this ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] adoroszlai commented on a diff in pull request #4199: HDDS-7737. [HTTPFSGW] Clean up dependencies
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on code in PR #4199:
URL: https://github.com/apache/ozone/pull/4199#discussion_r1085200726
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
Review Comment:
Please keep this one, as httpfs classes use `org.slf4j.Logger`.
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.mail</groupId>
+ <artifactId>javax.mail</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.netty</groupId>
+ <artifactId>netty</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>2.4.0</version>
Review Comment:
We can add `<scope>runtime</scope>` for `curator-framework`.
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
Review Comment:
It seems `curator-test` is unnecessary:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/3996117051
(Some of) the exclusions need to be moved to `curator-framework` then.
(And don't forget to remove it from `jar-report.txt`, too.)
##########
hadoop-ozone/httpfsgateway/pom.xml:
##########
@@ -101,36 +101,71 @@
<artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>compile</scope>
- </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.apache.curator</groupId>
- <artifactId>apache-curator</artifactId>
- <version>2.4.0</version>
- <type>pom</type>
- </dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.mail</groupId>
+ <artifactId>javax.mail</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.netty</groupId>
+ <artifactId>netty</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>2.4.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-math</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
Review Comment:
And we can remove this and let `curator-client` be a transitive dependency via `curator-framework`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org