Skip to content
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

Duplicate entry 错误日志在InstanceConfig和Instance表 #5183

Closed
czd890 opened this issue Jul 25, 2024 · 6 comments
Closed

Duplicate entry 错误日志在InstanceConfig和Instance表 #5183

czd890 opened this issue Jul 25, 2024 · 6 comments
Labels

Comments

@czd890
Copy link
Contributor

czd890 commented Jul 25, 2024

在微服务使用场景下ip会被重复使用

Additional Details & Logs

  • Version
    • 2.2.0
  • Error logs
    • Duplicate entry '{id}-{app}-{namespace}' for key 'InstanceConfig.IX_UNIQUE_KEY'
    • Duplicate entry '{namespace}-{cluster}-{ip}-' for key 'Instance.IX_UNIQUE_KEY'
  • Configuration
  • Platform and Operating System
@nobodyiam
Copy link
Member

nobodyiam commented Jul 27, 2024

一台机器上有同一个 app 的多个实例?

@czd890
Copy link
Contributor Author

czd890 commented Jul 29, 2024

@nobodyiam 不是的, 主机/容器是aws ecs fargate.
没有检查代码, 根据异常的message, 我猜测是由同一个ip被多次重复使用导致的. 一个ip分配给A container, A 在terminate之后又分配给了B container(不同的appId).

@nobodyiam
Copy link
Member

看了下代码,应该是并发创建所致,对功能层面没影响

Copy link

stale bot commented Sep 6, 2024

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 6, 2024
Copy link

stale bot commented Sep 16, 2024

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Sep 16, 2024
@czd890
Copy link
Contributor Author

czd890 commented Sep 19, 2024

@nobodyiam 应该会影响在portal instances 列表功能把? 是不是需要fix下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants