This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-19
Channels
- # announcements (2)
- # beginners (448)
- # calva (10)
- # cider (27)
- # clojure (121)
- # clojure-argentina (2)
- # clojure-brasil (6)
- # clojure-chicago (1)
- # clojure-colombia (9)
- # clojure-ecuador (1)
- # clojure-europe (1)
- # clojure-italy (14)
- # clojure-mexico (1)
- # clojure-nl (19)
- # clojure-spec (11)
- # clojure-uk (160)
- # clojurescript (25)
- # core-async (7)
- # cursive (8)
- # data-science (1)
- # datascript (1)
- # datomic (4)
- # devops (2)
- # graalvm (3)
- # hoplon (1)
- # immutant (1)
- # jackdaw (32)
- # jobs (2)
- # joker (2)
- # keechma (9)
- # leiningen (26)
- # luminus (13)
- # off-topic (2)
- # overtone (2)
- # quil (5)
- # reagent (38)
- # reitit (13)
- # shadow-cljs (16)
- # spacemacs (2)
- # tools-deps (4)
- # xtdb (12)
trying to use sync to block until writes have been indexed and hitting this error:
(crux/sync system #inst "2019-06-19T01:00:48.418-00:00" (Duration/ofMillis 10))
; => java.time.Duration cannot be cast to java.lang.Number
it works when timeout = nil
(Duration/ofMillis 10)
also works by itselfHi again, I haven't attempted to reproduce this yet, but did you figure it out already? There is an example in the tests which suggests the timeout should be working https://github.com/juxt/crux/blob/83d39999064c804dccbba4f850da5d1da5931fe7/test/crux/api_test.clj#L59 (this is a long shot...) does (Duration/ofSeconds 10)
also not work for you there?
The 2-arity call works. It breaks at 3, when there is both , a ^Date transaction-time
and ^Duration timeout
. I'm currently passing nil for timeout which works
Yep this looks like a bug, I opened an issue. Again, we will take a look on Monday's standup: https://github.com/juxt/crux/issues/268
FYI i think the version number mentioned in the docs https://juxt.pro/crux/docs/configuration.html#standalone โโ19.06-1.6.0-alphaโ" isnt available in central repository, whereas the version mentioned on https://github.com/juxt/crux is ok โ19.06-1.1.0-alphaโ
Hi ๐ yes, coming soon! It generously recorded by Funding Circle. Fingers crossed it looks and sounds okay. I will circulate the slides and links for everything in any case
i also needed to add an :event-log-dir
setting when following the subsequent standalone system steps
(def ^crux.api.ICruxAPI system
(crux/start-standalone-system {:kv-backend "crux.kv.memdb.MemKv"
:db-dir "data/db-dir-1"}))
Execution error - invalid arguments to crux.bootstrap.standalone/start-standalone-system at (standalone.clj:85).
{:kv-backend "crux.kv.memdb.MemKv", :db-dir "data/db-dir-1"} - failed: (contains? % :event-log-dir)
(def ^crux.api.ICruxAPI system
(crux/start-standalone-system {:kv-backend "crux.kv.memdb.MemKv"
:db-dir "data/db-dir-1"
:event-log-dir "log"}))
Jun 19, 2019 1:42:43 PM clojure.tools.logging$eval1576$fn__1579 invoke
WARNING: Using fsync on MemKv has no effect.
Jun 19, 2019 1:42:43 PM clojure.tools.logging$eval1576$fn__1579 invoke
WARNING: Using sync? on MemKv has no effect. Persistence is disabled.
=> #'user/system
Glad you weren't too stumped by this. It is on our radar as of yesterday. I think it unintentionally slipped through as a regression in a recent commit, see https://github.com/juxt/crux/issues/261