Fork me on GitHub
#xtdb
<
2022-11-06
>
sb19:11:33

I tried setup metrics :xtdb.metrics.csv/reporter {:output-file "data/dev"} but I need to interrupt the execution when I would like to re-mount the xtdb. Any idea what I need to setup for this?

valuation interrupted.
[nREPL-session-a72fac0c-5425-4a56-87f9-a7612298c923] ERROR  - Could not close: #object[com.codahale.metrics.CsvReporter 0x560a33a3 com.codahale.metrics.CsvReporter@560a33a3]
java.lang.ThreadDeath
	at java.base/java.lang.Thread.stop(Thread.java:942)
	at nrepl.middleware.session$interrupt_stop$fn__46328.invoke(session.clj:180)
	at clojure.core$binding_conveyor_fn$fn__5823.invoke(core.clj:2047)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
[nREPL-session-a72fac0c-5425-4a56-87f9-a7612298c923] INFO org.eclipse.jetty.server.AbstractConnector - Stopped ServerConnector@1d1bbc9e{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:9999}
[nREPL-session-a72fac0c-5425-4a56-87f9-a7612298c923] ERROR  - Could not close: #xtdb.http_server.HTTPServer{:server #object[org.eclipse.jetty.server.Server 0x23199e71 Server@23199e71{FAILED}[9.4.44.v20210927]], :options {:port 9999, :read-only? false, :jwks nil, :server-label nil, :jetty-opts nil, :xtdb-node #<XtdbNode>}}
java.lang.InterruptedException
	at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1081)
	at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:276)

refset20:11:06

Hi @U2T2ZEVPC I don't recognise this error. Is this 1.21.1? Do you get an error and stacktrace when calling .close directly? Or can you only see these errors in the log? Have you tried reproducing the setup minimally?

sb20:11:03

I solved the previous error as I told you. Reasons was two: cache block size was bad (I dropped from Rocksdb spec.. but that was a mistake plus def/declare type). That is new. I didn’t created more minimal setup, that need to be a minimal skeleton for this https://github.com/damesek/deps-fullstack (deps.edn + mount + xtdb + jetty + pedestal <> cljs part: shadow-cljs, but just one pager nothing extra). When you run the project dev mode, just drop (start) for restart (re) in user namespace. Interesting part in project.clj.components.db 30th line

sb20:11:55

That is the minimal skeleton now for me. I commented out the line ;:xtdb.metrics.csv/reporter {:output-file (str xtdb-path "/xtdb-metrics")} but later maybe I create more minimal for xtdb. I do apologize.

sb20:11:22

I think, that is really minimal, ofc under WIP.. so nothing extra things here. Just I would like to create for me a skeleton base. And solve every mistake, questions (all part).

refset20:11:35

Ah awesome, thank you, this should really help narrow things down quickly. I'll dig in tomorrow

sb20:11:13

Thank you very much, if you have any advice.. you see.. something bad.. just tell me 🙂

blob_thumbs_up 1