Skip to content

fix(market): return 409 when cleanup coordination is unavailable - #2159

Merged
yangkaa merged 1 commit into
mainfrom
fix/rain-3-coordination-409
Oct 25, 2026
Merged

yangkaa merged 1 commit into
mainfrom
fix/rain-3-coordination-409

Conversation

@rainbond-bot

Copy link
Copy Markdown
Collaborator

问题

发布本地市场应用事件时,清理协调不可用会落入 console/views/service_share.py:520 的 Python 2 .message 兜底访问并返回 500。

修改

  • 将 CoordinationUnavailable 转换为 HTTP 409 的 ServiceHandleException
  • 将同一分享模块的异常信息读取改为 str(e)
  • 添加协调不可用时返回 409 的回归测试

验证

  • 复现测试:ServiceShareEventPostTestCase.test_post_returns_409_when_cleanup_coordination_is_unavailable;修复前失败(AttributeError: 'CoordinationUnavailable' object has no attribute 'message'),修复后通过
  • 本地:改动文件的 flake8 未报告改动行问题(同文件存在未修改的历史 E501);make test-manifest-check ✅;python scripts/run_pytest.py . -- -q ✅

Multica: RAIN-3

Signed-off-by: rainbond-bot <344430272+rainbond-bot@users.noreply.github.com>
@rainbond-bot
rainbond-bot marked this pull request as ready for review October 25, 2026 12:52
@yangkaa
yangkaa merged commit 9ff4fc8 into main Oct 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants