-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-4040. [OFS] BasicRootedOzoneFileSystem to support batchDelete #1286
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
Conversation
Change-Id: I263cfbad1f552b3c505f5745975173f120e036e3
Change-Id: I5213fc1267f8cdd3c40817f5913c565caa202c8e
...one/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestRootedOzoneFileSystem.java
Show resolved
Hide resolved
…_PATHS. Change-Id: I3752de9a7f2167c9b7687971c8426db9368796b2
|
It seems adding parameterized test for After the parameterization commit it is timing out at over 45min: |
Do we need to increase time out in test? |
…to 1000s. Not sure if this would have side effects. Have a try.
Yep. But the timeout in this case seems to be imposed at a higher level (maybe |
Change-Id: Ic8ed3460d7cee5cc3c732175643123bfc84ae7a9
|
I ran Another observation. On the GH workflow run, without parameterization we were spending around 9.5min for With parameterization we can expect it to be spending over 1100s (18min) on this one test suite.. which is not good. We will need to reduce the run time of the test suite. Probably should do this in another jira, with something like HDDS-2833 by reducing the overhead of starting up & tearing down the mini cluster. @bharatviswa504 Now that we can prove the tests work with both |
Looks like |
This reverts commit 5865c2f. Change-Id: I96c1777aa753be44bd57564e9af1a660589152d1
Change-Id: I4eb115689bb9b99d44438b2b79e17a2cc93b4488
Thanks! I'm increasing it further to check. |
Can we use @BeforeClass for starting MiniOzoneCluster instead for each test, that would save time. |
Good idea. Just have to make everything static. Let me try. |
bharatviswa504
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I have one minor comment, and also test change to make use of @BeforeClass.
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Show resolved
Hide resolved
Change-Id: I0c6215ad65973de3ee6099618be830e2e65549c3
xiaoyuyao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, a few minor comments added inline.
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
...zone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java
Show resolved
Hide resolved
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
…ting the operation is successful. Change-Id: I6d9ddc92299776e9f2aa07ab57c37b0f5a6af7a1
Change-Id: I3e92d159c664eeea4c54db06a4bb8a8ce7959306
Change-Id: I9e28debbd9be021b2e4dac46ab9d811ad41376b8
Change-Id: I94531e4e57f11bd2cf3e8f9c956725f708c14ec4
Change-Id: I7174e0841c280ea8d9f41e1cdc6b67f76b0e0ad1
|
Thanks @smengcl for the update. Let's merge it by EOD today if there is no additional comments. |
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @smengcl for implementing this. The change works fine:
TRACE ozone.BasicRootedOzoneFileSystem: Iterating path: ofs://om/fstest1/bucket1-ofs/test/ofs/dir
TRACE ozone.BasicRootedOzoneFileSystem: Iterating directory: fstest1/bucket1-ofs/test/ofs/dir/
TRACE ozone.BasicRootedOzoneFileSystem: iterating key path: fstest1/bucket1-ofs/test/ofs/dir/
TRACE ozone.BasicRootedOzoneFileSystem: iterating key path: fstest1/bucket1-ofs/test/ofs/dir/MOVED.TXT
TRACE ozone.BasicRootedOzoneFileSystem: iterating key path: fstest1/bucket1-ofs/test/ofs/dir/PUTFILE.txt
TRACE ozone.BasicRootedOzoneFileSystem: iterating key path: fstest1/bucket1-ofs/test/ofs/dir/TOUCHFILE-ofs.txt
TRACE ozone.BasicRootedOzoneFileSystem: Deleting keys: [fstest1/bucket1-ofs/test/ofs/dir/, fstest1/bucket1-ofs/test/ofs/dir/MOVED.TXT, fstest1/bucket1-ofs/test/ofs/dir/PUTFILE.txt, fstest1/bucket1-ofs/test/ofs/dir/TOUCHFILE-ofs.txt]
...one/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneFileSystem.java
Outdated
Show resolved
Hide resolved
| @Deprecated | ||
| protected void incrementCounter(Statistic objectsRead) { | ||
| //noop: Use OzoneClientAdapterImpl which supports statistics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @Deprecated | |
| protected void incrementCounter(Statistic objectsRead) { | |
| //noop: Use OzoneClientAdapterImpl which supports statistics. | |
| protected void incrementCounter(Statistic objectsRead) { | |
| incrementCounter(objectsRead, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed the old method from all Impls. Only kept it in BasicOzoneFileSystem/BasicRootedOzoneFileSystem.
...zone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java
Outdated
Show resolved
Hide resolved
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
Change-Id: I3cd47aed4e4c281bbbfddb3a865826d59fdd1449
2. Overload incrementCounter only in BasicOzoneFileSystem / BasicRootedOzoneFileSystem, where the old method calls the new one, minimizing the code change. Change-Id: I0606951cac16b16118ff775fbda05c36f5f4155b
|
Thanks for reviewing the patch @adoroszlai . I have made some changes accordingly. Please take another look. Thanks! |
|
Thanks @smengcl for updating the patch. |
|
Thanks @smengcl for the contribution, @bharatviswa504 and @xiaoyuyao for the reviews. |
* master: (28 commits) HDDS-4037. Incorrect container numberOfKeys and usedBytes in SCM after key deletion (apache#1295) HDDS-3232. Include the byteman scripts in the distribution tar file (apache#1309) HDDS-4095. Byteman script to debug HCFS performance (apache#1311) HDDS-4057. Failed acceptance test missing from bundle (apache#1283) HDDS-4040. [OFS] BasicRootedOzoneFileSystem to support batchDelete (apache#1286) HDDS-4061. Pending delete blocks are not always included in #BLOCKCOUNT metadata (apache#1288) HDDS-4067. Implement toString for OMTransactionInfo (apache#1300) HDDS-3878. Make OMHA serviceID optional if one (but only one) is defined in the config (apache#1149) HDDS-3833. Use Pipeline choose policy to choose pipeline from exist pipeline list (apache#1096) HDDS-3979. Make bufferSize configurable for stream copy (apache#1212) HDDS-4048. Show more information while SCM version info mismatch (apache#1278) HDDS-4078. Use HDDS InterfaceAudience/Stability annotations (apache#1302) HDDS-4034. Add Unit Test for HadoopNestedDirGenerator. (apache#1266) HDDS-4076. Translate CSI.md into Chinese (apache#1299) HDDS-4046. Extensible subcommands for CLI applications (apache#1276) HDDS-4051. Remove whitelist/blacklist terminology from Ozone (apache#1306) HDDS-4055. Cleanup GitHub workflow (apache#1282) HDDS-4042. Update documentation for the GA release (apache#1269) HDDS-4066. Add core-site.xml to intellij configuration (apache#1292) HDDS-4073. Remove leftover robot.robot (apache#1297) ...
What changes were proposed in this pull request?
This Jira is to use deleteObjects in OFS delete now that HDDS-3286 is committed.
Currently when ozone.om.enable.filesystem.paths is enabled it normalizes the path, so using deleteKey for delete directory will fail.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4040
How was this patch tested?
Added
testFileDelete- mostly copied from o3fs test.