<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: windows7</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">1.&lt;dubbo:registry file="/dubbo/cache/demo.cache"&gt;/<br>
2. Startup application<br>
3. No files were generated in the corresponding directory</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">I want to generate cache files in the corresponding directory after the program starts</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">No files were generated in the corresponding directory</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.6</li>
<li>Operating System version: MACOS 10.15.X</li>
<li>Java version: 1.8.0_131</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>实现ExporterListener接口，并重载unexport方法</li>
<li>实现dubbo协议的接口</li>
<li>优雅停机，发现unexport方法并未被调用</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps？</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>
<p dir="auto">考虑的解决方式：</p>
<ol dir="auto">
<li>发现代码存在疑点，如图：org..apache.dubbo.registry.integration.RegistryProtocol.java:743<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16836018/85988169-3be87a80-ba21-11ea-9f0e-cfaf805a3a9b.png"><img src="https://user-images.githubusercontent.com/16836018/85988169-3be87a80-ba21-11ea-9f0e-cfaf805a3a9b.png" alt="WX20200629-155515" style="max-width: 100%;"></a></li>
<li>删除sleep代码或者减少sleep时间，应该能避免这个问题</li>
<li>并且org.apache.dubbo.common.config.ConfigurationUtils#getServerShutdownTimeout标记了//FIXME，说明这是遗留问题？</li>
</ol>