alibaba / alibaba/Sentinel

ProcessorSlot should be stateless

Open
#1,363 4 comments 0 reactions 0 assignees View on GitHub
kind/enhancement priority/high
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description
Now sentinel will create a new list for every resource because some of the slots are bound to specific resource.

### Describe what happened (or what feature you want)
Many slots will be created in memory.

### Describe what you expected to happen
They should be reusable.

### Anything else we need to know?
Related slots are `ClusterBuilderSlot` and `NodeSelectorSlot`.

Contributor guide

Open the contributing guide

Research direction

Start by reading the ProcessorSlot implementation and tracing how slots are created and bound to resources. Compare it with ClusterBuilderSlot and NodeSelectorSlot to identify the state that prevents reuse. Done means these related slots can be reused without creating resource-specific lists, with existing slot behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.