#2049 提交镜像,设置之前不存的标签可能会提交失败

Closed
created 2 years ago by ychao_1983 · 5 comments
提交镜像,设置之前不存的标签可能会提交失败
wangj commented 2 years ago
Owner
复现步骤: 1. 提交镜像,使用已有镜像tag,填好信息点击提交 2. 界面提示“镜像Tag已被使用,请修改镜像Tag。” 3. 修改镜像tag(未被使用过的),添加标签,再次点击提交 期望结果: 1.页面无报错 2.镜像提交成功 3.镜像列表有展示标签 实际结果: 1.Fail。界面提示“提交镜像失败,请稍后再试。” 2.Pass。 3.Fail。标签没显示,似乎添加失败。
wangj added the
bug
label 2 years ago
wangj added this to the V20220519 milestone 2 years ago
ychao_1983 was assigned by wangj 2 years ago
wangj commented 1 year ago
Owner
暂时无法复现,移出里程碑V20220519
wangj removed this from the V20220519 milestone 1 year ago
ychao_1983 added this to the V20220830 milestone 1 year ago
ychao_1983 commented 1 year ago
Owner
从日志看,是自增id的当前值比现有记录的id最大值小1, 新增记录时生成的ID和现有ID重复导致失败。 出现自增id的当前值比现有记录的id最大值小1的原因还没找到,还没找到复现方法。 规避解决办法:在新增记录之前,设置自增id的当前值为现有记录的id最大值。 测试方法:先使用之前有这个问题的的版本,在数据库将自增id设置为比现有记录的id最大值小1,提交新镜像,提交失败; 切换到0830分支版本,提交新镜像可以成功。
ychao_1983 added the
test
label 1 year ago
wangj was assigned by ychao_1983 1 year ago
wangj commented 1 year ago
Owner
提交失败的场景 没复现。
wangj commented 1 year ago
Owner
> 提交失败的场景 没复现。 环境问题。通过验证。
wangj closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.