<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.6-snapshot</li>
</ul>
<p dir="auto">files:<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/apache/dubbo/blob/a9a69eac67ded8663fb96e940f07eacc8c0f72b5/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java#L359">dubbo/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 359
      in
      <a data-pjax="true" class="commit-tease-sha" href="/apache/dubbo/commit/a9a69eac67ded8663fb96e940f07eacc8c0f72b5">a9a69ea</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L359" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="359"></td>
          <td id="LC359" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-s1">methods</span> != <span class="pl-c1">null</span> &amp;&amp; <span class="pl-s1">methods</span>.<span class="pl-s1">length</span> &gt; <span class="pl-c1">0</span>) { </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/apache/dubbo/blob/a9a69eac67ded8663fb96e940f07eacc8c0f72b5/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java#L631">dubbo/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 631
      in
      <a data-pjax="true" class="commit-tease-sha" href="/apache/dubbo/commit/a9a69eac67ded8663fb96e940f07eacc8c0f72b5">a9a69ea</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L631" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="631"></td>
          <td id="LC631" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-s1">portToBind</span> == <span class="pl-c1">null</span> || <span class="pl-s1">portToBind</span> &lt;= <span class="pl-c1">0</span>) { </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">This check is useless, always is non-null.</p>
<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.1</li>
<li>Operating System version: windows10</li>
<li>Java version: jdk1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>consumer set retries 5</li>
<li>connection over executes on provider</li>
<li>provider throw RpcException</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">consumer will retry 5 times</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">when provider throw RpcException，FailoverClusterInvoker  receive a AppReponse with a RpcException in it，and FailoverClusterInvoker can not catch the RpcException and do not retry；</p>