mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
fix bug of sentinel feign in finchley branch
This commit is contained in:
parent
893ca15bdd
commit
fb3f70d475
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
n=1
|
||||||
|
while [ $n -le 10 ]
|
||||||
|
do
|
||||||
|
echo `curl -s http://localhost:18083/divide-feign?a=1\&b=0`
|
||||||
|
let n++
|
||||||
|
done
|
@ -16,5 +16,11 @@
|
|||||||
"count": 20.0,
|
"count": 20.0,
|
||||||
"grade": 0,
|
"grade": 0,
|
||||||
"timeWindow": 30
|
"timeWindow": 30
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resource": "GET:http://service-provider/divide",
|
||||||
|
"count": 0.5,
|
||||||
|
"grade": 1,
|
||||||
|
"timeWindow": 30
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -128,7 +128,7 @@ public class SentinelInvocationHandler implements InvocationHandler {
|
|||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if (entry != null) {
|
if (entry != null) {
|
||||||
entry.exit();
|
entry.exit(1, args);
|
||||||
}
|
}
|
||||||
ContextUtil.exit();
|
ContextUtil.exit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user