<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: centos6.8</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a>(version = "${service.version}", methods = {<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/method/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/method">@method</a>(name = "saveStuSegment", timeout = 30000, retries = -1)})</p>
<p dir="auto">consumer配置 method 配置retries 无效</p>
<p dir="auto">debug到下面这段代码，发现len还是3<br>
public Result doInvoke(Invocation invocation, final List&lt;Invoker&gt; invokers, LoadBalance loadbalance) throws RpcException {<br>
List&lt;Invoker&gt; copyInvokers = invokers;<br>
checkInvokers(copyInvokers, invocation);<br>
String methodName = RpcUtils.getMethodName(invocation);<br>
int len = getUrl().getMethodParameter(methodName, RETRIES_KEY, DEFAULT_RETRIES) + 1;<br>
if (len &lt;= 0) {<br>
len = 1;<br>
}</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: macOs</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">Step 1: Extend AuthFilter with order -20000.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Activate(group = CommonConstants.PROVIDER, order = -20000)
public class AuthFilter Filter {

    @Override
    public Result invoke(Invoker&lt;?&gt; invoker, Invocation inv) throws RpcException {
    }
}"><pre class="notranslate"><code class="notranslate">@Activate(group = CommonConstants.PROVIDER, order = -20000)
public class AuthFilter Filter {

    @Override
    public Result invoke(Invoker&lt;?&gt; invoker, Invocation inv) throws RpcException {
    }
}
</code></pre></div>
<p dir="auto">Step 2: We are not able to get RpcContext from the filter as ContextFilter cleared it with order -10000.</p>
<p dir="auto">We shoudl move ContextFilter to the lowest one, leave more range for the user's extension.</p>