You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tejaskriya (via GitHub)" <gi...@apache.org> on 2024/12/03 08:42:22 UTC
[PR] HDDS-11782. ozone debug ldb --with-keys defaults to false instead of true [ozone]
Tejaskriya opened a new pull request, #7521:
URL: https://github.com/apache/ozone/pull/7521
## What changes were proposed in this pull request?
The fallback value for --with-keys is set to true so that if the option is mentioned without a parameter, it falls back to true.
## What is the link to the Apache JIRA
[Please create an issue in ASF JIRA before opening a pull request, and you need to set the title of the pull](https://issues.apache.org/jira/browse/HDDS-11782)
## How was this patch tested?
Added acceptance tests in ozone-debug-ldb.robot
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11782. ozone debug ldb --with-keys defaults to false instead of true [ozone]
Posted by "errose28 (via GitHub)" <gi...@apache.org>.
errose28 merged PR #7521:
URL: https://github.com/apache/ozone/pull/7521
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11782. ozone debug ldb --with-keys defaults to false instead of true [ozone]
Posted by "Tejaskriya (via GitHub)" <gi...@apache.org>.
Tejaskriya commented on code in PR #7521:
URL: https://github.com/apache/ozone/pull/7521#discussion_r1868753085
##########
hadoop-ozone/dist/src/main/smoketest/debug/ozone-debug-ldb.robot:
##########
@@ -55,6 +55,14 @@ Test ozone debug ldb scan
Should contain ${output} testfile1
Should contain ${output} testfile2
Should contain ${output} testfile3
+ # test key is included with --with-keys
+ ${output1} = Execute ozone debug ldb --db=/data/metadata/om.db scan --cf=keyTable | jq '."\/cli-debug-volume\/cli-debug-bucket\/testfile1"'
+ ${output2} = Execute ozone debug ldb --db=/data/metadata/om.db scan --cf=keyTable --with-keys | jq '."\/cli-debug-volume\/cli-debug-bucket\/testfile1"'
Review Comment:
Thanks for the review, I have added this case too now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11782. ozone debug ldb --with-keys defaults to false instead of true [ozone]
Posted by "errose28 (via GitHub)" <gi...@apache.org>.
errose28 commented on code in PR #7521:
URL: https://github.com/apache/ozone/pull/7521#discussion_r1868483798
##########
hadoop-ozone/dist/src/main/smoketest/debug/ozone-debug-ldb.robot:
##########
@@ -55,6 +55,14 @@ Test ozone debug ldb scan
Should contain ${output} testfile1
Should contain ${output} testfile2
Should contain ${output} testfile3
+ # test key is included with --with-keys
+ ${output1} = Execute ozone debug ldb --db=/data/metadata/om.db scan --cf=keyTable | jq '."\/cli-debug-volume\/cli-debug-bucket\/testfile1"'
+ ${output2} = Execute ozone debug ldb --db=/data/metadata/om.db scan --cf=keyTable --with-keys | jq '."\/cli-debug-volume\/cli-debug-bucket\/testfile1"'
Review Comment:
The third equivalent option to test here is `--with-keys=true`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org