-
Notifications
You must be signed in to change notification settings - Fork 20
implement the expect timewait #196
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
base: main
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
PR Type
Enhancement
Description
Add wait_expect feature for polling query results until expected output
Implement parsing of wait_expect flag with interval and timeout parameters
Add retry logic in Executor to re-execute queries with configurable polling
Add getter method for actResult in SqlCommand class
Diagram Walkthrough
File Walkthrough
SqlCommand.java
Add wait_expect properties and actResult gettersrc/main/java/io/mo/cases/SqlCommand.java
waitExpect,waitExpectInterval,waitExpectTimeoutwith getters/settersgetActResult()for accessing actual resultExecutor.java
Implement wait_expect polling retry logicsrc/main/java/io/mo/db/Executor.java
run()method that polls query resultsuntil expected output matches or timeout
sets
genRS()method to wait before generating resultswhen wait_expect is enabled
ScriptParser.java
Add wait_expect flag parsing logicsrc/main/java/io/mo/util/ScriptParser.java
parseWaitExpectFlag()method to parse wait_expect flag withinterval and timeout parameters
processCommentLine()methodinterval/timeout constraints
COMMON.java
Add wait_expect flag constantsrc/main/java/io/mo/constant/COMMON.java
WAIT_EXPECT_FLAG = "-- @wait_expect"for flagrecognition
mo.yml
Update default database configurationmo.yml