-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the problem that publishing post always fails #3210
Fix the problem that publishing post always fails #3210
Conversation
Hi @minliacom, 有时间可以帮忙测试一下这个 PR 看发布文章失败的情况还会出现吗,我记得你之前经常遇到 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看起来工作良好,我试了 200 次。
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
我也没有复现出原来的问题 应该是可以了
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guqing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
#### What type of PR is this? /kind improvement /area core /milestone 2.3.x #### What this PR does / why we need it: 当开发模式启动时上传 JAR 运行插件会出现插件不存在的异常,但由于 PluginReconciler 中检查状态不一致后 return 在 optional 语句中只是让当前 optional 后面的代码停止执行,还会继续执行 optional 外面的代码导致 status 的异常信息不一致,进而 object equals 始终为 false 而无法让 reconciler 终止运行导致循环。 此 PR 调整了一下代码位置,进入 reconciler 时先进行检查,如果不满足则不执行后面的代码同时将信息写入 plugin.status 让用户知晓。 此问题是修改了 Reconciler 判断逻辑后出现的 #3210 ,因此不影响之前的代码只针对当前 2.3.x #### Special notes for your reviewer: how to test it? 1. 模拟一个插件找不到的错误场景例如以生产模式启动插件但配置 fixed-plugin 指定为插件项目目录 2. 启动 Halo 看 Reconciler 是否会一直在控制台输出日志 3. 卸载它能成功 /cc @halo-dev/sig-halo #### Does this PR introduce a user-facing change? ```release-note None ```
/cherry-pick release-2.2 |
@ruibaby: new pull request created: #3276 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is an automated cherry-pick of #3210 /assign ruibaby ```release-note 修复发布文章时经常出现错误的问题 ```
What type of PR is this?
/kind improvement
/area core
/milestone 2.3.x
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #2860
Special notes for your reviewer:
Please take some time to test publishing posts.
Does this PR introduce a user-facing change?