Skip to content
Open
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 @@ -121,9 +121,6 @@ suite("test_compaction_profile_action", "p0") {
// Verify field values are reasonable
assertTrue(profile.compaction_id > 0, "compaction_id should be positive")
assertTrue(profile.cost_time_ms >= 0, "cost_time_ms should be non-negative")
assertTrue(profile.input_data_size > 0, "input_data_size should be positive")
assertTrue(profile.input_rowsets_count > 0, "input_rowsets_count should be positive")
assertTrue(profile.input_row_num > 0, "input_row_num should be positive")

// Step 6: Test top_n filter - ?top_n=1 returns exactly 1 record
def (code2, out2, err2) = curl("GET", baseUrl + "?top_n=1")
Expand All @@ -145,6 +142,12 @@ suite("test_compaction_profile_action", "p0") {
"All returned profiles should match the requested tablet_id")
}

// Verify field values using profile from our specific tablet
def tabletProfile = json3.compaction_profiles[0]
assertTrue(tabletProfile.input_data_size > 0, "input_data_size should be positive")
assertTrue(tabletProfile.input_rowsets_count > 0, "input_rowsets_count should be positive")
assertTrue(tabletProfile.input_row_num > 0, "input_row_num should be positive")

// Step 8: Test compact_type filter - ?compact_type=cumulative
def (code4, out4, err4) = curl("GET", baseUrl + "?compact_type=cumulative")
logger.info("compact_type filter query: code=" + code4 + ", out=" + out4)
Expand Down
Loading