Kaynağa Gözat

Fix flowId offset bug in EnvoySentinelRuleConverter

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
master
Eric Zhao 5 yıl önce
ebeveyn
işleme
ff5c010a51
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      sentinel-cluster/sentinel-cluster-server-envoy-rls/src/main/java/com/alibaba/csp/sentinel/cluster/server/envoy/rls/rule/EnvoySentinelRuleConverter.java

+ 1
- 1
sentinel-cluster/sentinel-cluster-server-envoy-rls/src/main/java/com/alibaba/csp/sentinel/cluster/server/envoy/rls/rule/EnvoySentinelRuleConverter.java Dosyayı Görüntüle

@@ -69,7 +69,7 @@ public final class EnvoySentinelRuleConverter {
return -1L;
}
// Add offset to avoid negative ID.
return Integer.MAX_VALUE + key.hashCode();
return (long) Integer.MAX_VALUE + key.hashCode();
}

public static String generateKey(String domain, EnvoyRlsRule.ResourceDescriptor descriptor) {


Yükleniyor…
İptal
Kaydet