apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Duplicate entry 错误日志在InstanceConfig和Instance表

Open czd890 opened this issue 1 year ago • 3 comments

在微服务使用场景下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

czd890 avatar Jul 25 '24 01:07 czd890

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

nobodyiam avatar Jul 27 '24 11:07 nobodyiam

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

czd890 avatar Jul 29 '24 06:07 czd890

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

nobodyiam avatar Aug 03 '24 14:08 nobodyiam

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[bot] avatar Sep 06 '24 00:09 stale[bot]

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[bot] avatar Sep 16 '24 01:09 stale[bot]

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

czd890 avatar Sep 19 '24 01:09 czd890