apache / apache/servicecomb-java-chassis

客户端超时之后,服务端依旧在进行业务处理,直到处理完业务,这个问题有啥解决方法嘛

Open
#3,663 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

现象为客户端请求1秒超时,然后服务端依旧在进行业务处理,如下图客户端设置超时时间为1S,服务端sleep 2s后进行业务处理(模拟长时间业务处理的情况),然后客户端超时之后服务端业务并未中断而是继续进行了下去
![image](https://user-images.githubusercontent.com/20596310/221343264-9e2d09ae-3684-498d-a8fa-9ea7ea1c70f2.png)

![image](https://user-images.githubusercontent.com/20596310/221343163-ed3a3c7b-bf30-4ded-81bc-27706a9dc42e.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by reproducing the attached scenario: set the client timeout to 1 second and make the server sleep for 2 seconds before processing; then trace whether the request cancellation reaches the server. Done should be defined as the server stopping or otherwise handling the abandoned request as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.