Duplicate key errors when creating targets
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- java, postgresql
- Área
- backend-api-design
Línea de trabajo
Start at the POST /rest/v1/targets entry point and trace how concurrent target creation handles the unique constraint in PostgreSQL. Reproduce the issue with simultaneous requests for the same controller ID; done means the conflict is handled without leaving the transaction aborted or causing the reported CPU and memory spike.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
We're running Hawkbit version: 0.3.0 with Postgres database.
When multiple concurrent API requests arrive at the same time to create targets (POST /rest/v1/targets), Hawkbit fails when targets already exist and a SQL error is thrown instead fo handling the conflict (unique constraint violation error). Hawkbit does not recover and CPU/Memory usage spikes.
Database errors:
`[hawkbit:7513]ERROR: current transaction is aborted, commands ignored until end of transaction block
[hawkbit:7513]STATEMENT: SELECT 1
[hawkbit:7513]ERROR: duplicate key value violates unique constraint "uk_tenant_controller_id_sp_target"
[hawkbit:7513]DETAIL: Key (controller_id, tenant)=(AAAA-1111, DEFAULT) already exists.
[hawkbit:7513]STATEMENT: INSERT INTO sp_target (address, controller_id, created_at, created_by, description, install_date, last_modified_at, last_modified_by, last_target_query, name, optlock_revision, request_controller_attributes, sec_token, update_status, assigned_distribution_set, installed_distribution_set, target_type, tenant) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $ │
│ 12, $13, $14, $15, $16, $17, $18) `
spring.log does have some errors as well but don't think are related to target creation issue:
`2026-04-09 17:26:58.980 ERROR 1 --- [http-nio-8080-exec-187] o.a.c.c.C.[.[.[.[vaadin4SpringServlet] : Servlet.service() for servlet [vaadin4SpringServlet] in context with path [/hawkbit] threw exception [com.vaadin.server.ServiceException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe] with root cause
java.io.IOException: Broken pipe`
Thanks for your feedback.
- Lenguaje dominante
- Java
- Estrellas
- 601
- Forks
- 228
- Merge medio
- 15 h 48 min
- PR fusionados (30 d)
- 62
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eclipse-hawkbit/hawkbit
-
hawkbit-dmf-server 1.1.0 does not start: NoClassDefFoundError jakarta/servlet/ServletResponseAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
eclipse-hawkbit/hawkbit#3429 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Action status code catalog: name, description and severity for reported status codesPosiblemente ocupada @strailov la tomó hace 5 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
eclipse-hawkbit/hawkbit#3436 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Configurable automatic retries for failed actions (policy, backoff, rollout and auto-assignment support)Quizá libre de nuevo @strailov la tomó hace 86 días y no hay ningún pull request abierto. Abiertofeature request
eclipse-hawkbit/hawkbit#3251 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
IN_SYNC and rollout success can be recorded while the device still runs the old imageQuizá libre de nuevo @denislavprinov la tomó hace 118 días y no hay ningún pull request abierto. Abierto
eclipse-hawkbit/hawkbit#3185 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
eclipse-hawkbit/hawkbit#2993 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de eclipse-hawkbit/hawkbit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
EpssMirrorTask leaks temp file on failed download and has no request timeoutPosiblemente ocupada @someshhh-45 la tomó hoy. Abiertodefect in triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DependencyTrack/dependency-track#7845 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: WriteFileTool shows "Error reading file" snippet for relative paths when baseDir is setPosiblemente ocupada @ShryukGrandhi la tomó hoy. Abierto
Dificultad 2/5 Menos de una hora Aptitud para principiantes 86/100
agentscope-ai/agentscope-java#3917 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/maven-checkstyle-plugin#735 ·
Los mantenedores suelen responder en 1 día