Fork me on GitHub
#onyx
<
2017-09-06
>
dwarfylenain12:09:33

Hi again everyone 🙂

dwarfylenain12:09:46

I’m having a weird exception and I can’t figure out why

dwarfylenain12:09:12

I have a simple task who uses my new input plugin, then log it then put it in a output chan

dwarfylenain12:09:19

It works a bit but then I get

dwarfylenain12:09:37

17-09-06 12:00:16 Maths-MacBook-Pro.local WARN [onyx.peer.task-lifecycle:141] -
                              java.lang.Thread.run              Thread.java:  745
java.util.concurrent.ThreadPoolExecutor$Worker.run  ThreadPoolExecutor.java:  617
 java.util.concurrent.ThreadPoolExecutor.runWorker  ThreadPoolExecutor.java: 1142
                                               ...
                 clojure.core.async/thread-call/fn                async.clj:  442
 onyx.peer.task-lifecycle/start-task-lifecycle!/fn       task_lifecycle.clj:  939
      onyx.peer.task-lifecycle/run-task-lifecycle!       task_lifecycle.clj:  466
                onyx.peer.task-lifecycle/iteration       task_lifecycle.clj:  448
    onyx.peer.task-lifecycle.TaskStateMachine/exec       task_lifecycle.clj:  859
onyx.peer.task-lifecycle/wrap-lifecycle-metrics/fn       task_lifecycle.clj:  886
        onyx.peer.task-lifecycle/build-apply-fn/fn       task_lifecycle.clj:  523
                      onyx.peer.transform/apply-fn            transform.clj:   64
               onyx.peer.transform/apply-fn-single            transform.clj:   18
                                clojure.core/doall                 core.clj: 3128
                                clojure.core/dorun                 core.clj: 3113
                                  clojure.core/seq                 core.clj:  137
                                               ...
                               clojure.core/map/fn                 core.clj: 2733
            onyx.peer.transform/apply-fn-single/fn            transform.clj:   21
         onyx.peer.transform/collect-next-segments            transform.clj:    8
      onyx.peer.transform/collect-next-segments/fn            transform.clj:    8
                           clojure.core/partial/fn                 core.clj: 2604
                           clojure.core/partial/fn                 core.clj: 2605
                           clojure.core/partial/fn                 core.clj: 2606
`

dwarfylenain12:09:58

clojure.lang.ExceptionInfo: Wrong number of args (4) passed to: core/identity

dwarfylenain12:09:18

clojure.lang.ExceptionInfo: Handling uncaught exception thrown inside task lifecycle :lifecycle/prepare-batch. Killing the job. -> Exception type: clojure.lang.ExceptionInfo. Exception message: Wrong number of args (4) passed to: core/identity

dwarfylenain12:09:01

I have absolutely no idea where this come from ...

dwarfylenain12:09:56

My workflow is like so :

(def workflow
  [[:in :log]
   [:log :out]])

dwarfylenain12:09:37

And I cannot figure out where the :lifecycle/prepare-batch exception happen

dwarfylenain12:09:37

BTW I’m using clojure 1.9.0-alpha19

dwarfylenain12:09:43

(because I use specs)

dwarfylenain12:09:57

And onyx from git : “https://github.com/onyx-platform/onyx.git” “7ed0c121139817d1782a03061fcbcd791a711f4e”

dwarfylenain12:09:25

Which is basically the lastest commit on 0.10.x branch

michaeldrogalis15:09:31

@dwarfylenain Hm… Can I see your catalog? I’ll bet you have an :onyx/fn defined to :clojure.core/identity somewhere and its trying to invoke that in your plugin with the 4-args.

dwarfylenain15:09:57

Not using identity at all

dwarfylenain15:09:41

I'm not in front of computer so I will send catalog later but basically the only fn I have prints to log and returns the segment

michaeldrogalis15:09:47

Alrighty. If you can let us have a look at the repo I can help diagnose further.

dwarfylenain15:09:17

@michaeldrogalis great thanks I will give you access to GitHub repo ...