This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-16
Channels
- # announcements (2)
- # asami (5)
- # babashka (52)
- # beginners (42)
- # biff (3)
- # cljdoc (4)
- # cljsrn (2)
- # clojure (30)
- # clojure-austin (35)
- # clojure-dev (3)
- # clojure-france (11)
- # clojurescript (36)
- # conjure (6)
- # cursive (5)
- # fulcro (33)
- # graalvm (41)
- # lsp (54)
- # malli (1)
- # music (2)
- # off-topic (7)
- # overtone (1)
- # pedestal (5)
- # polylith (2)
- # remote-jobs (1)
- # sci (28)
- # shadow-cljs (38)
- # vim (15)
- # web-security (1)
- # xtdb (8)
Something happened to my dev db and now I can get document details using explicit field names in :find
, but :find [(pull foo [*])]
produces nil
, as does xt/entity
.
I can repopulate my data from scratch, but I'd like to understand what's happening. Can anyone shed some light on why using pull or requesting an entity by ID might be failing?
Hey, it sounds like your doc-store might be in a bad state 😕 Please can you share your start-node
config map and confirm which XT version you're using?
> I can get document details using explicit field names
This will be because values can often be served directly from indexes without needing access to the (cached) doc-store
Yes, but let me be clear, this is almost certainly my fault and not some bug I came across. I'm wrapping up some major refactoring and ran one of my ETL routines when I shouldn't have, and then went to restore an old backup. > This will be because values can often be served directly from indexes without needing access to the (cached) doc-store Is there some way to specifically check if this is happening?
You could try creating a new node (e.g. different index-store dir
) and see if it is able to build a new index or whether latest-completed-tx
gets stuck at 0
or some point earlier than latest-submitted-tx
Thanks for the tip @U899JBRPF. If I have my config as such:
:xtdb/tx-log {:xtdb/module "xtdb.jdbc/->tx-log"
:connection-pool :xtdb.jdbc/connection-pool}
; :block-cache :xtdb.rocksdb/block-cache}}
:xtdb/document-store {:xtdb/module "xtdb.jdbc/->document-store"
:connection-pool :xtdb.jdbc/connection-pool}}}
Using a Postgres backend, is the old pg_dump
sufficient to properly backup the golden stores which can be used to rebuild the index? There are no special flags required to make a proper backup?