alibaba / alibaba/Sentinel

Flaky test in SentinelDubboConsumerFilterTest (sentinel-apache-dubbo-adapter module)

Open
#1,995 2 comments 0 reactions 0 assignees View on GitHub
area/test good first issue
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

Type: *bug report*

### Describe what happened (or what feature you want)

Flaky test in `com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilterTest`:

```
[INFO] Running com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilterTest
[ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.271 s <<< FAILURE! - in com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilterTest
[ERROR] testDegradeAsync(com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilterTest) Time elapsed: 0.069 s <<< FAILURE!
org.junit.ComparisonFailure: expected:<[fallback]> but was:<[normal]>
at com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilterTest.testDegradeAsync(SentinelDubboConsumerFilterTest.java:115)

[INFO] Running com.alibaba.csp.sentinel.adapter.dubbo.DubboUtilsTest
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 s - in com.alibaba.csp.sentinel.adapter.dubbo.DubboUtilsTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] SentinelDubboConsumerFilterTest.testDegradeAsync:115 expected:<[fallback]> but was:<[normal]>
```

Contributor guide

Open the contributing guide

Research direction

Start by running SentinelDubboConsumerFilterTest and inspect testDegradeAsync at line 115, where the failure reports normal instead of fallback. Trace the asynchronous test setup and rerun it repeatedly to identify the source of the flakiness; done means the test reliably passes with the expected fallback result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.