sofastack / sofa-jarslink

Jarslink is a sofa ark plugin used to manage multi-application deployment
Apache License 2.0
3.04k stars 706 forks source link

动态修改模块不会有问题吗? #12

Closed kevin-wang001 closed 6 years ago

kevin-wang001 commented 6 years ago

动态修改模块的version,新旧模块切换时,会不会有负作用,不会影响正在执行的代码吗?

比如,旧容器里面的方法还没有执行完,此时去卸载旧模块会怎么样?

kiral commented 6 years ago

我们是先加载新的模块,加载成功后,再切流,最后再卸载旧的模块。

方腾飞/kiral Email:tengfei@ifeve.com weibo:@方腾飞-清英 Web:http://ifeve.com

On 13 Mar 2018, at 11:19 AM, 王志远 notifications@github.com wrote:

动态修改模块的version,新旧模块切换时,会不会有负作用,不会影响正在执行的代码吗?

比如,旧容器里面的方法还没有执行完,此时去卸载旧模块会怎么样?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alibaba/jarslink/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/ADpZWFuUx7AIMI7NCuu6Qk3fVc44Qunsks5tdzregaJpZM4SoBTJ.

kevin-wang001 commented 6 years ago

新的请求直接执行新模块的代码,旧模块正在执行的代码运行结束后才执行卸载动作,是这样吗?

kiral commented 6 years ago

是的

方腾飞/kiral Email:tengfei@ifeve.com weibo:@方腾飞-清英 Web:http://ifeve.com

On 13 Mar 2018, at 11:25 AM, 王志远 notifications@github.com wrote:

新的请求直接执行新模块的代码,旧模块正在执行的代码运行结束后才执行卸载动作,是这样吗?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alibaba/jarslink/issues/12#issuecomment-372534473, or mute the thread https://github.com/notifications/unsubscribe-auth/ADpZWPDicU5Q0cxIzypCOKLckKQijAAFks5tdzxBgaJpZM4SoBTJ.