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 @@ -42,4 +42,12 @@ start_docker_env

execute_robot_test ${OM} kinit.robot

echo "Creating test keys to verify om compaction"
om_container="ozonesecure-ha-om1-1"
docker exec "${om_container}" ozone freon ockg -n 100000 -t 20 -s 0 > /dev/null 2>&1
echo "Test keys created"

echo "Restarting OM after key creation to flush and generate sst files"
docker restart "${om_container}"

execute_robot_test ${OM} repair/om-compact.robot
8 changes: 1 addition & 7 deletions hadoop-ozone/dist/src/main/smoketest/repair/om-compact.robot
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ Test Timeout 10 minutes

*** Variables ***
${OM_DB_PATH} /data/metadata/om.db
${KEY_COUNT} 200000
${THREAD_COUNT} 20

*** Keywords ***
Create Test Keys
Execute ozone freon ockg -n ${KEY_COUNT} -t ${THREAD_COUNT} -s 0

Delete Test Keys
Execute ozone fs -rm -R -skipTrash ofs://${OM_SERVICE_ID}/vol1/bucket1

Expand All @@ -43,8 +38,7 @@ Compact OM DB Column Family

*** Test Cases ***
Testing OM DB Size Reduction After Compaction
[Setup] Create Test Keys

# Test keys are already created and flushed
# Delete keys to create tombstones that need compaction
Delete Test Keys

Expand Down