Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Write keys

*** Test Cases ***
Test ozone debug replicas verify checksums
${output} = Execute ozone debug replicas verify --checksums --block-existence --container-state o3://${OM_SERVICE_ID}/${VOLUME}/${BUCKET}/${TESTFILE} --output-dir ${TEMP_DIR}
${output} = Execute ozone debug replicas verify --checksums --block-existence --container-state o3://${OM_SERVICE_ID}/${VOLUME}/${BUCKET}/${TESTFILE}
${json} = Evaluate json.loads('''${output}''') json

# 'keys' array should be empty if all keys and their replicas passed checksum verification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ${OM_SERVICE_ID} %{OM_SERVICE_ID}

*** Keywords ***
Execute replicas verify checksums CLI tool
Execute ozone debug -Dozone.network.topology.aware.read=true replicas verify --checksums --output-dir ${TEMP_DIR} o3://${OM_SERVICE_ID}/${VOLUME}/${BUCKET}/${TESTFILE}
Execute ozone debug -Dozone.network.topology.aware.read=true replicas verify --checksums o3://${OM_SERVICE_ID}/${VOLUME}/${BUCKET}/${TESTFILE}
${directory} = Execute ls -d ${TEMP_DIR}/${VOLUME}_${BUCKET}_${TESTFILE}_*/ | tail -n 1
Directory Should Exist ${directory}
File Should Exist ${directory}/${TESTFILE}_manifest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void testReplicasVerifyCmd(boolean isEcKey) throws Exception {
getSetConfStringFromConf(OMConfigKeys.OZONE_OM_ADDRESS_KEY),
getSetConfStringFromConf(ScmConfigKeys.OZONE_SCM_CLIENT_ADDRESS_KEY),
"replicas", "verify", "--checksums", "--block-existence", "--container-state", fullKeyPath,
"--output-dir", "/"//, "--all-results"
//, "--all-results"
};

int exitCode = ozoneDebugShell.execute(args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ public class ReplicasVerify extends Handler {
description = Shell.OZONE_URI_DESCRIPTION)
private String uri;

@CommandLine.Option(names = {"-o", "--output-dir"},
description = "Destination directory to save the generated output.",
required = true)
private String outputDir;

@CommandLine.Option(names = {"--all-results"},
description = "Print results for all passing and failing keys")
private boolean allResults;
Expand Down
Loading