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

HADOOP-19073 WASB: Fix connection leak in FolderRenamePending #6534

Merged
merged 2 commits into from
May 15, 2024

Conversation

xuzifu666
Copy link
Member

@xuzifu666 xuzifu666 commented Feb 7, 2024

Description of PR

Currently connection leak in FolderRenamePending in getting bytes. the pr aim to fix it

How was this patch tested?

For code changes:

  • 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?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

@xuzifu666
Copy link
Member Author

@ayushtkn @slfan1989 PTAL

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 34s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 42m 6s trunk passed
+1 💚 compile 0m 37s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 compile 0m 34s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 checkstyle 0m 31s trunk passed
+1 💚 mvnsite 0m 39s trunk passed
+1 💚 javadoc 0m 38s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 0m 32s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 spotbugs 1m 4s trunk passed
+1 💚 shadedclient 33m 57s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 28s the patch passed
+1 💚 compile 0m 28s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javac 0m 28s the patch passed
+1 💚 compile 0m 26s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 javac 0m 26s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 19s the patch passed
+1 💚 mvnsite 0m 30s the patch passed
+1 💚 javadoc 0m 25s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 0m 24s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 spotbugs 1m 2s the patch passed
+1 💚 shadedclient 32m 14s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 1m 57s hadoop-azure in the patch passed.
+1 💚 asflicense 0m 35s The patch does not generate ASF License warnings.
123m 48s
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6534/1/artifact/out/Dockerfile
GITHUB PR #6534
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux ac3427661d95 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 649c40f
Default Java Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6534/1/testReport/
Max. process+thread count 700 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6534/1/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 12m 56s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 42m 5s trunk passed
+1 💚 compile 0m 36s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 compile 0m 34s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 checkstyle 0m 32s trunk passed
+1 💚 mvnsite 0m 38s trunk passed
+1 💚 javadoc 0m 38s trunk passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 0m 33s trunk passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 spotbugs 1m 3s trunk passed
+1 💚 shadedclient 31m 59s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 26s the patch passed
+1 💚 compile 0m 28s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javac 0m 28s the patch passed
+1 💚 compile 0m 25s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 javac 0m 25s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 18s the patch passed
+1 💚 mvnsite 0m 28s the patch passed
+1 💚 javadoc 0m 25s the patch passed with JDK Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04
+1 💚 javadoc 0m 24s the patch passed with JDK Private Build-1.8.0_392-8u392-ga-1~20.04-b08
+1 💚 spotbugs 1m 3s the patch passed
+1 💚 shadedclient 32m 29s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 2m 15s hadoop-azure in the patch passed.
+1 💚 asflicense 0m 35s The patch does not generate ASF License warnings.
134m 54s
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6534/2/artifact/out/Dockerfile
GITHUB PR #6534
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 5eae444d189b 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 649c40f
Default Java Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.21+9-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_392-8u392-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6534/2/testReport/
Max. process+thread count 624 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6534/2/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@zhangshuyan0 zhangshuyan0 left a comment

Choose a reason for hiding this comment

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

+1.

@zhangshuyan0
Copy link
Contributor

Well, this may not belong to the HDFS module.

@slfan1989
Copy link
Contributor

slfan1989 commented Feb 8, 2024

Well, this may not belong to the HDFS module.

@zhangshuyan0 Thank you for your review! but I think this PR needs Steve’s help to review it.

@xuzifu666 Thanks for the contribution! we need to wait for the results of Steve's review.

@xuzifu666
Copy link
Member Author

xuzifu666 commented Feb 8, 2024

Well, this may not belong to the HDFS module.

@zhangshuyan0 Thank you for your review! but I think this PR needs Steve’s help to review it.

@xuzifu666 Thanks for the contribution! we need to wait for the results of Steve's review.

OK, @steveloughran could you give the final review? or @slfan1989 could you help to ping the commiters related to the pr to review it?Thanks ~

@steveloughran steveloughran changed the title HDFS-17373. Fix connection leak in FolderRenamePending HADOOP-19073 WASB: Fix connection leak in FolderRenamePending Feb 9, 2024
@steveloughran
Copy link
Contributor

moved to hadoop; azure component.

now, the bad news: as it goes near a cloud store, you have to run the entire hadoop-azure tests for the wasb component, and tell us which region you tested against.

https://hadoop.apache.org/docs/stable/hadoop-azure/testing_azure.html

