Future: detect blocking calls in methods that return Futures
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 95
- Avg merge
- 1d 14m
- Merged PRs (30d)
- 6
Description
Motivation
https://twitter.com/leventov/status/1209782345756270592
https://cwiki.apache.org/confluence/display/KAFKA/KIP-286%3A+producer.send%28%29+should+not+block+on+metadata+update
Desired solution
It should print an error or raise an exception if a blocking call is executed from a method that returns Future.
Considered alternatives
Inspect code manually
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the issue's linked motivation and KIP-286, then review how BlockHound currently detects blocking calls. Define how methods returning Future should be identified and whether the result should be an error or exception; done requires a concrete design and tests for the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100