-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
difficulty/easydoris-futurejavaPull requests that update Java codePull requests that update Java code
Description
Search before asking
- I had searched in the issues and found no similar issues.
Description
Version: 3.0.3
Issue:
When executing the SHOW DATA command in different sessions, the rowcount value occasionally returns 0 inconsistently. Once a session initially succeeds or fails to retrieve the correct rowcount, subsequent executions in the same session persistently return the same result (either valid or 0). This indicates potential caching or session state propagation issues in FE nodes.
Key Observations:
- Behavior is inconsistent across sessions (some sessions return valid rowcount, others return
0). - Session-level persistence of the result (no updates after initial success/failure).
- Suspected link to FE master-slave synchronization or request forwarding logic.
Related Context
- Potential root causes:
- Metrics not properly synchronized between FE nodes.
SHOW DATArequests may not be forwarded to the master FE in some cases.
- Suggested fix: Override
getRedirectStatusinShowDataStmtto enforce forwarding to the master FE.
Steps to Reproduce
- Connect to a non-master FE node.
- Open two separate sessions (e.g., via different clients).
- Execute
SHOW DATA;in both sessions. - Observe inconsistent
rowcountvalues (0vs. valid count) across sessions. - Re-execute
SHOW DATAin the same sessions; results remain unchanged.
Expected Behavior
- Consistent
rowcountacross all sessions. - Fresh metrics should be fetched on each execution (no session-level caching).
Environment
- Cluster setup: 存算分离架构 (compute-storage separation).
- FE nodes: Master-slave deployment.
Proposed Action
- Verify if direct MySQL connection to the master FE resolves the issue.
- Review
ShowDataStmtrequest routing logic (getRedirectStatusoverride). - Ensure metrics are actively refreshed per request or synchronized across FEs.
Solution
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
difficulty/easydoris-futurejavaPull requests that update Java codePull requests that update Java code