[Bug]: Worker stops picking up tasks for duplicate key
- Linguagem predominante
- Go
- Estrelas
- 1.2k
- Forks
- 69
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
**Describe the bug**
Monitor had timeout and has not reported in multiple days
**Database**
- postgresql
**To Reproduce**
Not sure how to reproduce looks like there was some sort of error in Redis/Postgres and now a duplicate key exists and the worker is no longer picking up from the queue to check the site
**Expected behavior**
The system should be able to recover even with duplicate key and continue health checks
**Screenshots**
^ Can see that the worker stopped 3 days ago after reporting DOWN
Producer logs showing duplicate entry in the Queue service
Ingester showing both duplicate in queue service and a pg error
Worker successfully picking up one monitor but not the one that is erroring out
**Additional context**
This is running inside Kubernetes using a Postgresql and Redis from Bitnami but I would imagine this scenario is not related and seems to be more of an issue with inserting / retrieving information from Redis/Postgresql
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
O issue envolve um sistema de fila de workers usando Redis e PostgreSQL. Examine o serviço de fila e o código do worker para lidar com chaves duplicadas e erros de banco de dados. Analise os logs do ingester e do produtor para entender o fluxo de falha. A correção provavelmente requer a modificação da lógica de tratamento de erros e recuperação nos componentes de processamento da fila.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- go, kubernetes, postgresql, redis
- Domínio
- backend, databases, devops
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100