Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

the gateway flow rules not work. spring-cloud-starter-alibaba-sentinel 2.2.1.RELEASE

Open new1943 opened this issue 6 years ago • 1 comments

Issue Description

Type: bug report

Describe what happened (or what feature you want)

Spring cloud gateway integration sentinel.

Project POM import spring-cloud-alibaba-dependencies 2.2.1.RELEASE version. Use default spring-cloud-starter-alibaba-sentinel 2.2.1.RELEASE version. the gateway flow rules not work. Change spring-cloud-starter-alibaba-sentinel to 2.2.0.RELEASE version. the rule is fine.

Describe what you expected to happen

Use default spring-cloud-starter-alibaba-sentinel 2.2.1.RELEASE version. the gateway flow rule is fine.

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

<!-- sentinel -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
        </dependency>

        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
        </dependency>

        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-datasource-nacos</artifactId>
        </dependency>

Modify:

<!-- sentinel -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
            <version>2.2.0.RELEASE</version>
        </dependency>

        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
        </dependency>

        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-datasource-nacos</artifactId>
        </dependency>

Tell us your environment

        <java.version>1.8</java.version>
        <spring.cloud.version>Hoxton.SR6</spring.cloud.version>
        <spring.cloud.alibaba.version>2.2.1.RELEASE</spring.cloud.alibaba.version>
        <spring.boot.version>2.3.0.RELEASE</spring.boot.version>

Anything else we need to know?

new1943 avatar Oct 14 '20 12:10 new1943

You may try the latest version of Sentinel and Spring Cloud Alibaba. You could also check your logs according to FAQ.

sczyh30 avatar Oct 20 '20 10:10 sczyh30