Skip to content

Backport HADOOP-18546: ABFS: Disable purging list of in progress reads in abfs stream closed in 3.3.3 #5530

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

Closed
wants to merge 6 commits into from

Conversation

anujmodi2021
Copy link
Contributor

@anujmodi2021 anujmodi2021 commented Apr 4, 2023

Description of PR

Jira Ticket: https://issues.apache.org/jira/browse/HADOOP-18546

This task is to cherry pick the fixes to all the branches where the data corruption fix has gone in.

More details on the task and issue: HADOOP-18521 ABFS ReadBufferManager buffer sharing across concurrent HTTP requests - ASF JIRA (apache.org)

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?

steveloughran and others added 5 commits April 3, 2023 20:58

This is a followup to the original HADOOP-18546
patch; cherry-picks of that should include this
or follow up with it.

Removes risk of race conditions in assertions
of ITestReadBufferManager on the state of the in-progress
and completed queues by removing assertions brittle
to race conditions in scheduling/network IO

* Waits for all the executor pool shutdown to complete before
  making any assertions
* Assertions that there are no in progress reads MUST be
  cut as there may be some and they won't be cancelled.
* Assertions that the completed list is without buffers
  of a closed stream are brittle because if there was
  an in progress stream which completed after stream.close()
  then it will end up in the list.

Contributed by Steve Loughran
Followup patch to  HADOOP-18456 as part of HADOOP-18521,
ABFS ReadBufferManager buffer sharing across concurrent HTTP requests

Add probes of readahead fix aid in checking safety of
hadoop ABFS client across different releases.

* ReadBufferManager constructor logs the fact it is safe at TRACE
* AbfsInputStream declares it is fixed in toString()
  by including fs.azure.capability.readahead.safe" in the
  result.

The ABFS FileSystem hasPathCapability("fs.azure.capability.readahead.safe")
probe returns true to indicate the client's readahead manager has been fixed
to be safe when prefetching.

All Hadoop releases for which probe this returns false
and for which the probe "fs.capability.etags.available"
returns true at risk of returning invalid data when reading
ADLS Gen2/Azure storage data.

Contributed by Steve Loughran.
@anujmodi2021
Copy link
Contributor Author

Tests Results:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.443 s
[INFO] Finished at: 2023-04-03T23:14:54-07:00
[INFO] ------------------------------------------------------------------------

Running the combination: AppendBlob-HNS-OAuth...
----- Test results -----
[INFO] Results:
[INFO]
[WARNING] Tests run: 106, Failures: 0, Errors: 0, Skipped: 26
[INFO] Results:
[INFO]
[WARNING] Tests run: 567, Failures: 0, Errors: 0, Skipped: 567
[INFO] Results:
[INFO]
[WARNING] Tests run: 265, Failures: 0, Errors: 0, Skipped: 265

Time taken: 2 mins 36 secs.
Find test logs for the combination (AppendBlob-HNS-OAuth) in: dev-support/testlogs/2023-04-03_23-14-54/Test-Logs-AppendBlob-HNS-OAuth.txt
Find consolidated test results in: dev-support/testlogs/2023-04-03_23-14-54/Test-Results.txt

Running the combination: HNS-OAuth...
----- Test results -----
[INFO] Results:
[INFO]
[WARNING] Tests run: 106, Failures: 0, Errors: 0, Skipped: 26
[INFO] Results:
[INFO]
[WARNING] Tests run: 567, Failures: 0, Errors: 0, Skipped: 567
[INFO] Results:
[INFO]
[WARNING] Tests run: 265, Failures: 0, Errors: 0, Skipped: 265

Time taken: 2 mins 25 secs.
Find test logs for the combination (HNS-OAuth) in: dev-support/testlogs/2023-04-03_23-14-54/Test-Logs-HNS-OAuth.txt
Find consolidated test results in: dev-support/testlogs/2023-04-03_23-14-54/Test-Results.txt

Running the combination: HNS-SharedKey...
----- Test results -----
[INFO] Results:
[INFO]
[WARNING] Tests run: 106, Failures: 0, Errors: 0, Skipped: 26
[INFO] Results:
[INFO]
[WARNING] Tests run: 567, Failures: 0, Errors: 0, Skipped: 567
[INFO] Results:
[INFO]
[WARNING] Tests run: 265, Failures: 0, Errors: 0, Skipped: 265

Time taken: 2 mins 27 secs.
Find test logs for the combination (HNS-SharedKey) in: dev-support/testlogs/2023-04-03_23-14-54/Test-Logs-HNS-SharedKey.txt
Find consolidated test results in: dev-support/testlogs/2023-04-03_23-14-54/Test-Results.txt

Running the combination: NonHNS-SharedKey...
----- Test results -----
[INFO] Results:
[INFO]
[WARNING] Tests run: 106, Failures: 0, Errors: 0, Skipped: 26
[INFO] Results:
[INFO]
[WARNING] Tests run: 567, Failures: 0, Errors: 0, Skipped: 567
[INFO] Results:
[INFO]
[WARNING] Tests run: 265, Failures: 0, Errors: 0, Skipped: 265

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 10m 48s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ branch-3.3.3 Compile Tests _
+0 🆗 mvndep 14m 53s Maven dependency ordering for branch
+1 💚 mvninstall 26m 39s branch-3.3.3 passed
+1 💚 compile 18m 14s branch-3.3.3 passed
+1 💚 checkstyle 2m 55s branch-3.3.3 passed
+1 💚 mvnsite 2m 16s branch-3.3.3 passed
+1 💚 javadoc 2m 15s branch-3.3.3 passed
+1 💚 spotbugs 3m 46s branch-3.3.3 passed
+1 💚 shadedclient 25m 45s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 1m 26s the patch passed
+1 💚 compile 17m 41s the patch passed
-1 ❌ javac 17m 41s /results-compile-javac-root.txt root generated 2 new + 1971 unchanged - 2 fixed = 1973 total (was 1973)
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 2m 49s /results-checkstyle-root.txt root: The patch generated 1 new + 4 unchanged - 0 fixed = 5 total (was 4)
+1 💚 mvnsite 2m 13s the patch passed
+1 💚 xml 0m 2s The patch has no ill-formed XML file.
-1 ❌ javadoc 0m 35s /patch-javadoc-hadoop-tools_hadoop-azure.txt hadoop-azure in the patch failed.
+1 💚 spotbugs 3m 49s the patch passed
+1 💚 shadedclient 25m 57s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 17m 25s hadoop-common in the patch passed.
+1 💚 unit 2m 12s hadoop-azure in the patch passed.
+1 💚 asflicense 0m 51s The patch does not generate ASF License warnings.
187m 5s
Subsystem Report/Notes
Docker ClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5530/1/artifact/out/Dockerfile
GITHUB PR #5530
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell xml spotbugs checkstyle
uname Linux aa63df41d373 4.15.0-206-generic #217-Ubuntu SMP Fri Feb 3 19:10:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-3.3.3 / f8091cd
Default Java Private Build-1.8.0_362-8u362-ga-0ubuntu1~18.04.1-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5530/1/testReport/
Max. process+thread count 3135 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-azure U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5530/1/console
versions git=2.17.1 maven=3.6.0 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

@anujmodi2021 anujmodi2021 changed the title HADOOP-18546: ABFS: Disable purging list of in progress reads in abfs stream closed in 3.3.3 Backport HADOOP-18546: ABFS: Disable purging list of in progress reads in abfs stream closed in 3.3.3 Apr 4, 2023
Fixes a javadoc error which came with
HADOOP-18577. ABFS: Add probes of readahead fix (apache#5205)

Part of the HADOOP-18521 ABFS readahead fix; MUST be included.

Contributed by Steve Loughran
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 49s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ branch-3.3.3 Compile Tests _
+0 🆗 mvndep 14m 7s Maven dependency ordering for branch
+1 💚 mvninstall 26m 17s branch-3.3.3 passed
+1 💚 compile 18m 14s branch-3.3.3 passed
+1 💚 checkstyle 2m 59s branch-3.3.3 passed
+1 💚 mvnsite 2m 15s branch-3.3.3 passed
+1 💚 javadoc 2m 14s branch-3.3.3 passed
+1 💚 spotbugs 3m 44s branch-3.3.3 passed
+1 💚 shadedclient 26m 12s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 1m 27s the patch passed
+1 💚 compile 17m 26s the patch passed
-1 ❌ javac 17m 26s /results-compile-javac-root.txt root generated 2 new + 1971 unchanged - 2 fixed = 1973 total (was 1973)
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 2m 50s /results-checkstyle-root.txt root: The patch generated 1 new + 4 unchanged - 0 fixed = 5 total (was 4)
+1 💚 mvnsite 2m 14s the patch passed
+1 💚 xml 0m 1s The patch has no ill-formed XML file.
+1 💚 javadoc 2m 10s the patch passed
+1 💚 spotbugs 3m 50s the patch passed
+1 💚 shadedclient 25m 43s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 17m 9s hadoop-common in the patch passed.
+1 💚 unit 2m 11s hadoop-azure in the patch passed.
+1 💚 asflicense 0m 51s The patch does not generate ASF License warnings.
175m 43s
Subsystem Report/Notes
Docker ClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5530/2/artifact/out/Dockerfile
GITHUB PR #5530
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell xml spotbugs checkstyle
uname Linux a7ee19331513 4.15.0-206-generic #217-Ubuntu SMP Fri Feb 3 19:10:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-3.3.3 / 52801dc
Default Java Private Build-1.8.0_362-8u362-ga-0ubuntu1~18.04.1-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5530/2/testReport/
Max. process+thread count 2977 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-azure U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5530/2/console
versions git=2.17.1 maven=3.6.0 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

@ayushtkn ayushtkn closed this Apr 19, 2023
@anujmodi2021 anujmodi2021 deleted the branch-3.3.3 branch April 22, 2024 04:32
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.

5 participants