Duplicate entry 错误日志在InstanceConfig和Instance表
在微服务使用场景下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
一台机器上有同一个 app 的多个实例?
@nobodyiam 不是的, 主机/容器是aws ecs fargate. 没有检查代码, 根据异常的message, 我猜测是由同一个ip被多次重复使用导致的. 一个ip分配给A container, A 在terminate之后又分配给了B container(不同的appId).
看了下代码,应该是并发创建所致,对功能层面没影响
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.
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.
@nobodyiam 应该会影响在portal instances 列表功能把? 是不是需要fix下?