You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "swuferhong (via GitHub)" <gi...@apache.org> on 2025/09/28 02:41:51 UTC
[I] Unstable test ServerConnectionTest#testConnectionClose() [fluss]
swuferhong opened a new issue, #1765:
URL: https://github.com/apache/fluss/issues/1765
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
### Fluss version
main (development)
### Please describe the bug 🐞
https://github.com/apache/fluss/actions/runs/18068151183/job/51413823916?pr=1736
<img width="2556" height="1130" alt="Image" src="https://github.com/user-attachments/assets/24c47543-a0fe-4cc7-ab55-281dc57012c1" />
### Solution
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unstable test ServerConnectionTest#testConnectionClose() [fluss]
Posted by "swuferhong (via GitHub)" <gi...@apache.org>.
swuferhong commented on issue #1765:
URL: https://github.com/apache/fluss/issues/1765#issuecomment-3342211186
cc @loserwang1024 @wuchong
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unstable test ServerConnectionTest#testConnectionClose() [fluss]
Posted by "loserwang1024 (via GitHub)" <gi...@apache.org>.
loserwang1024 commented on issue #1765:
URL: https://github.com/apache/fluss/issues/1765#issuecomment-3344732586
There is no lock in org.apache.fluss.rpc.netty.client.ServerConnection.ResponseCallback#onRequestResult
```java
@Override
public void onRequestResult(int requestId, ApiMessage response) {
InflightRequest request = inflightRequests.remove(requestId);
if (request != null && !request.responseFuture.isDone()) {
connectionMetricGroup.updateMetricsAfterGetResponse(
ApiKeys.forId(request.apiKey),
request.requestStartTime,
response.totalSize());
request.responseFuture.complete(response);
}
}
```
That mean it will be conflicted with org.apache.fluss.rpc.netty.client.ServerConnection#close(java.lang.Throwable). Even thougn org.apache.fluss.rpc.netty.client.ServerConnection#close(java.lang.Throwable) has lock.
```java
private CompletableFuture<Void> close(Throwable cause) {
synchronized (lock) {
// notify all the inflight requests
for (int requestId : inflightRequests.keySet()) {
InflightRequest request = inflightRequests.remove(requestId);
request.responseFuture.completeExceptionally(requestCause);
}
}
```
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unstable test ServerConnectionTest#testConnectionClose() [fluss]
Posted by "loserwang1024 (via GitHub)" <gi...@apache.org>.
loserwang1024 closed issue #1765: Unstable test ServerConnectionTest#testConnectionClose()
URL: https://github.com/apache/fluss/issues/1765
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org