spring-cloud-tencent icon indicating copy to clipboard operation
spring-cloud-tencent copied to clipboard

北极星自定义规则顺序不生效

Open itfsw opened this issue 1 year ago • 2 comments

Describe the bug

  1. 在北极星中新增了两条规则,设置优先级;
  2. gateway项目中,类RuleBasedRouter的getRuleFilteredInstances方法过滤规则时,for (RoutingProto.Route route : routes) {中的routes没有按照优先级排序;
  3. 在北极星中调整优先级后重新进入断点顺序不变; 导致顺序需要忽略的规则没有过滤掉,这个顺序好像一直是创建规则的时间来排的。

SCT版本:1.13.1-2022.0.4 polaris-server: v1.18.0 polaris-console: v1.15.0

To Reproduce Steps to reproduce the behavior.

Expected behavior A clear and concise description of what you expected to happen.

Environment

  • Version: [e.g. v1.0.0]
  • OS: [e.g. CentOS8]

Additional context Add any other context about the problem here.

itfsw avatar Mar 20 '24 10:03 itfsw

目前是服务端排好序后下发规则。因此SDK没有再去排序。可以通过HTTP接口查看服务端获取到的路由规则,是否按照优先级排序。

SkyeBeFreeman avatar Aug 21 '24 09:08 SkyeBeFreeman

polaris-server: v1.18.1 目前这个版本没有发现问题

itfsw avatar Aug 23 '24 01:08 itfsw