Skip to content

[Test](bloom filter) add retry and retry timeout for bloom filter test case #42609#42673

Merged
airborne12 merged 1 commit into
apache:branch-3.0from
airborne12:pick_42609_to_origin_branch-3.0
Oct 29, 2024
Merged

[Test](bloom filter) add retry and retry timeout for bloom filter test case #42609#42673
airborne12 merged 1 commit into
apache:branch-3.0from
airborne12:pick_42609_to_origin_branch-3.0

Conversation

@airborne12
Copy link
Copy Markdown
Member

cherry pick from #42609

…t case (apache#42609)

fix case error as below
```
Exception in bloom_filter_p0/test_bloom_filter_hit_with_renamed_column.groovy(line 154):

            } else {
                attempt++
                if (attempt < maxRetries) {
                    log.info("profileId is null, retrying after ${waitSeconds} second(s)... (Attempt ${attempt + 1}/${maxRetries})")
                    sleep(waitSeconds * 1000)
                }
            }
        }

        assertTrue(profileId != null, "Failed to retrieve profileId after ${maxRetries} attempts")
^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^^
        return profileId
    }

    def query = """select C_COMMENT_NEW from ${tableName} where C_COMMENT_NEW='OK'"""
    def profileId = getProfileIdWithRetry(query, 3, 1)
    log.info("profileId:{}", profileId)
    def profileDetail = httpGet("/rest/v1/query_profile/" + profileId)
    log.info("profileDetail:{}", profileDetail)
    assertTrue(profileDetail.contains("BloomFilterFiltered:&nbsp;&nbsp;15.0K&nbsp;&nbsp;(15000)"))

Exception:
org.opentest4j.AssertionFailedError: Failed to retrieve profileId after 3 attempts ==> expected: <true> but was: <false>
```
@airborne12
Copy link
Copy Markdown
Member Author

run buildall

@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@airborne12 airborne12 merged commit 1285339 into apache:branch-3.0 Oct 29, 2024
@airborne12 airborne12 deleted the pick_42609_to_origin_branch-3.0 branch October 29, 2024 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants