-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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-19331. Hadoop OSS Connector process optimization #7314
Open
zhouaoe
wants to merge
4
commits into
apache:trunk
Choose a base branch
from
zhouaoe:aliyu-reduce-qps-dev-5
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,677
−255
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
Optimize the process by reducing some extra QPS.![image](https://private-user-images.githubusercontent.com/21140069/404730052-53e8c815-3e07-45ac-8acc-2809fb3c6222.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDIyODUsIm5iZiI6MTczOTIwMTk4NSwicGF0aCI6Ii8yMTE0MDA2OS80MDQ3MzAwNTItNTNlOGM4MTUtM2UwNy00NWFjLThhY2MtMjgwOWZiM2M2MjIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mzk0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiZGU5ZDVhMjYzMjNmMGFjODkyYzU2YTM1ODMwMmQzZjM4MDE4ZmJjMDU5MjU2YTcyNmQxNzA1NGQxMTA0N2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XBigNWEmbfqZVMFCrovHAfw-1AJ9qIA9zhS1ewMQNLo)
1 Create: Reduce one HEAD operation for coverage operations.
2 Rename: Reduce an additional PUT operation. During the rename process, when determining whether to create a virtual empty directory, we check if the parent directory exists afterward. There is a bug in the original OSS code that leads to it creating the directory every time.
3 Delete: Reduce one HEAD operation when creating a virtual parent directory. For the operation of creating a parent directory, use OSS server features to create it only when the target does not exist.(([https://www.alibabacloud.com/help/en/oss/user-guide/simple-upload?spm=a2c63.p38356.help-menu-31815.d_2_3_1_0.13644b78AT3Hyj)]
How was this patch tested?
1 Add new unit tests (UT)
TestAliyunOSSFileSystemCreateFileListV1
TestAliyunOSSFileSystemCreateFileListV2
TestAliyunOSSFileSystemRenameFile
2 Modify relevant integration tests
TestAliyunOSSBlockOutputStream
3 test integration tests and unit tests are executed
![image](https://private-user-images.githubusercontent.com/21140069/404728541-0aaf1e82-b58f-4782-9865-218c0083d2d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDIyODUsIm5iZiI6MTczOTIwMTk4NSwicGF0aCI6Ii8yMTE0MDA2OS80MDQ3Mjg1NDEtMGFhZjFlODItYjU4Zi00NzgyLTk4NjUtMjE4YzAwODNkMmQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mzk0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmNzBmZWVkN2JlYjE3OTM0NzA5ODY2ZDdiZjM1ZGE4MThkODAwNTBmOTNlNTg4Y2E5ZWQ1MzYxNWViY2JhNGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wDNm6MGHPKE7ASZaeO_rwSs9Pv6-XpLbCDjlLs8-ihQ)
mvn test -pl hadoop-tools/hadoop-aliyun

hadoop@96c5b859c556:~$ mvn test -Dtest=org.apache.hadoop.fs.aliyun.oss.TestAliyunOSSFileSystemCreateFileListV1 -pl hadoop-tools/hadoop-aliyun
![image](https://private-user-images.githubusercontent.com/21140069/404728671-ad831629-29e5-4db6-82ef-06d1cb4a1545.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDIyODUsIm5iZiI6MTczOTIwMTk4NSwicGF0aCI6Ii8yMTE0MDA2OS80MDQ3Mjg2NzEtYWQ4MzE2MjktMjllNS00ZGI2LTgyZWYtMDZkMWNiNGExNTQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mzk0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0MGIxN2QxZGYxY2Q1M2Y5YzE3ZTIwMjg3NzZhODVkM2JiMzMyYzZiNzA1NzQ4NDJiY2QyZTQ4YWJjNTJiMDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JxHuGInAltKD9D_t7a4CSRe7B7P3xiXgh_6Fe5s0QZc)

hadoop@96c5b859c556:~$ mvn test -Dtest=org.apache.hadoop.fs.aliyun.oss.TestAliyunOSSFileSystemCreateFileListV2 -pl hadoop-tools/hadoop-aliyun
![image](https://private-user-images.githubusercontent.com/21140069/404728735-569ea08e-9713-4ab1-83fc-d9486484d646.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDIyODUsIm5iZiI6MTczOTIwMTk4NSwicGF0aCI6Ii8yMTE0MDA2OS80MDQ3Mjg3MzUtNTY5ZWEwOGUtOTcxMy00YWIxLTgzZmMtZDk0ODY0ODRkNjQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mzk0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4OTY0ODhmZjhiNDIwZTAwMmZlNTYwNWE4MmJhNTFhMzBkMjAwYWU3MGNhYzMyYzEwODhmZDU5MTA0NGI5M2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QZAf3AQcbJy_vCRIiHlp3LSAJue4uFuA8rhKf3-KtNU)

hadoop@96c5b859c556:~$ mvn test -Dtest=org.apache.hadoop.fs.aliyun.oss.TestAliyunOSSFileSystemDeleteFile -pl hadoop-tools/hadoop-aliyun
![image](https://private-user-images.githubusercontent.com/21140069/404728796-f9c67884-e927-4b8f-8936-4c533f7eb637.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDIyODUsIm5iZiI6MTczOTIwMTk4NSwicGF0aCI6Ii8yMTE0MDA2OS80MDQ3Mjg3OTYtZjljNjc4ODQtZTkyNy00YjhmLTg5MzYtNGM1MzNmN2ViNjM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mzk0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5ZmQxOGU0YjliODFlZjYwOTcyYzVkMjBlNDUyMWRjZGRhNDA1NTJjOTFlYTgwNWQ5MzRkY2Q0MmE4M2JiZTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NvfkT5kTKfhDjeillMT_agUpiQNs_kbuhvy__ZnQocE)

hadoop@96c5b859c556:~$ mvn test -Dtest=org.apache.hadoop.fs.aliyun.oss.TestAliyunOSSFileSystemRenameFile -pl hadoop-tools/hadoop-aliyun1s
![image](https://private-user-images.githubusercontent.com/21140069/404728855-c91953d4-fc98-448c-83de-623f1f890c2b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDIyODUsIm5iZiI6MTczOTIwMTk4NSwicGF0aCI6Ii8yMTE0MDA2OS80MDQ3Mjg4NTUtYzkxOTUzZDQtZmM5OC00NDhjLTgzZGUtNjIzZjFmODkwYzJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mzk0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjYWM3YWQ2MzQwYmVkODRjMWJjNTg1YmY2ZjRmZmJiMDJlNjgyNjk4NjIxMjI1MTgwMjk1MDc5M2M0M2Q4MDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.b7LMte--LU58Tc_zaHJ49pKohEUOaqHQ6k5DLySpo1Y)

For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?