Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test](build index) enhance build index with clone test case with retry logic #42348

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

airborne12
Copy link
Member

Proposed changes

Fix case error as below

Exception in fault_injection_p0/test_build_index_with_clone_fault.groovy(line 89):

ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "${tablet.TabletId}", "backend_id" = "${tablet.BackendId}", "status" = "drop");
"""
// create index on table
sql """ create index idx_k2 on ${tbl}(k2) using inverted """
sql """ build index idx_k2 on ${tbl} """
// sleep 5s to wait for the build index job report table is unstable
sleep(5000)
def show_build_index = sql_return_maparray("show build index where TableName = \"${tbl}\" ORDER BY JobId DESC LIMIT 1")
assertEquals('WAITING_TXN', show_build_index[0].State)
assertEquals('table is unstable', show_build_index[0].Msg)
^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^

def state = wait_for_last_build_index_on_table_finish(tbl, timeout)
assertEquals(state, "FINISHED")
} finally

{ GetDebugPoint().disableDebugPointForAllBEs("EngineCloneTask.wait_clone") }
}

Exception:
org.opentest4j.AssertionFailedError: expected: <table is unstable> but was: <>

@doris-robot
Copy link

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
Copy link
Member Author

run buildall

Copy link
Contributor

@qidaye qidaye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 23, 2024
Copy link
Contributor

PR approved by at least one committer and no changes requested.

Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@csun5285 csun5285 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@airborne12 airborne12 merged commit 9f9d4c2 into apache:master Oct 24, 2024
26 of 28 checks passed
@airborne12 airborne12 deleted the fix-case branch October 24, 2024 02:50
airborne12 added a commit to airborne12/apache-doris that referenced this pull request Oct 24, 2024
…ry logic (apache#42348)

## Proposed changes

Fix case error as below
```
Exception in fault_injection_p0/test_build_index_with_clone_fault.groovy(line 89):

ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "${tablet.TabletId}", "backend_id" = "${tablet.BackendId}", "status" = "drop");
"""
// create index on table
sql """ create index idx_k2 on ${tbl}(k2) using inverted """
sql """ build index idx_k2 on ${tbl} """
// sleep 5s to wait for the build index job report table is unstable
sleep(5000)
def show_build_index = sql_return_maparray("show build index where TableName = \"${tbl}\" ORDER BY JobId DESC LIMIT 1")
assertEquals('WAITING_TXN', show_build_index[0].State)
assertEquals('table is unstable', show_build_index[0].Msg)
^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^

def state = wait_for_last_build_index_on_table_finish(tbl, timeout)
assertEquals(state, "FINISHED")
} finally

{ GetDebugPoint().disableDebugPointForAllBEs("EngineCloneTask.wait_clone") }
}

Exception:
org.opentest4j.AssertionFailedError: expected: <table is unstable> but was: <>
```
airborne12 added a commit that referenced this pull request Oct 24, 2024
airborne12 added a commit that referenced this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.1.7-merged dev/3.0.3-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants