jianliu commented on pull request #11587:
URL: https://github.com/apache/shardingsphere/pull/11587#issuecomment-898322441
The code
```
public void waitUntilConnectionRelease() {
while (isUsing) {
resourceLock.doAwait();
}
}
```
```
public void doAwait() {
lock.lock();
try {
condition.await(DEFAULT_TIMEOUT_MILLISECONDS,
TimeUnit.MILLISECONDS);
} finally {
lock.unlock();
}
}
```
await has a timeout which default is 200ms,so this is not always ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]