-
Notifications
You must be signed in to change notification settings - Fork 590
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
fix(sink): set query timeout for jdbc sink to avoid stuck #18430
Conversation
Better to make it a configurable |
The PR description mentions that this PR can fix #18372. Do we confirm that this can actually resolve the issue? If it is caused by a deadlock mentioned in pgJDBC, I suspect that setting the timeout may not work. It is okay to merge this PR though because the statement timeout may help in other cases. |
Since the stuck problem is not always reproducible, I didn't find a way to confirm it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
If we cannot confirm whether this PR can fix the issue, I suggest we keep the original issue opened until we rollout the fix and confirm it works.
How about cherry-picking it to 2.0 as well?
Sounds ok to me.
Yeah, I have labeled it. |
Just take a look at the code of pgjdbc. It seems that when this timeout is set, in every Btw, can users specify the statement timeout in the jdbc connection string, so that for previous version, they can also set the timeout in the jdbc connection string? |
From the doc, I think users of previous versions could add the |
…18434) Co-authored-by: StrikeW <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
jdbc.query.timeout
to allow user set the timeout for query, default to 10mins if not provided.related: #18372
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.