Open mauricioszabo opened 5 years ago
I discussed this some on #clara in clojurians Slack, but this is an odd looking exception that seems like perhaps could happen from clj's keyword callsite optimizations if the clara.rules.engine.Token record type is perhaps compiled/loaded multiple times in a way where both instances of the class (from separate classloaders) are interacting with one another at.
So perhaps 1) the session is compiled with "version 1" of clara.rules.engine.Token, 2) the ns is for some reason loaded again 3) later a runtime instance of "version 2" of clara.rules.engine.Token comes across this compiled callsite
This is just my suspicion so far, putting it here in case it helps track down anything more.
When trying to run Clara (firing rules) over multiple threads, we get an error
Ofending come (somewhat simplified):
Clojure version: Clojure 1.9.0 JVM version: Eclipse OpenJ9 VM 1.8.0_181-b13 Core.Async version: 0.4.490
Exception: