This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-07
Channels
- # beginners (49)
- # boot (48)
- # cider (5)
- # cljs-dev (6)
- # clojure (165)
- # clojure-android (1)
- # clojure-austin (1)
- # clojure-india (2)
- # clojure-italy (23)
- # clojure-nl (2)
- # clojure-poland (4)
- # clojure-russia (63)
- # clojure-spec (5)
- # clojure-uk (121)
- # clojurescript (187)
- # core-async (1)
- # core-logic (4)
- # cursive (17)
- # datascript (1)
- # datomic (12)
- # emacs (2)
- # funcool (3)
- # hoplon (2)
- # jobs (7)
- # juxt (6)
- # lambdaisland (1)
- # luminus (2)
- # lumo (20)
- # midje (8)
- # off-topic (11)
- # om (38)
- # onyx (42)
- # pedestal (6)
- # planck (23)
- # protorepl (29)
- # ring (3)
- # rum (23)
- # spacemacs (6)
- # untangled (70)
- # vim (1)
Hello, has anyone ever met the exception indicating ${path}/cnc.dat
is already in use when calling with-test-env
with peer-config: {:onyc.messaging/impl :aeron ... ....}
?
@clyce can you please post the exception? It could mean more than one media driver is running
Oh ... the original exception was an Error refreshing environment: java.nio.file.FileSystemException
and the detailed message was not shown in English (from my system locale settings), but the meaning was: "another process is using this file"
Ok hmm. Was just wondering whether it was thrown by the media driver or the peers
Seems like some stale state from another test anyway.
clojure.lang.ExceptionInfo: Error in component :messaging-group in system onyx.system.OnyxPeerGroup calling #'com.stuartsierra.component/start
component: #<Aeron Peer Group>
function: #'com.stuartsierra.component/start
reason: :com.stuartsierra.component/component-function-threw-exception
system: #<Onyx Peer Group>
system-key: :messaging-group
I killed all my jvm processes but it seems no use....let me restart the system to try 🙂
It's safe to delete the file if it's giving you the full path
Wait...it was not....I thought it was gone just cuz I miscommented the with-test-env ..
Downgrading [org.onyxplatform/onyx "0.9.15"]
to [org.onyxplatform/onyx "0.9.10"]
eliminates the error
Sounds like a comparability problem between Aeron versions then. If you delete the cnc file all should be well
it worth mentioning that I was using windows currently for some reason. I'd try this again when I was back on Linux
Weird. Hmm.
Windows could be part of it, but it’s hard to know
@lucasbradstreet I’ve got a question on the Kafka plugin and deployment. I’ve the option of using min/max-peers
to set the total number of partitions or defining a single partition to consume messages from.
With the total number of partitions then I’m essentially running one peer with n number of virtual peers to do the work. Can I deploy this across three tenancies for example all consuming the same partitions t1 = p0, p1, p2
, t2 = p0, p1, p2
, t3 = p0, p1, p2
so there’s some safety if a peer dies.
What I can’t afford to happen is that a single peer die with all the partitions and Kafka continue to log messages as I run the risk of running out of volume space and killing the machine.
It would be nice to have one peer consuming partitions 1,2 and 3 with another peer consuming 4, 5 and 6 and a third peer consuming 7, 8 and 9 for example.
Looking at the plugin there’s a function check-num-peers-equals-partitions
which throws an exception if the total number of partitions doesn’t match what is set in Kafka plugin options.
@jasonbell Your last statement is correct. We’d take a PR for parameterizing a vpeer to read from a collection of partitions.
michaeldrogalis if you don't assign any partitions would it just distribute them across the actual peers itself or would they all end up on one peer?
I think that behaviour would be the one I was after unless I was trying to be clever with data locality
@otfrom It self-distributes.