Skip to content

Spring WebFlux下相同Pattern不同的Path参数会被视为不同的资源名,导致容易达到SlotChain的上限 #2627

@icodening

Description

@icodening

Issue Description

Spring WebFlux下使用Sentinel,没有对带有Path参数的路径做归类统一,每个不同的Path参数将会被当成不同的资源,极其容易将6000个SlotChain上限给打满,进而使得后续资源无法正常使用相应的治理功能

Type: bug report

Describe what you expected to happen

可以对相同Pattern且包含Path参数的路径视为同一个资源

How to reproduce it (as minimally and precisely as possible)

  1. master分支上的Sentinel
  2. 使用Spring WebFlux adapter
  3. 在WebFlux应用中构造带有path参数的端点

Tell us your environment

1.最新版Sentinel
2.JDK 1.8

Anything else we need to know?

个人测试截图如下:
dashboard:
image
RouterFunction类型包含Path参数的端点:
image
RequestMappingHandlerMapping类型包含Path参数的端点:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/integrationsIssues or PRs related to integrations with open-source componentskind/enhancementCategory issues or prs related to enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions