Cache is not cleared after deletion of process definition
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Empieza reproduciendo la secuencia usando repositoryService.getProcessDefinition después de eliminar todas las versiones de process-definition con cascade false, seguido de getIdentityLinksForProcessDefinition. Rastrea las rutas de caché y de consulta a la base de datos del servicio de repositorio; se considera terminado cuando getProcessDefinition lanza FlowableObjectNotFoundException de forma consistente después de la eliminación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
In my app I use repository service to get all versions of a process definitions and I delete all of them (with cascade false).
When I try to get all the instances (including the ones that are related with a deleted process definition), I make a first call to get the process definition and a second call to get the identity links of the process definition. The first call returns the process definition (although is deleted) but the second one throws exception that it doesn't find it (which is the correct behavior).
Expected behavior
The repositoryService.getProcessDefinition should throw FlowableObjectNotFoundException.
Code
processDefinition = repositoryService.getProcessDefinition(workflowDefinitionId); List<IdentityLink> candidates = repositoryService.getIdentityLinksForProcessDefinition(processDefinition.getId());
Additional context
Flowable version: 7.1.0
Spring boot
Additional comments
It seems that the repositoryService.getProcessDefinition uses cache so I suppose that it fetches the process definition from here while repositoryService.getIdentityLinksForProcessDefinition(processDefinition.getId()); searches at the database. Why the cache is not cleared after deleting the process definition? The strange this is that it works sometimes and some other times it doesn't.
- Lenguaje dominante
- Java
- Estrellas
- 9.5k
- Forks
- 2.9k
- Merge medio
- 7 h 8 min
- PR fusionados (30 d)
- 2
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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 flowable/flowable-engine
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
flowable/flowable-engine#4268 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
flowable/flowable-engine#4272 ·
-
Item reference is invalid - when relying on target namespace, or when using explicit namespace Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
flowable/flowable-engine#4269 · 1 comentario ·
-
SQL injection in /management/tables/{tableName}/data via orderAscendingColumn/orderDescendingColumn Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
flowable/flowable-engine#4260 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
flowable/flowable-engine#4216 ·
Todos los issues de flowable/flowable-engine
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
infinispan/infinispan#18150 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
opensearch-project/k-NN#3597 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100