This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch cn-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/cn-site by this push:
new 82d8ce6d0e deploy: 403ccf537e1401c41941c83db3f138beb4302dad
82d8ce6d0e is described below
commit 82d8ce6d0e95594915ac40137f572983a3f405d5
Author: AlbumenJ <[email protected]>
AuthorDate: Thu Feb 23 12:19:36 2023 +0000
deploy: 403ccf537e1401c41941c83db3f138beb4302dad
---
sitemap.xml | 2 +-
zh-cn/docsv2.7/user/examples/delay-publish/index.html | 10 +++++-----
zh-cn/docsv2.7/user/examples/index.xml | 6 ++----
zh-cn/sitemap.xml | 2 +-
4 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/sitemap.xml b/sitemap.xml
index 725b3a1a8d..87c7ad3c71 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://cn.dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2023-02-23T20:14:13+08:00</lastmod></sitemap><sitemap><loc>https://cn.dubbo.apache.org/en/sitemap.xml</loc><lastmod>2023-02-23T11:00:42+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://cn.dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2023-02-23T20:14:01+08:00</lastmod></sitemap><sitemap><loc>https://cn.dubbo.apache.org/en/sitemap.xml</loc><lastmod>2023-02-23T11:00:42+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
diff --git a/zh-cn/docsv2.7/user/examples/delay-publish/index.html
b/zh-cn/docsv2.7/user/examples/delay-publish/index.html
index a6f2d87d22..209149c0cd 100644
--- a/zh-cn/docsv2.7/user/examples/delay-publish/index.html
+++ b/zh-cn/docsv2.7/user/examples/delay-publish/index.html
@@ -1,15 +1,15 @@
-<!doctype html><html lang=zh-cn class=no-js><head><meta name=ROBOTS
content="INDEX, FOLLOW"><link rel=canonical
href=https://cn.dubbo.apache.org/zh-cn/docsv2.7/user/examples/delay-publish/><script>var
_hmt=_hmt||[];(function(){var
e,t=document.createElement("script");t.src="https://hm.baidu.com/hm.js?3b78f49ba47181e4d998a66b689446e9",e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(t,e)})()</script><meta
charset=utf-8><meta name=viewport content="width=device-width, [...]
+<!doctype html><html lang=zh-cn class=no-js><head><meta name=ROBOTS
content="INDEX, FOLLOW"><link rel=canonical
href=https://cn.dubbo.apache.org/zh-cn/docsv2.7/user/examples/delay-publish/><script>var
_hmt=_hmt||[];(function(){var
e,t=document.createElement("script");t.src="https://hm.baidu.com/hm.js?3b78f49ba47181e4d998a66b689446e9",e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(t,e)})()</script><meta
charset=utf-8><meta name=viewport content="width=device-width, [...]
<link rel=preload
href=/scss/main.min.926378f2234eb1a2b24add8856e8dcfd9d7e1705d4f7faba9fa03fb33a98e04e.css
as=style><link
href=/scss/main.min.926378f2234eb1a2b24add8856e8dcfd9d7e1705d4f7faba9fa03fb33a98e04e.css
rel=stylesheet integrity><script src=/js/jquery-3.5.1.min.js
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin=anonymous></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@docsearch/css@3><meta
name=theme-color content="#326ce5"><link rel=stylesheet
href=/css/feature-states.css><meta name=description content="延迟暴露 Dubbo
服务"><meta property="og:description" content="延迟暴露 Dubbo 服务"><meta
name=twitter:description content="延迟暴露 Dubbo 服务"><meta property="og:url"
content="https://cn.dubbo.apache.org/zh-cn/docsv2.7/user/examples/delay-publish/"><meta
property="og:title" content="延迟暴露"><meta name=twitter:title [...]
<link href=/css/community.css rel=stylesheet><link href=/css/contactus.css
rel=stylesheet><script src=/js/script.js></script></head><body class="td-page
td-documentation"><header><nav class="js-navbar-scroll navbar navbar-expand
navbar-dark flex-column flex-md-row td-navbar" data-auto-burger=primary><a
class=navbar-brand href=/zh-cn/><span class=navbar-logo></span><span
class="text-uppercase font-weight-bold">Apache Dubbo</span></a><div
class="td-navbar-nav-scroll ml-md-auto" id=main_nav [...]
-<a href=#>Apache Dubbo 全新改版网站与文档</a> <em>正式上线!</em></h4><p>新版文档仍处于持续完善中,将涵盖
Dubbo3
及最新特性使用方式,我们计划在未来几个月内为用户提供最完善、易用的使用体验!<br>2023-02-21.</p></div></aside></div></header><div
class="container-fluid td-outer"><div class=td-main><div class="row
flex-md-nowrap"><div class="col-12 col-md-3 col-xl-2 td-sidebar
d-print-none"><div id=td-sidebar-menu class=td-sidebar__inner><div
id=content-mobile><form class="td-sidebar__search d-flex
align-items-center"><div id=docsearch></div><button class="btn [...]
+<a href=#>Apache Dubbo 全新改版网站与文档</a> <em>正式上线!</em></h4><p>新版文档仍处于持续完善中,将涵盖
Dubbo3
及最新特性使用方式,我们计划在未来几个月内为用户提供最完善、易用的使用体验!<br>2023-02-21.</p></div></aside></div></header><div
class="container-fluid td-outer"><div class=td-main><div class="row
flex-md-nowrap"><div class="col-12 col-md-3 col-xl-2 td-sidebar
d-print-none"><div id=td-sidebar-menu class=td-sidebar__inner><div
id=content-mobile><form class="td-sidebar__search d-flex
align-items-center"><div id=docsearch></div><button class="btn [...]
</span></span></code></pre></div><p>延迟 5 秒暴露服务</p><div class=highlight><pre
tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-xml data-lang=xml><span style=display:flex><span><span
style=color:#268bd2><dubbo:service</span> delay=<span
style=color:#2aa198>"5000"</span> <span style=color:#268bd2>/></span>
-</span></span></code></pre></div><h3 id=dubbo-265-及以后版本>Dubbo 2.6.5
及以后版本</h3><p>所有服务都将在 Spring 初始化完成后进行暴露,如果你不需要延迟暴露服务,无需配置 delay。</p><p>延迟 5
秒暴露服务</p><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-xml data-lang=xml><span style=display:flex><span><span
style=color:#268bd2><dubbo:service</span> delay=<span
style=color:#2aa198>"5000"</span> <span style=color:#268bd2>/></span>
+</span></span></code></pre></div><h2 id=dubbo-265-及以后版本>Dubbo 2.6.5
及以后版本</h2><p>所有服务都将在 Spring 初始化完成后进行暴露,如果你不需要延迟暴露服务,无需配置 delay。</p><p>延迟 5
秒暴露服务</p><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-xml data-lang=xml><span style=display:flex><span><span
style=color:#268bd2><dubbo:service</span> delay=<span
style=color:#2aa198>"5000"</span> <span style=color:#268bd2>/></span>
</span></span></code></pre></div><h2 id=spring-2x-初始化死锁问题>Spring 2.x
初始化死锁问题</h2><h3 id=触发条件>触发条件</h3><p>在 Spring 解析到 <code><dubbo:service
/></code> 时,就已经向外暴露了服务,而 Spring 还在接着初始化其它 Bean。如果这时有请求进来,并且服务的实现类里有调用
<code>applicationContext.getBean()</code> 的用法。</p><ol><li><p>请求线程的
applicationContext.getBean() 调用,先同步 singletonObjects 判断 Bean 是否存在,不存在就同步
beanDefinitionMap 进行初始化,并再次同步 singletonObjects 写入 Bean 实例缓存。</p><p><img
src=/imgs/user/lock-get-bean.jpg alt=deadlock></p></li><li><p>而 Spri [...]
-<button class="btn btn-primary mb-4
feedback--no">否</button></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled
[...]
+<button class="btn btn-primary mb-4
feedback--no">否</button></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled
[...]
<a
href="https://github.com/apache/dubbo-website/new/master/content/zh-cn/docsv2.7/user/examples/delay-publish.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter
[...]
<a
href="https://github.com/apache/dubbo-website/issues/new?title=%e5%bb%b6%e8%bf%9f%e6%9a%b4%e9%9c%b2"
target=_blank><i class="fab fa-github fa-fw"></i> 登记问题</a>
-<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas
fa-tasks fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a
href=#背景>背景</a></li><li><a href=#示例>示例</a><ul><li><a href=#dubbo-265-之前版本>Dubbo
2.6.5 之前版本</a></li><li><a href=#dubbo-265-及以后版本>Dubbo 2.6.5
及以后版本</a></li></ul></li><li><a href=#spring-2x-初始化死锁问题>Spring 2.x
初始化死锁问题</a><ul><li><a href=#触发条件>触发条件</a></li><li><a
href=#规避办法>规避办法</a></li></ul></li></ul></nav></div></div></div></div><footer
class [...]
+<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas
fa-tasks fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a
href=#dubbo-265-之前版本>Dubbo 2.6.5 之前版本</a></li><li><a
href=#dubbo-265-及以后版本>Dubbo 2.6.5 及以后版本</a></li><li><a
href=#spring-2x-初始化死锁问题>Spring 2.x 初始化死锁问题</a><ul><li><a
href=#触发条件>触发条件</a></li><li><a
href=#规避办法>规避办法</a></li></ul></li></ul></nav></div></div></div></div><footer
class="bg-dark py-5 row d-print-none"><div class="container-fluid mx [...]
<script src=/js/bootstrap.min.js
integrity=sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy
crossorigin=anonymous></script>
<script
src=/js/main.min.5d9bbf645e25d374ae8412eedf48df17eb2fa1f70fe6cb544c730a1d145d7bd1.js
integrity="sha256-XZu/ZF4l03SuhBLu30jfF+svofcP5stUTHMKHRRde9E="
crossorigin=anonymous></script>
<script src=https://cdn.jsdelivr.net/npm/@docsearch/js@3></script>
diff --git a/zh-cn/docsv2.7/user/examples/index.xml
b/zh-cn/docsv2.7/user/examples/index.xml
index 8c4328df49..4597167bfe 100644
--- a/zh-cn/docsv2.7/user/examples/index.xml
+++ b/zh-cn/docsv2.7/user/examples/index.xml
@@ -1688,15 +1688,13 @@ Dubbo 从 <code>2.2.0</code> 每个服务默认都会在本地暴露,无
</li>
</ol>
</div></description></item><item><title>Docsv2.7:
延迟暴露</title><link>https://cn.dubbo.apache.org/zh-cn/docsv2.7/user/examples/delay-publish/</link><pubDate>Mon,
01 Jan 0001 00:00:00
+0000</pubDate><guid>https://cn.dubbo.apache.org/zh-cn/docsv2.7/user/examples/delay-publish/</guid><description>
-<h2 id="背景">背景</h2>
<p>如果你的服务需要预热时间,比如初始化缓存,等待相关资源就位等,可以使用 delay 进行延迟暴露。我们在 Dubbo 2.6.5
版本中对服务延迟暴露逻辑进行了细微的调整,将需要延迟暴露(delay &gt; 0)服务的倒计时动作推迟到了 Spring 初始化完成后进行。你在使用
Dubbo 的过程中,并不会感知到此变化,因此请放心使用。</p>
-<h2 id="示例">示例</h2>
-<h3 id="dubbo-265-之前版本">Dubbo 2.6.5 之前版本</h3>
+<h2 id="dubbo-265-之前版本">Dubbo 2.6.5 之前版本</h2>
<p>延迟到 Spring 初始化完成后,再暴露服务<sup id="fnref:1"><a href="#fn:1"
class="footnote-ref" role="doc-noteref">1</a></sup></p>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-xml" data-lang="xml"><span
style="display:flex;"><span><span
style="color:#268bd2">&lt;dubbo:service</span> delay=<span
style="color:#2aa198">&#34;-1&#34;</span> <span
style="color:#268bd2">/&gt;</span>
</span></span></code></pre></div><p>延迟 5 秒暴露服务</p>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-xml" data-lang="xml"><span
style="display:flex;"><span><span
style="color:#268bd2">&lt;dubbo:service</span> delay=<span
style="color:#2aa198">&#34;5000&#34;</span> <span
style="color:#268bd2">/&gt;</span>
-</span></span></code></pre></div><h3
id="dubbo-265-及以后版本">Dubbo 2.6.5 及以后版本</h3>
+</span></span></code></pre></div><h2
id="dubbo-265-及以后版本">Dubbo 2.6.5 及以后版本</h2>
<p>所有服务都将在 Spring 初始化完成后进行暴露,如果你不需要延迟暴露服务,无需配置 delay。</p>
<p>延迟 5 秒暴露服务</p>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-xml" data-lang="xml"><span
style="display:flex;"><span><span
style="color:#268bd2">&lt;dubbo:service</span> delay=<span
style="color:#2aa198">&#34;5000&#34;</span> <span
style="color:#268bd2">/&gt;</span>
diff --git a/zh-cn/sitemap.xml b/zh-cn/sitemap.xml
index 97c7d22c02..a01c2b2640 100644
--- a/zh-cn/sitemap.xml
+++ b/zh-cn/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://cn.dubbo.apache.org/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-02-22T15:03:22+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://cn.dubbo.apache.org/zh-cn/docs3-v2/java-
[...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://cn.dubbo.apache.org/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-02-22T15:03:22+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://cn.dubbo.apache.org/zh-cn/docs3-v2/java-
[...]
\ No newline at end of file