RED-9255: Fixed possible higher versions in entityLogs than in dictionaries or... #637
@ -79,7 +79,11 @@ public class EntityTypeImportService {
|
||||
typeId = returnedType.getTypeId();
|
||||
}
|
||||
|
||||
dictionaryPersistenceService.setVersion(typeId, type.getVersion());
|
||||
|
||||
// Setting dictionary version for an existing dossierTemplate can break the analysis dictionary logic,
|
||||
// when files have newer dictionary versions set in entity log. This will lead to endless analysis.
|
||||
// Do not call this:
|
||||
// dictionaryPersistenceService.setVersion(typeId, type.getVersion());
|
||||
|
||||
typeIdsAdded.add(typeId);
|
||||
|
||||
|
||||
@ -146,7 +146,7 @@ public class RulesPersistenceService {
|
||||
ruleSet.setDossierTemplateId(dossierTemplateId);
|
||||
ruleSet.setRuleFileType(ruleFileType.name());
|
||||
ruleSet.setValue(rules);
|
||||
ruleSet.setVersion(version);
|
||||
ruleSet.setVersion(ruleSet.getVersion() + 1); // Setting rules version in existing dossier template will break analysis, if there are files with higher versions in entity log. So only increment.
|
||||
ruleSet.setTimeoutDetected(timeoutDetected);
|
||||
}, () -> {
|
||||
RuleSetEntity ruleSet = new RuleSetEntity();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user