Bugfix
Detail
#27131
IllegalStateException: Can not set max validity '657' to frozen chain
The following error occurred in a build of a TL 6.10 application:
Caused by: java.lang.IllegalStateException: Can not set max validity '657' to frozen chain: com.top_logic.knowledge.service.db2.SimpleKBCacheValue@10a3e26b at com.top_logic.knowledge.service.db2.ValidityChainImpl.updateMaxValidity(ValidityChainImpl.java:43) at com.top_logic.knowledge.service.db2.AbstractKBCache.newCache(AbstractKBCache.java:292) at com.top_logic.knowledge.service.db2.AbstractKBCache.handleUpdateEvent(AbstractKBCache.java:272) at com.top_logic.knowledge.service.db2.AbstractKBCache$2.internalUpdate(AbstractKBCache.java:223) at com.top_logic.knowledge.service.db2.AbstractKBCache$2.internalUpdate(AbstractKBCache.java:219) at com.top_logic.knowledge.service.db2.AbstractWeakUpdateListener.notifyUpdate(AbstractWeakUpdateListener.java:52) at com.top_logic.knowledge.service.db2.DBKnowledgeBase.fireUpdateHighPrio(DBKnowledgeBase.java:2981) at com.top_logic.knowledge.service.db2.DBKnowledgeBase.endCommit(DBKnowledgeBase.java:4208) at com.top_logic.knowledge.service.db2.DefaultDBContext.kbEndCommit(DefaultDBContext.java:1067) at com.top_logic.knowledge.service.db2.DefaultDBContext.commitTransaction(DefaultDBContext.java:794) at com.top_logic.knowledge.service.db2.TransactionImpl.internalCommit(TransactionImpl.java:163) at com.top_logic.knowledge.service.AbstractTransaction.commit(AbstractTransaction.java:71)
Locally, the test runs without this problem. The problem can therefore probably not be easily reproduced. Whether it occurs again on the build server with further builds is still being checked.
Code migration
UpdateListeners are not allowed to perform commits. This has always been wrong, as this would result in KnowledgeBase events being processed in the wrong order.
Test
No test.