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

[Draft][Not to be Reviewed] PR For Looking at Overall Diff vs trunk #143

Draft
wants to merge 240 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
55dbdb9
Basic Infrastructure Change of AbfsClient
May 2, 2024
bb37f49
DfsEndpoint Refractr
May 7, 2024
3d14bfe
Test Infra
May 12, 2024
690c8e0
Implementing Blob Endpoint APIs
May 13, 2024
9e01071
Blob Endpoint APIs
May 16, 2024
cde97eb
PR Checks
May 16, 2024
25ec8fc
Reducing Git Diffs
May 16, 2024
a3b775f
PR Checks
May 16, 2024
6371cb1
Adding Support for Blob Endpoint Listing
May 17, 2024
fe6a2d3
Storage Error Parsing
May 20, 2024
3d227a8
Handling duplicate entry in listing
May 21, 2024
7dc1a38
Code cleanups and documentations
May 21, 2024
be8d402
Continuation Token Parsing
May 21, 2024
15fdd85
AbfsHandlers
anmolanmol1234 May 22, 2024
2e019a9
AbfsOutputStream changes
anmolanmol1234 May 27, 2024
6969b23
Synchronization issues
anmolanmol1234 May 28, 2024
1942e61
Small write
anmolanmol1234 May 28, 2024
2adae79
Javadocs update
anmolanmol1234 May 28, 2024
f653b07
Javadocs
anmolanmol1234 May 28, 2024
ea5b71e
Javadocs
anmolanmol1234 May 28, 2024
e9d93dd
appendblob
anmolanmol1234 May 29, 2024
095bc4b
merge conflict
anmolanmol1234 May 29, 2024
48e5b8f
length 0
anmolanmol1234 May 29, 2024
da83b8a
close AbfsBlock
anmolanmol1234 May 29, 2024
4d2dc86
add new error
anmolanmol1234 May 29, 2024
20002d5
Add ingress handler to tracing context
anmolanmol1234 May 30, 2024
54535fd
logging
anmolanmol1234 May 30, 2024
75fd3a1
Add AppendBlob support for FNS
anmolanmol1234 May 30, 2024
6dba239
close data block for append blob
anmolanmol1234 May 31, 2024
bbe2230
Add marker blob creation logic
anmolanmol1234 May 31, 2024
96b9f46
changes for create
anmolanmol1234 May 31, 2024
a84207a
extra line
anmolanmol1234 May 31, 2024
1b9658e
Merge branch 'trunk' into azureBlobClient
Jun 3, 2024
e0971bb
Refactor Service Type Configurations
Jun 3, 2024
0e373c5
Append fixes
anmolanmol1234 Jun 4, 2024
06466a0
Test Fixes and Config Changes
Jun 4, 2024
f7b2857
Test Fixes
Jun 5, 2024
450dc14
parent changes
anmolanmol1234 Jun 5, 2024
2520979
Back merge
anmolanmol1234 Jun 5, 2024
f0bac54
merge conflicts
anmolanmol1234 Jun 5, 2024
d0b38d9
Listing Issues Fix
Jun 5, 2024
39790f6
Client orchestration
anmolanmol1234 Jun 5, 2024
2e3a9e4
test fix
anmolanmol1234 Jun 5, 2024
7b105e2
Fixes
Jun 5, 2024
68ca484
test fixes
anmolanmol1234 Jun 5, 2024
0e46aac
GetXAttr Fix
Jun 5, 2024
eb1e655
test fix
anmolanmol1234 Jun 5, 2024
c39c389
Fix for switching handler
anmolanmol1234 Jun 5, 2024
f1318e6
final type
anmolanmol1234 Jun 5, 2024
f3fd5ae
Correct Url For Client Types
Jun 6, 2024
b54cf97
tests
anmolanmol1234 Jun 6, 2024
0a09c50
tests
anmolanmol1234 Jun 6, 2024
332832a
getSetXAttr Fixes
Jun 6, 2024
700a534
adding test
anmolanmol1234 Jun 6, 2024
a1db4e9
Add lease test case
anmolanmol1234 Jun 6, 2024
41e4d03
fix test
anmolanmol1234 Jun 6, 2024
3fee064
Code Clean Up
Jun 7, 2024
3d4584b
fix for all ingress types
anmolanmol1234 Jun 7, 2024
337830c
Merge branch 'azureBlobClient' of https://github.com/ABFSDriver/AbfsH…
anmolanmol1234 Jun 7, 2024
e4366d4
Always init blob client
Jun 7, 2024
5afa789
Merge branch 'azureBlobClient' of https://github.com/ABFSDriver/AbfsH…
anmolanmol1234 Jun 7, 2024
98e2b29
add create tests
anmolanmol1234 Jun 7, 2024
27a70e6
add tests
anmolanmol1234 Jun 7, 2024
bdc3f66
Merge pull request #106 from ABFSDriver/azureBlobClient
anujmodi2021 Jun 10, 2024
530b2b3
Merge branch 'apache:trunk' into wasbDeprecation_Dev
anmolanmol1234 Jun 10, 2024
e702d1c
Merge branch 'wasbDeprecation_Dev' of https://github.com/ABFSDriver/A…
anmolanmol1234 Jun 10, 2024
499fc72
append blob fix
anmolanmol1234 Jun 10, 2024
66cb16d
fix
anmolanmol1234 Jun 11, 2024
f8a9553
fix for checksum
anmolanmol1234 Jun 11, 2024
16d8bb5
lease fix
anmolanmol1234 Jun 11, 2024
764691a
mocking resolution + getConnOutputStream to throw exception
saxenapranav Jun 11, 2024
6ae8457
casting not needed
anmolanmol1234 Jun 11, 2024
63f11ed
fix shared key test
anmolanmol1234 Jun 11, 2024
d0da028
fix test
anmolanmol1234 Jun 12, 2024
8d0ffca
fix stats
anmolanmol1234 Jun 12, 2024
04ddd14
fix create stats test
anmolanmol1234 Jun 12, 2024
ba8bd15
fix test for SAS
anmolanmol1234 Jun 12, 2024
51b3106
Merge branch 'trunk' into azureBlobClient
Jun 12, 2024
3dd562d
Production Code Changes Made during test Fixes
Jun 12, 2024
ecc5f83
merge trunk
anmolanmol1234 Jun 13, 2024
9060729
Merge branch 'trunk' of https://github.com/ABFSDriver/AbfsHadoop into…
anmolanmol1234 Jun 13, 2024
d3f853e
merge conflicts
anmolanmol1234 Jun 13, 2024
68e4da2
CPK for HNS Blob
anmolanmol1234 Jun 13, 2024
a000d21
HNS cpk blob
anmolanmol1234 Jun 13, 2024
3d6eda0
fix test
anmolanmol1234 Jun 13, 2024
deab6f7
Fix SAS
anmolanmol1234 Jun 14, 2024
1cd0402
Merge branch 'CPKHNSIngressBlob' of https://github.com/ABFSDriver/Abf…
anmolanmol1234 Jun 14, 2024
f8483e8
review comments
anmolanmol1234 Jun 14, 2024
7e198c2
changes in test
anmolanmol1234 Jun 14, 2024
5ed9a5e
make changes
anmolanmol1234 Jun 14, 2024
b2524a9
Merge branch 'wasbDepCodeReview' into azureBlobClient
Jun 17, 2024
6771914
Merge branch 'azureBlobClient' of github.com:ABFSDriver/AbfsHadoop in…
Jun 17, 2024
dbd7ca4
review comments
anmolanmol1234 Jun 17, 2024
7948e97
small write change in context
anmolanmol1234 Jun 17, 2024
75cd4c7
Addressed Comments
Jun 17, 2024
18f2a8b
Added FNS-BLOB md file
Jun 17, 2024
1f5af7a
remove unused method
anmolanmol1234 Jun 17, 2024
36eceac
IngressClient in Client Handler
Jun 17, 2024
091fab8
merge conflicts
anmolanmol1234 Jun 18, 2024
2fff127
create flow fix
anmolanmol1234 Jun 18, 2024
a847923
fix recursion
anmolanmol1234 Jun 18, 2024
63c060b
fix call
anmolanmol1234 Jun 18, 2024
513aa52
fix test
anmolanmol1234 Jun 18, 2024
f1c6261
review comments
anmolanmol1234 Jun 18, 2024
7c24072
createBlock synchronized
anmolanmol1234 Jun 18, 2024
b6e3f77
missed file
anmolanmol1234 Jun 18, 2024
6122704
Addressing Comments
Jun 19, 2024
9f03a9b
review comments
anmolanmol1234 Jun 19, 2024
43e7da1
Merge branch 'azureBlobClient' of https://github.com/ABFSDriver/AbfsH…
anmolanmol1234 Jun 19, 2024
f0c233f
take care of switching only once
anmolanmol1234 Jun 19, 2024
8b50ef1
Merge pull request #115 from ABFSDriver/azureBlobClient
anujmodi2021 Jun 19, 2024
327fb1f
remove small write check
anmolanmol1234 Jun 19, 2024
e4ce98c
Handle fallback effectively
anmolanmol1234 Jun 20, 2024
3b087dc
missed file
anmolanmol1234 Jun 20, 2024
ff8e959
change to getter
anmolanmol1234 Jun 21, 2024
f658a68
fallback for appendblob
anmolanmol1234 Jun 21, 2024
925fcf0
correct try catch
anmolanmol1234 Jun 21, 2024
887fa4d
commit for metrics test
anmolanmol1234 Jun 21, 2024
b41b3d9
review comments
anmolanmol1234 Jun 24, 2024
942ff29
changes for block manager
anmolanmol1234 Jun 24, 2024
4fce8b4
no param needed
anmolanmol1234 Jun 24, 2024
1414b60
revert no param
anmolanmol1234 Jun 24, 2024
3ac7287
fs.contract.test.root-tests-enabled fix (#119)
saxenapranav Jun 18, 2024
8937ae5
Merge pull request #118 from ABFSDriver/azureBlobClientOriginal
anmolanmol1234 Jun 25, 2024
d078fb1
Rename Delete on Blob endpoint. (#117)
saxenapranav Jun 26, 2024
68a07b4
fix failures
anmolanmol1234 Jun 27, 2024
f76804c
fix etag and mock
anmolanmol1234 Jun 27, 2024
5f5287f
Merge branch 'apache:trunk' into wasbDepCodeReview
anmolanmol1234 Jun 27, 2024
9f7bffa
fix stats
anmolanmol1234 Jun 27, 2024
fcf2861
Merge branch 'wasbDepCodeReview' of https://github.com/ABFSDriver/Abf…
anmolanmol1234 Jun 27, 2024
1741c7a
fix testAcquireRetry
anmolanmol1234 Jun 27, 2024
f8f5714
fix test run
anmolanmol1234 Jun 27, 2024
708dfd8
fix test
anmolanmol1234 Jun 27, 2024
b030f8f
fix for create
anmolanmol1234 Jun 27, 2024
4de7aed
fix tests
anmolanmol1234 Jun 27, 2024
ea130a7
Merge branch 'wasbDepCodeReview' of https://github.com/ABFSDriver/Abf…
anmolanmol1234 Jun 27, 2024
ff0b962
Remove atomic dir action in fileStatus and listStatus from store cla…
saxenapranav Jul 1, 2024
fda7aac
Merge branch 'apache:trunk' into wasbDepCodeReview
anmolanmol1234 Jul 1, 2024
1506d6c
Merge branch 'apache:trunk' into wasbDepCodeReview
anmolanmol1234 Jul 3, 2024
6516d9b
HNS-Blob Init Fix
Jul 3, 2024
9ff2652
Fixing logic
Jul 3, 2024
3999eeb
logic fix
Jul 4, 2024
c036376
Merge pull request #124 from ABFSDriver/hnsBlobFix
anujmodi2021 Jul 4, 2024
c207dc1
[FnsOverBlob][Test] Adding Azcopy Helper and common test infra for Im…
anujmodi2021 Jul 5, 2024
020aace
HNS-BLOB Failure error fix (#125)
anujmodi2021 Jul 5, 2024
0b46d18
add create tests
anmolanmol1234 Jul 11, 2024
f35323d
fix implicit
anmolanmol1234 Jul 11, 2024
5c839d8
Updating test scripts
manika137 Jul 17, 2024
496f51f
[FnsOverBlob][Internal] Making Endpoint related configs case-insensit…
anujmodi2021 Jul 17, 2024
7fbf876
Merge branch 'wasbDepCodeReview' of github.com:ABFSDriver/AbfsHadoop …
manika137 Jul 17, 2024
7c46823
minor changes
manika137 Jul 17, 2024
05489f0
Merge pull request #130 from ABFSDriver/testScriptUpdate
manika137 Jul 19, 2024
662e7fb
Merge branch 'wasbDepCodeReview' of https://github.com/ABFSDriver/Abf…
anmolanmol1234 Jul 22, 2024
ab3b9af
add and fix test
anmolanmol1234 Jul 22, 2024
53f819d
Add tests for create
anmolanmol1234 Jul 22, 2024
dc4ece5
fix appendblob test
anmolanmol1234 Jul 22, 2024
782af61
fix lease cases for appenf blob
anmolanmol1234 Jul 22, 2024
7b442f2
fix append blob test
anmolanmol1234 Jul 22, 2024
8f8e838
fix test
anmolanmol1234 Jul 22, 2024
8d49320
fixing tests
anmolanmol1234 Jul 23, 2024
1daac46
fix test
anmolanmol1234 Jul 23, 2024
de48f28
fix test
anmolanmol1234 Jul 23, 2024
fcea2f2
fix statistics test
anmolanmol1234 Jul 23, 2024
fa51a88
fix implicit test
anmolanmol1234 Jul 23, 2024
2ab85e6
fix appendblob test
manika137 Jul 29, 2024
70344dc
Merge branch 'addTests' of github.com:ABFSDriver/AbfsHadoop into addT…
manika137 Jul 29, 2024
d3b275b
Producer condition change + Rename Azcopy tests (#127)
saxenapranav Jul 30, 2024
9cb5f01
Add tests for append and flush
anmolanmol1234 Jul 31, 2024
6503231
Added append tests
anmolanmol1234 Jul 31, 2024
1d3c9c1
fix test failure
anmolanmol1234 Aug 1, 2024
62ceaa8
fix merge conflicts
anmolanmol1234 Aug 1, 2024
3a46c6f
Merge branch 'addTests' of https://github.com/ABFSDriver/AbfsHadoop i…
anmolanmol1234 Aug 1, 2024
e6d0b88
fix HNS Ingress failures
anmolanmol1234 Aug 1, 2024
319623d
fix tests for failing scenarios
anmolanmol1234 Aug 2, 2024
32e152f
fix create logic
anmolanmol1234 Aug 5, 2024
88c9860
add new tests
anmolanmol1234 Aug 6, 2024
0d15648
fix metrics code
anmolanmol1234 Aug 7, 2024
e93a44f
fix synchronization
anmolanmol1234 Aug 7, 2024
2717ea5
MD5 for flush
anmolanmol1234 Aug 8, 2024
dac694e
fix string
anmolanmol1234 Aug 8, 2024
f1cb1a3
Use client method
anmolanmol1234 Aug 8, 2024
5936923
Add test and verify code for MD5 Hadh
anmolanmol1234 Aug 9, 2024
4f68b00
Remove unused imports
anmolanmol1234 Aug 9, 2024
b5ce89a
Negative test for md5 match
anmolanmol1234 Aug 12, 2024
4ad7647
fix wasb bug
anmolanmol1234 Aug 12, 2024
b3d1a8c
fix for blob
anmolanmol1234 Aug 13, 2024
4a0d467
fix TC
anmolanmol1234 Aug 14, 2024
8e9019f
fix
anmolanmol1234 Aug 14, 2024
cd427ec
[FnsOverBlob][Internal PR] Backporting Apache Client Support to Inter…
anujmodi2021 Aug 21, 2024
ecc65bc
PR comments
anmolanmol1234 Aug 22, 2024
f8ce722
merge conflicts
anmolanmol1234 Aug 22, 2024
e36f9b1
PR comments test
anmolanmol1234 Aug 22, 2024
9c2a72d
Merge pull request #132 from ABFSDriver/addTests
anmolanmol1234 Aug 26, 2024
7e396e0
fix tests
anmolanmol1234 Aug 26, 2024
a004d6b
fix unused import
anmolanmol1234 Aug 26, 2024
edc762f
Merge pull request #136 from ABFSDriver/addTests
anmolanmol1234 Aug 26, 2024
8733127
Primary request id changes
anmolanmol1234 Aug 27, 2024
81fa101
Fix bugs
anmolanmol1234 Aug 29, 2024
14be7fc
Merge pull request #137 from ABFSDriver/bugFix
anmolanmol1234 Aug 29, 2024
48c44bb
Merge branch 'wasbDepCodeReview' of https://github.com/ABFSDriver/Abf…
anmolanmol1234 Aug 29, 2024
41f4f7f
[FnsOverBlob][Internal Repo] Add Tests for Attributes, filestatus, li…
anujmodi2021 Aug 29, 2024
fa08057
add successor's clientRequestId part to primaryRequestId
anmolanmol1234 Aug 29, 2024
26b99b6
fix for empty
anmolanmol1234 Aug 29, 2024
e008d3d
fix comments
anmolanmol1234 Aug 29, 2024
3235ff2
separate method
anmolanmol1234 Aug 30, 2024
d9f0029
Merge branch 'wasbDepCodeReview' of https://github.com/ABFSDriver/Abf…
anmolanmol1234 Sep 2, 2024
d4383df
Changes in ABFS for tracing context primary requestId
anmolanmol1234 Sep 2, 2024
1b0975f
Addressed PR comments
anmolanmol1234 Sep 4, 2024
a3875d0
Merge pull request #138 from ABFSDriver/tracingcontextblob
anmolanmol1234 Sep 4, 2024
8449448
code changes
anmolanmol1234 Sep 27, 2024
b123497
make changes in flush flow
anmolanmol1234 Sep 27, 2024
5a7f178
new code
anmolanmol1234 Sep 27, 2024
8e06234
new code
anmolanmol1234 Sep 27, 2024
0531aa6
make synchronized
anmolanmol1234 Sep 27, 2024
1d633c3
Code changes for append and flush
anmolanmol1234 Oct 1, 2024
ed68301
remove comments
anmolanmol1234 Oct 1, 2024
19f2321
reduce differences
anmolanmol1234 Oct 1, 2024
84d5072
unused imports
anmolanmol1234 Oct 1, 2024
6306d56
remove unused variable
anmolanmol1234 Oct 1, 2024
c47e886
remove unused imports
anmolanmol1234 Oct 1, 2024
d883d5f
remove redundant typecasting
anmolanmol1234 Oct 1, 2024
a2443e3
close resources
anmolanmol1234 Oct 2, 2024
135a671
Build Issue Fix
Oct 3, 2024
1a1a160
remove executor shutdown
anmolanmol1234 Oct 7, 2024
c2ad6e6
remove blockid clear
anmolanmol1234 Oct 7, 2024
68cb014
revert from set to list
anmolanmol1234 Oct 8, 2024
07891f2
review comments
anmolanmol1234 Oct 8, 2024
72ee20e
review comments
anmolanmol1234 Oct 8, 2024
b73a556
Merge pull request #139 from ABFSDriver/metricsForAppend
anmolanmol1234 Oct 8, 2024
79422c9
Needed changes for FNS Blob work (#145)
anmolanmol1234 Dec 2, 2024
2377397
Pass down hns enabled or not info to client (#141)
anmolanmol1234 Dec 2, 2024
c085ff4
Empty listing Bug Fix and Other Pending Changes (#144)
anujmodi2021 Dec 3, 2024
110343e
Merge branch 'trunk' into wasbDepAnuj
anujmodi2021 Dec 4, 2024
e5a1a52
Fix for append request parameters (#147)
anmolanmol1234 Dec 5, 2024
5caf63a
Fixes for test
anmolanmol1234 Dec 6, 2024
b0d52b4
Put Block and Put Block List support encryption context only after Au…
anmolanmol1234 Dec 10, 2024
adbd9d4
test
anmolanmol1234 Dec 10, 2024
09c4c6e
Merge branch 'trunk' into wasbDepCodeReview
anujmodi2021 Dec 17, 2024
d507264
Removing Redundant Constants in Exponential Retry Policy for Default …
manika137 Dec 26, 2024
5f323aa
Merge branch 'trunk' into wasbDepCodeReview
anujmodi2021 Dec 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 103 additions & 21 deletions hadoop-tools/hadoop-azure/dev-support/testrun-scripts/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,87 @@ processCount=8

## SECTION: TEST COMBINATION METHODS

runHNSOAuthTest()
runHNSOAuthDFSTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.hnsTestAccountName"]/value' -n $azureTestXmlPath)
PROPERTIES=("fs.azure.account.auth.type")
VALUES=("OAuth")
triggerRun "HNS-OAuth" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
triggerRun "HNS-OAuth-DFS" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
}

runHNSSharedKeyTest()
runHNSSharedKeyDFSTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.hnsTestAccountName"]/value' -n $azureTestXmlPath)
PROPERTIES=("fs.azure.account.auth.type")
VALUES=("SharedKey")
triggerRun "HNS-SharedKey" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
triggerRun "HNS-SharedKey-DFS" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
}

runNonHNSSharedKeyTest()
runNonHNSSharedKeyDFSTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.nonHnsTestAccountName"]/value' -n $azureTestXmlPath)
PROPERTIES=("fs.azure.account.auth.type")
VALUES=("SharedKey")
triggerRun "NonHNS-SharedKey" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
triggerRun "NonHNS-SharedKey-DFS" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
}

runAppendBlobHNSOAuthTest()
runAppendBlobHNSOAuthDFSTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.hnsTestAccountName"]/value' -n $azureTestXmlPath)
PROPERTIES=("fs.azure.account.auth.type" "fs.azure.test.appendblob.enabled")
VALUES=("OAuth" "true")
triggerRun "AppendBlob-HNS-OAuth" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
triggerRun "AppendBlob-HNS-OAuth-DFS" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
}

runNonHNSSharedKeyBlobTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.nonHnsTestAccountName"]/value' -n $azureTestXmlPath)
fnsBlobConfigFileCheck "$accountName"
PROPERTIES=("fs.azure.account.auth.type")
VALUES=("SharedKey")
triggerRun "NonHNS-SharedKey-Blob" "${accountName}_blob" "$runTest" $processCount "$cleanUpTestContainers"
}

runNonHNSOAuthDFSTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.nonHnsTestAccountName"]/value' -n $azureTestXmlPath)
PROPERTIES=("fs.azure.account.auth.type")
VALUES=("OAuth")
triggerRun "NonHNS-OAuth-DFS" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
}

runNonHNSOAuthBlobTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.nonHnsTestAccountName"]/value' -n $azureTestXmlPath)
fnsBlobConfigFileCheck "$accountName"
PROPERTIES=("fs.azure.account.auth.type")
VALUES=("OAuth")
triggerRun "NonHNS-OAuth-Blob" "${accountName}_blob" "$runTest" $processCount "$cleanUpTestContainers"
}

runAppendBlobNonHNSOAuthBlobTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.nonHnsTestAccountName"]/value' -n $azureTestXmlPath)
fnsBlobConfigFileCheck "$accountName"
PROPERTIES=("fs.azure.account.auth.type" "fs.azure.test.appendblob.enabled")
VALUES=("OAuth" "true")
triggerRun "AppendBlob-NonHNS-OAuth-Blob" "${accountName}_blob" "$runTest" $processCount "$cleanUpTestContainers"
}

runHNSOAuthDFSIngressBlobTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.hnsTestAccountName"]/value' -n $azureTestXmlPath)
PROPERTIES=("fs.azure.account.auth.type" "fs.azure.ingress.service.type")
VALUES=("OAuth" "blob")
triggerRun "HNS-Oauth-DFS-IngressBlob" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
}

runNonHNSOAuthDFSIngressBlobTest()
{
accountName=$(xmlstarlet sel -t -v '//property[name = "fs.azure.nonHnsTestAccountName"]/value' -n $azureTestXmlPath)
PROPERTIES=("fs.azure.account.auth.type" "fs.azure.ingress.service.type")
VALUES=("OAuth" "blob")
triggerRun "NonHNS-OAuth-DFS-IngressBlob" "$accountName" "$runTest" $processCount "$cleanUpTestContainers"
}

runTest=false
Expand Down Expand Up @@ -126,27 +177,52 @@ do
esac
done


## SECTION: COMBINATION DEFINITIONS AND TRIGGER

echo ' '
echo 'Set the active test combination to run the action:'
select combo in HNS-OAuth HNS-SharedKey nonHNS-SharedKey AppendBlob-HNS-OAuth AllCombinationsTestRun Quit
select combo in HNS-OAuth-DFS HNS-SharedKey-DFS NonHNS-SharedKey-DFS AppendBlob-HNS-OAuth-DFS NonHNS-SharedKey-Blob NonHNS-OAuth-DFS NonHNS-OAuth-Blob AppendBlob-NonHNS-OAuth-Blob HNS-Oauth-DFS-IngressBlob NonHNS-Oauth-DFS-IngressBlob AllCombinationsTestRun Quit
do
case $combo in
HNS-OAuth)
runHNSOAuthTest
HNS-OAuth-DFS)
runHNSOAuthDFSTest
break
;;
HNS-SharedKey-DFS)
runHNSSharedKeyDFSTest
break
;;
NonHNS-SharedKey-DFS)
runNonHNSSharedKeyDFSTest
break
;;
AppendBlob-HNS-OAuth-DFS)
runAppendBlobHNSOAuthDFSTest
break
;;
NonHNS-SharedKey-Blob)
runNonHNSSharedKeyBlobTest
break
;;
NonHNS-OAuth-DFS)
runNonHNSOAuthDFSTest
break
;;
NonHNS-OAuth-Blob)
runNonHNSOAuthBlobTest
break
;;
HNS-SharedKey)
runHNSSharedKeyTest
AppendBlob-NonHNS-OAuth-Blob)
runAppendBlobNonHNSOAuthBlobTest
break
;;
nonHNS-SharedKey)
runNonHNSSharedKeyTest
HNS-Oauth-DFS-IngressBlob)
runHNSOAuthDFSIngressBlobTest
break
;;
AppendBlob-HNS-OAuth)
runAppendBlobHNSOAuthTest
NonHNS-Oauth-DFS-IngressBlob)
runNonHNSOAuthDFSIngressBlobTest
break
;;
AllCombinationsTestRun)
Expand All @@ -155,10 +231,16 @@ do
logOutput "ERROR: Invalid selection for SET_ACTIVE_TEST_CONFIG. This is applicable only for RUN_TEST."
break
fi
runHNSOAuthTest
runHNSSharedKeyTest
runNonHNSSharedKeyTest
runAppendBlobHNSOAuthTest ## Keep this as the last run scenario always
runHNSOAuthDFSTest
runHNSSharedKeyDFSTest
runNonHNSSharedKeyDFSTest
runAppendBlobHNSOAuthDFSTest
runNonHNSSharedKeyBlobTest
runNonHNSOAuthDFSTest
runNonHNSOAuthBlobTest
runAppendBlobNonHNSOAuthBlobTest
runHNSOAuthDFSIngressBlobTest
runNonHNSOAuthDFSIngressBlobTest
break
;;
Quit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@ ENDTIME=$(date +%s)
outputFormatOn="\033[0;95m"
outputFormatOff="\033[0m"

