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

The interrupted status should return to caller #2502

Closed
Oliverwqcwrw opened this issue Apr 1, 2022 · 1 comment
Closed

The interrupted status should return to caller #2502

Oliverwqcwrw opened this issue Apr 1, 2022 · 1 comment

Comments

@Oliverwqcwrw
Copy link
Contributor

MyBatis version

3.5.9

Database vendor and version

Test case or example project

Steps to reproduce

In org.apache.ibatis.datasource.pooled.PooledDataSource#popConnection

try {
if (!countedWait) {
state.hadToWaitCount++;
countedWait = true;
}
if (log.isDebugEnabled()) {
log.debug("Waiting as long as " + poolTimeToWait + " milliseconds for connection.");
}
long wt = System.currentTimeMillis();
state.wait(poolTimeToWait);
state.accumulatedWaitTime += System.currentTimeMillis() - wt;
} catch (InterruptedException e) {
break;
}

I think it should not break directly,It needs to return the interrupt status to its caller

Expected result

Actual result

@hazendaz
Copy link
Member

hazendaz commented Apr 1, 2022

closed via #2503

@hazendaz hazendaz closed this as completed Apr 1, 2022
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

No branches or pull requests

2 participants