gcv/cupboard — pull request #4 by spariev (2012-02-28 15:05:57+00:00)
Title: Clojure 1.3

Hello,

as part of larger application' migration to 1.3 I've made cupboard 1.3 compatible, so maybe you'll find it useful. It's not all right with test, though - ant test hangs while testing deadlocks ( I can reproduce it in master branch too, so maybe it's separate issue)

[java] Exception in thread "Thread-1" java.lang.RuntimeException: com.sleepycat.je.LockTimeoutException: (JE 4.0.92) Lock expired. Locker 878190908 17_Thread-1_Txn: waited for lock on database=_default LockAddr:248575390 node=47 type=WRITE grant=WAIT_NEW timeoutMillis=500 startTime=1330441154459 endTime=1330441154959
[java] Owners: []
[java] Waiters: []
[java] Transaction 493730314 18_Thread-2_Txn waits for LockAddr:1397380581 Owners: Waiters:[]
[java] Transaction 878190908 17_Thread-1_Txn owns LockAddr:1397380581
[java] Transaction 878190908 17_Thread-1_Txn waits for LockAddr:248575390
[java]
[java] at test.cupboard.core$fn__1239$fn__1240$fn__1241$attempt_txn__798__auto____1242.invoke(core.clj:287)
[java] at test.cupboard.core$fn__1239$fn__1240$fn__1241.invoke(core.clj:287)
[java] at clojure.lang.AFn.run(AFn.java:24)
[java] at java.lang.Thread.run(Thread.java:619)