fnsBlobConfigFileCheck() {
baseFileName=$1
targetWord=".dfs.core.windows.net"
replacementWord=".blob.core.windows.net"
accountSettingsDir="src/test/resources/accountSettings/"
accountConfigFileSuffix="_settings.xml"
sourceFilePath="${accountSettingsDir}${baseFileName}${accountConfigFileSuffix}"
targetFilePath="${accountSettingsDir}${baseFileName}_blob${accountConfigFileSuffix}"

if [ ! -f "$targetFilePath" ]; then
cp "$sourceFilePath" "$targetFilePath"
sed -i "s/$targetWord/$replacementWord/g" "$targetFilePath"
echo "File created and word replaced."
else
echo "File already exists."
fi
}

triggerRun()
{
echo ' '
Expand Down
2 changes: 2 additions & 0 deletions hadoop-tools/hadoop-azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@
<exclude>**/azurebfs/ITestSmallWriteOptimization.java</exclude>
<exclude>**/azurebfs/ITestAbfsStreamStatistics*.java</exclude>
<exclude>**/azurebfs/services/ITestReadBufferManager.java</exclude>
<exclude>**/azurebfs/ITestAzureBlobFileSystemLease.java</exclude>
<exclude>**/azurebfs/commit/*.java</exclude>
</excludes>

Expand Down Expand Up @@ -668,6 +669,7 @@
<include>**/azurebfs/extensions/ITestAbfsDelegationTokens.java</include>
<include>**/azurebfs/ITestSmallWriteOptimization.java</include>
<include>**/azurebfs/services/ITestReadBufferManager.java</include>
<include>**/azurebfs/ITestAzureBlobFileSystemLease.java</include>
<include>**/azurebfs/ITestAbfsStreamStatistics*.java</include>
<include>**/azurebfs/commit/*.java</include>
</includes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
import static org.apache.hadoop.fs.FileSystem.FS_DEFAULT_NAME_KEY;
import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.EMPTY_STRING;
import static org.apache.hadoop.fs.azurebfs.constants.ConfigurationKeys.*;
import static org.apache.hadoop.fs.azurebfs.constants.ConfigurationKeys.FS_AZURE_LEASE_CREATE_NON_RECURSIVE;
import static org.apache.hadoop.fs.azurebfs.constants.FileSystemConfigurations.*;
import static org.apache.hadoop.fs.azurebfs.constants.FileSystemConfigurations.DEFAULT_FS_AZURE_LEASE_CREATE_NON_RECURSIVE;

/**
* Configuration for Azure Blob FileSystem.
Expand Down Expand Up @@ -399,6 +401,34 @@ public class AbfsConfiguration{
FS_AZURE_ENABLE_PAGINATED_DELETE, DefaultValue = DEFAULT_ENABLE_PAGINATED_DELETE)
private boolean isPaginatedDeleteEnabled;

@LongConfigurationValidatorAnnotation(ConfigurationKey = FS_AZURE_BLOB_COPY_PROGRESS_WAIT_MILLIS,
DefaultValue = DEFAULT_AZURE_BLOB_COPY_PROGRESS_WAIT_MILLIS)
private long blobCopyProgressPollWaitMillis;

@LongConfigurationValidatorAnnotation(ConfigurationKey = FS_AZURE_BLOB_ATOMIC_RENAME_LEASE_REFRESH_DURATION,
DefaultValue = DEFAULT_AZURE_BLOB_ATOMIC_RENAME_LEASE_REFRESH_DURATION)
private long blobAtomicRenameLeaseRefreshDuration;

@IntegerConfigurationValidatorAnnotation(ConfigurationKey =
FS_AZURE_PRODUCER_QUEUE_MAX_SIZE, DefaultValue = DEFAULT_FS_AZURE_PRODUCER_QUEUE_MAX_SIZE)
private int producerQueueMaxSize;

@IntegerConfigurationValidatorAnnotation(ConfigurationKey =
FS_AZURE_CONSUMER_MAX_LAG, DefaultValue = DEFAULT_FS_AZURE_CONSUMER_MAX_LAG)
private int listingMaxConsumptionLag;

@IntegerConfigurationValidatorAnnotation(ConfigurationKey =
FS_AZURE_BLOB_DIR_RENAME_MAX_THREAD, DefaultValue = DEFAULT_FS_AZURE_BLOB_RENAME_THREAD)
private int blobRenameDirConsumptionParallelism;

@IntegerConfigurationValidatorAnnotation(ConfigurationKey =
FS_AZURE_BLOB_DIR_DELETE_MAX_THREAD, DefaultValue = DEFAULT_FS_AZURE_BLOB_DELETE_THREAD)
private int blobDeleteDirConsumptionParallelism;

@BooleanConfigurationValidatorAnnotation(ConfigurationKey =
FS_AZURE_LEASE_CREATE_NON_RECURSIVE, DefaultValue = DEFAULT_FS_AZURE_LEASE_CREATE_NON_RECURSIVE)
private boolean isLeaseOnCreateNonRecursiveEnabled;

@IntegerConfigurationValidatorAnnotation(ConfigurationKey =
FS_AZURE_APACHE_HTTP_CLIENT_MAX_IO_EXCEPTION_RETRIES, DefaultValue = DEFAULT_APACHE_HTTP_CLIENT_MAX_IO_EXCEPTION_RETRIES)
private int maxApacheHttpClientIoExceptionsRetries;
Expand Down Expand Up @@ -523,11 +553,6 @@ public boolean isDfsToBlobFallbackEnabled() {
*/
public void validateConfiguredServiceType(boolean isHNSEnabled)
throws InvalidConfigurationValueException {
// TODO: [FnsOverBlob][HADOOP-19179] Remove this check when FNS over Blob is ready.
if (getFsConfiguredServiceType() == AbfsServiceType.BLOB) {
throw new InvalidConfigurationValueException(FS_DEFAULT_NAME_KEY,
"Blob Endpoint Support not yet available");
}
if (isHNSEnabled && getConfiguredServiceTypeForFNSAccounts() == AbfsServiceType.BLOB) {
throw new InvalidConfigurationValueException(
FS_AZURE_FNS_ACCOUNT_SERVICE_TYPE, "Service Type Cannot be BLOB for HNS Account");
Expand Down Expand Up @@ -839,6 +864,10 @@ public boolean isSmallWriteOptimizationEnabled() {
return this.enableSmallWriteOptimization;
}

public void setSmallWriteOptimization(final boolean enableSmallWriteOptimization) {
this.enableSmallWriteOptimization = enableSmallWriteOptimization;
}

public boolean readSmallFilesCompletely() {
return this.readSmallFilesCompletely;
}
Expand Down Expand Up @@ -1508,4 +1537,32 @@ public boolean getIsChecksumValidationEnabled() {
public void setIsChecksumValidationEnabled(boolean isChecksumValidationEnabled) {
this.isChecksumValidationEnabled = isChecksumValidationEnabled;
}

public long getBlobCopyProgressPollWaitMillis() {
return blobCopyProgressPollWaitMillis;
}

public long getAtomicRenameLeaseRefreshDuration() {
return blobAtomicRenameLeaseRefreshDuration;
}

public int getProducerQueueMaxSize() {
return producerQueueMaxSize;
}

public int getListingMaxConsumptionLag() {
return listingMaxConsumptionLag;
}

public int getBlobRenameDirConsumptionParallelism() {
return blobRenameDirConsumptionParallelism;
}

public int getBlobDeleteDirConsumptionParallelism() {
return blobDeleteDirConsumptionParallelism;
}

public boolean isLeaseOnCreateNonRecursiveEnabled() {
return isLeaseOnCreateNonRecursiveEnabled;
}
}
Loading
Loading