sorry, but yetus doesn't have any credentials. It doesn't take long and is designed to clean up afterwards

@xuzifu666
Copy link
Member Author

moved to hadoop; azure component.

now, the bad news: as it goes near a cloud store, you have to run the entire hadoop-azure tests for the wasb component, and tell us which region you tested against.

https://hadoop.apache.org/docs/stable/hadoop-azure/testing_azure.html

sorry, but yetus doesn't have any credentials. It doesn't take long and is designed to clean up afterwards

OK,anything else me to do for the pull request?@steveloughran

@steveloughran
Copy link
Contributor

@xuzifu666 yes.

  1. Which azure region did you run all the wasb tests against
  2. and what were your maven command line arguments used?
  3. did any tests fail?

@xuzifu666
Copy link
Member Author

@xuzifu666 yes.

  1. Which azure region did you run all the wasb tests against
  2. and what were your maven command line arguments used?
  3. did any tests fail?

@steveloughran Hi,seems network connection available,test is hard for me to execute,but the pr may be a obvious connection leak,could you give a help to confirm it?Thank any way~

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
_ Prechecks _
+1 💚 dupname 0m 00s No case conflicting files found.
+0 🆗 spotbugs 0m 00s spotbugs executables are not available.
+0 🆗 codespell 0m 01s codespell was not available.
+0 🆗 detsecrets 0m 01s detect-secrets was not available.
+1 💚 @author 0m 00s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 00s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 86m 45s trunk passed
+1 💚 compile 4m 35s trunk passed
+1 💚 checkstyle 4m 20s trunk passed
+1 💚 mvnsite 4m 45s trunk passed
+1 💚 javadoc 4m 26s trunk passed
+1 💚 shadedclient 140m 16s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 2m 33s the patch passed
+1 💚 compile 2m 06s the patch passed
+1 💚 javac 2m 06s the patch passed
+1 💚 blanks 0m 01s The patch has no blanks issues.
+1 💚 checkstyle 1m 56s the patch passed
+1 💚 mvnsite 2m 13s the patch passed
+1 💚 javadoc 2m 01s the patch passed
+1 💚 shadedclient 150m 23s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 5m 41s The patch does not generate ASF License warnings.
399m 51s
Subsystem Report/Notes
GITHUB PR #6534
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname MINGW64_NT-10.0-17763 2ea128c33854 3.4.10-87d57229.x86_64 2024-02-14 20:17 UTC x86_64 Msys
Build tool maven
Personality /c/hadoop/dev-support/bin/hadoop.sh
git revision trunk / 649c40f
Default Java Azul Systems, Inc.-1.8.0_332-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch-windows-10/job/PR-6534/1/testReport/
modules C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch-windows-10/job/PR-6534/1/console
versions git=2.44.0.windows.1
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@xuzifu666
Copy link
Member Author

@xuzifu666 yes.

  1. Which azure region did you run all the wasb tests against
  2. and what were your maven command line arguments used?
  3. did any tests fail?

@steveloughran Hi,seems network connection available,test is hard for me to execute,but the pr may be a obvious connection leak,could you give a help to confirm it?Thank any way~
cc@steveloughran

@xuzifu666
Copy link
Member Author

@steveloughran could you give the final review or close the pr? Thanks

@steveloughran
Copy link
Contributor

let me try and test this myself.

@steveloughran
Copy link
Contributor

(which I can't do today as both my hadoop source trees are testing my "support parallel tests against the same s3 bucket" right now...

@xuzifu666
Copy link
Member Author

let me try and test this myself.

OK,Thanks,currently it can be work now? @steveloughran

@steveloughran
Copy link
Contributor

I've been away for a week and am catching up, so not tested yet, sorry...

Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

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

+1 merging anyway as it clearly does what we need and is very simple to review

@steveloughran
Copy link
Contributor

@xuzifu666 before I merge, what name do you want to be credited with in the patch...your github account doesn't have one.

@steveloughran steveloughran merged commit cf9559e into apache:trunk May 15, 2024
1 of 4 checks passed
@steveloughran
Copy link
Contributor

thanks, merged to trunk and updated the JIRA.

If you do a cherrypick of this commit and submit as a PR against branch-3.4 I'll merge it there too, once yetus is happy

K0K0V0K pushed a commit to K0K0V0K/hadoop that referenced this pull request May 17, 2024
K0K0V0K pushed a commit to K0K0V0K/hadoop that referenced this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants