This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-28
Channels
- # aleph (4)
- # announcements (5)
- # babashka (28)
- # babashka-sci-dev (13)
- # beginners (63)
- # calva (76)
- # cider (113)
- # clara (7)
- # clj-kondo (42)
- # cljdoc (1)
- # clojure (170)
- # clojure-europe (20)
- # clojure-nl (17)
- # clojure-norway (3)
- # clojure-spec (12)
- # clojure-sweden (1)
- # clojure-uk (6)
- # clojurescript (55)
- # clojureverse-ops (1)
- # consulting (1)
- # core-async (9)
- # cursive (16)
- # data-science (1)
- # datascript (8)
- # datomic (27)
- # emacs (14)
- # events (1)
- # fulcro (10)
- # graphql (9)
- # gratitude (1)
- # jobs (6)
- # jobs-discuss (5)
- # leiningen (10)
- # lsp (35)
- # missionary (4)
- # nextjournal (9)
- # off-topic (46)
- # pathom (15)
- # pedestal (5)
- # polylith (37)
- # portal (15)
- # re-frame (22)
- # reagent (4)
- # reitit (5)
- # reveal (18)
- # shadow-cljs (20)
- # tools-deps (7)
- # xtdb (10)
How does xtdb ensure the indexing is the same across different instance? For example, one instance has some custom predicate functions accessible, but another does not have. So when encountering a transaction that contains unknown predicate function, what should happen?
But still, when HTTP server comes into play, then the server must have the functions defined though.
I think you could break it by invoking something from a tx fn that isn't available on all nodes
the result of a tx fn is stored so, but it could break if there are 2 nodes concurrently indexing and arrive at a different result before it has been stored
> the result of a tx fn is stored so, but it could break if there are 2 nodes concurrently indexing and arrive at a different result before it has been stored what part are you referring to? predicate function happens in query phase and not in the indexing phase.
@U01AVNG2XNF Like this, if xtdb has some document on the best practice usage, that would be great.
@UGC0NEP4Y We definitely have some "usage" and "modelling" docs in the works, but I'm not sure I completely understand this specific case. As @U11SJ6Q0K was explaining, you could (in theory) see 2 nodes go out of sync based on divergent tx-fns. Those sorts of peculiar edge cases are worth documenting and explaining, for sure. Do you still have a question about predicate functions, though? I can't think of a situation in which divergent predicates would cause indexing errors.