-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-7121. Support namespace summaries (du, dist & counts) for legacy FS buckets #3746
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
2045713
legacy bucket code
xBis7 cffd42b
fix Test task with legacy buildOmKeyInfo parameters
xBis7 5ee5f71
getting only filename from NSSummary.dirname
xBis7 4b0d90b
trailing slash after dir name in robot test
xBis7 1605856
cleanup fixing issues
xBis7 8fe6629
cleanup
xBis7 e12587e
DirectoryEntityHandler findbugs error fix
xBis7 8954f5d
smoketest BUCKET_LAYOUT variable
xBis7 0f8fd74
smoketest bucket layout default value - get key without cache
xBis7 55a7464
clearing NSSummary table only once for the first NSSummaryTask that runs
xBis7 e7b1c8f
cleanup
xBis7 a991395
NSSummaryTask process, reprocess
xBis7 f064916
NSSummaryTaskUtils
xBis7 f21a1c4
cleanup
xBis7 e7721fc
cleanup
xBis7 a418bb7
NSSummaryTaskUtils -> NSSummaryTaskDbEventHandler
xBis7 faf145b
legacy reprocess skipping obs keys
xBis7 78e9817
robot test run with variable - filesystem paths set true
xBis7 1ff6c70
TestNSSummaryTask
xBis7 f358d05
NSSummaryTask cleanup
xBis7 1adac5a
checkstyle errors fixed
xBis7 ca09bfe
remove filesystem paths from ozonesecure
xBis7 23b1e45
docker directory for legacy smoketest
xBis7 2ab563c
simplifying TestNSSummaryTask - checking configuration for legacy tasks
xBis7 304b847
TestNSSummaryTask OBS bucket
xBis7 3a763ae
admin namespace summary message fixed
xBis7 387b1cc
NSSummaryTask reprocess executor service
xBis7 1f1a9bc
NSSummaryTask reprocess cleanup
xBis7 34e81f4
BucketHandler cleanup
xBis7 183bcb3
BucketHandler logic fix
xBis7 214682e
cleanup
xBis7 a7f3646
getBucketHandler LOG unsupported bucket layout
xBis7 9c7bff3
TestNSSummaryAdmin fix
xBis7 f71b672
enableFileSystemPaths call .getBoolean() instead of getting a string
xBis7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
20 changes: 20 additions & 0 deletions
20
hadoop-ozone/dist/src/main/compose/ozone-legacy-bucket/.env
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| HDDS_VERSION=${hdds.version} | ||
| OZONE_RUNNER_VERSION=${docker.ozone-runner.version} | ||
| OZONE_RUNNER_IMAGE=apache/ozone-runner | ||
| OZONE_OPTS= |
21 changes: 21 additions & 0 deletions
21
hadoop-ozone/dist/src/main/compose/ozone-legacy-bucket/README.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <!--- | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. See accompanying LICENSE file. | ||
| --> | ||
|
|
||
| # For Legacy Bucket Operations | ||
|
|
||
| For Legacy buckets, set `ozone.om.enable.filesystem.paths` to `true` for them to behave like FSO buckets, | ||
| otherwise Legacy buckets act like OBS buckets. | ||
|
|
||
| This is the same as `compose/ozone` but for testing operations that need `ozone.om.enable.filesystem.paths` | ||
| flag enabled. |
78 changes: 78 additions & 0 deletions
78
hadoop-ozone/dist/src/main/compose/ozone-legacy-bucket/docker-compose.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| version: "3.4" | ||
|
|
||
| # reusable fragments (see https://docs.docker.com/compose/compose-file/#extension-fields) | ||
| x-common-config: | ||
| &common-config | ||
| image: ${OZONE_RUNNER_IMAGE}:${OZONE_RUNNER_VERSION} | ||
| volumes: | ||
| - ../..:/opt/hadoop | ||
| env_file: | ||
| - docker-config | ||
|
|
||
| x-replication: | ||
| &replication | ||
| OZONE-SITE.XML_ozone.replication: ${OZONE_REPLICATION_FACTOR:-1} | ||
|
|
||
| services: | ||
| datanode: | ||
| <<: *common-config | ||
| ports: | ||
| - 9864 | ||
| - 9882 | ||
| environment: | ||
| <<: *replication | ||
| OZONE_OPTS: | ||
| command: ["ozone","datanode"] | ||
| om: | ||
| <<: *common-config | ||
| environment: | ||
| ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION | ||
| OZONE_OPTS: | ||
| <<: *replication | ||
| ports: | ||
| - 9874:9874 | ||
| - 9862:9862 | ||
| command: ["ozone","om"] | ||
| scm: | ||
| <<: *common-config | ||
| ports: | ||
| - 9876:9876 | ||
| - 9860:9860 | ||
| environment: | ||
| ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION | ||
| OZONE-SITE.XML_hdds.scm.safemode.min.datanode: ${OZONE_SAFEMODE_MIN_DATANODES:-1} | ||
| OZONE_OPTS: | ||
| <<: *replication | ||
| command: ["ozone","scm"] | ||
| s3g: | ||
| <<: *common-config | ||
| environment: | ||
| OZONE_OPTS: | ||
| <<: *replication | ||
| ports: | ||
| - 9878:9878 | ||
| command: ["ozone","s3g"] | ||
| recon: | ||
| <<: *common-config | ||
| ports: | ||
| - 9888:9888 | ||
| environment: | ||
| OZONE_OPTS: | ||
| <<: *replication | ||
| command: ["ozone","recon"] |
52 changes: 52 additions & 0 deletions
52
hadoop-ozone/dist/src/main/compose/ozone-legacy-bucket/docker-config
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| CORE-SITE.XML_fs.defaultFS=ofs://om | ||
| CORE-SITE.XML_fs.trash.interval=1 | ||
|
|
||
| OZONE-SITE.XML_ozone.om.address=om | ||
| OZONE-SITE.XML_ozone.om.enable.filesystem.paths=true | ||
| OZONE-SITE.XML_ozone.default.bucket.layout=LEGACY | ||
| OZONE-SITE.XML_ozone.om.http-address=om:9874 | ||
| OZONE-SITE.XML_ozone.scm.http-address=scm:9876 | ||
| OZONE-SITE.XML_ozone.scm.container.size=1GB | ||
| OZONE-SITE.XML_ozone.scm.block.size=1MB | ||
| OZONE-SITE.XML_ozone.scm.datanode.ratis.volume.free-space.min=10MB | ||
| OZONE-SITE.XML_ozone.scm.pipeline.creation.interval=30s | ||
| OZONE-SITE.XML_ozone.scm.pipeline.owner.container.count=1 | ||
| OZONE-SITE.XML_ozone.scm.names=scm | ||
| OZONE-SITE.XML_ozone.scm.datanode.id.dir=/data | ||
| OZONE-SITE.XML_ozone.scm.block.client.address=scm | ||
| OZONE-SITE.XML_ozone.metadata.dirs=/data/metadata | ||
| OZONE-SITE.XML_ozone.recon.db.dir=/data/metadata/recon | ||
| OZONE-SITE.XML_ozone.scm.client.address=scm | ||
| OZONE-SITE.XML_hdds.datanode.dir=/data/hdds | ||
| OZONE-SITE.XML_ozone.recon.address=recon:9891 | ||
| OZONE-SITE.XML_ozone.recon.http-address=0.0.0.0:9888 | ||
| OZONE-SITE.XML_ozone.recon.https-address=0.0.0.0:9889 | ||
| OZONE-SITE.XML_ozone.recon.om.snapshot.task.interval.delay=1m | ||
| OZONE-SITE.XML_ozone.datanode.pipeline.limit=1 | ||
| OZONE-SITE.XML_hdds.scmclient.max.retry.timeout=30s | ||
| OZONE-SITE.XML_hdds.container.report.interval=60s | ||
| OZONE-SITE.XML_ozone.om.s3.grpc.server_enabled=true | ||
| OZONE-SITE.XML_ozone.scm.stale.node.interval=30s | ||
| OZONE-SITE.XML_ozone.scm.dead.node.interval=45s | ||
| OZONE-SITE.XML_hdds.heartbeat.interval=5s | ||
|
|
||
| OZONE_CONF_DIR=/etc/hadoop | ||
| OZONE_LOG_DIR=/var/log/hadoop | ||
|
|
||
| no_proxy=om,scm,s3g,recon,kdc,localhost,127.0.0.1 |
35 changes: 35 additions & 0 deletions
35
hadoop-ozone/dist/src/main/compose/ozone-legacy-bucket/test.sh
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/usr/bin/env bash | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| #suite:unsecure | ||
|
|
||
| COMPOSE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
| export COMPOSE_DIR | ||
|
|
||
| export SECURITY_ENABLED=false | ||
| export OZONE_REPLICATION_FACTOR=3 | ||
|
|
||
| # shellcheck source=/dev/null | ||
| source "$COMPOSE_DIR/../testlib.sh" | ||
|
|
||
| start_docker_env 5 | ||
|
|
||
| execute_robot_test scm -v BUCKET_LAYOUT:LEGACY recon/recon-nssummary.robot | ||
|
|
||
| stop_docker_env | ||
|
|
||
| generate_report |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.