Fork me on GitHub
#onyx
<
2017-03-29
>
hunter00:03:02

FYI, beta10 (with the exception of onyx-datomic, i used the deployed SNAPSHOT on clojars since there were no code changes) works for my topos which were broken prior to beta8

lucasbradstreet07:03:50

0.10.0-beta10 is out

theblackbox13:03:40

if anyone has any pointers I'd appreciate it

lmergen14:03:41

@theblackbox i had this once, where my task runtime was trying to use a lifecycle resource that was created at compile-time

lmergen14:03:40

might be totally unrelated

theblackbox14:03:02

I'm well flummoxed on it and all I can imagine (because I'm a dunce) is that there is some sort of "contract" on a batch-size?

theblackbox14:03:10

but I'm literally pulling that out of thin air

lmergen14:03:21

that doesn’t sound like something that would cause a NPE — a range exception perhaps

lmergen14:03:37

can you paste some code ?

lmergen14:03:01

specifically, the code that allocates your lifecycles and the code that uses it

michaeldrogalis14:03:55

@theblackbox What’s at range.clj line 31? It looks like that’s the last line of your stack trace that’s NPEing?

theblackbox14:03:27

yeah, that's what I don't understand... sorry was just trying to get the lifecycles

theblackbox15:03:37

these get merged and are the only lifecycles I've got at the moment

michaeldrogalis15:03:56

The exception message is saying that there was an error in the prepare-batch lifecycle stage, not that your lifecycles are bad. I would try to go the last bit of the stracktrace and look at what’s happening in that file.

theblackbox15:03:15

yeah that was my understanding

theblackbox15:03:05

so if that is where the exception is thrown, I would have expected the failure to be on assignment by the doseq?

theblackbox15:03:22

as in logging don't give no beef for nil, right?

theblackbox15:03:43

@michaeldrogalis I appreciate the help by the way - no bother if you are busy 😉

michaeldrogalis15:03:08

@theblackbox I’d need to see a reproducer to help more - it’s hard to debug stack traces from afar when you don’t have the files. range.clj definitely isn’t in that trace by accident though, so I’d hunt around there.

theblackbox15:03:08

yeah totally understand

theblackbox15:03:37

thanks - I at least know I'm not wasting my time digging 😉

theblackbox15:03:24

well... if I take out the timbre log line it works.....

theblackbox15:03:56

I think I need to go back to the manual on this one. Thanks for the help.

michaeldrogalis16:03:04

@theblackbox: ((timbre/info "[MODIFY] : " key " - " value) (mc/find-and-modify db "documents" key {$inc value} {:upsert true}))

Drew Verlee16:03:06

Is it possible to change the window settings at run time?

michaeldrogalis16:03:32

You’re invoking the result of info with the argument of find-and-modify

michaeldrogalis16:03:39

Pretty sure info returns nil. There’s your npe

michaeldrogalis16:03:55

@drewverlee No, the job needs to be restarted. Onyx jobs are immutable after submission.

Drew Verlee16:03:43

Was 95% , sure of that

theblackbox18:03:46

cheers for the eyes michaeldrogalis

theblackbox18:03:35

out of curiosity - is there anything that would help spot mistakes like that? paredit for instance?

theblackbox18:03:23

I'm in the habit of using Cursive, but I've come at clojure very green and know for sure I'm not making the most of the tools available

theblackbox18:03:06

I guess in this case it's just a matter of having more experienced eyes as it's pretty obvious what I was doing now you point it out.

lucasbradstreet18:03:26

there are some tools like eastwood and kibit that I used a bit when I was a beginner, but it’s kinda hard to find issues like that because of the semantics of the language.

theblackbox19:03:52

tbh: with hindsight I'm a dumb ass because it isn't even "-bulk" as I decompose the queries into the doseq. I should be building the queries more appropriately for use with update and it'd be a damn sight nicer. Like I say, I'm still green 😉