Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Onyx hangs when provide ":onyx.messaging.aeron/media-driver-dir" setting in peer-config #886

Open
darongmean opened this issue Apr 18, 2019 · 1 comment

Comments

@darongmean
Copy link
Contributor

I tried to run two onyx instances in the same machine. So I needed to change Aeron media driver directory on both instances. After digging through source code, I found out I could pass the directory via :onyx.messaging.aeron/media-driver-dir setting. It was working fine with two onyx instances.

If I run one onyx instance, Onyx hanged with the following message:
Aeron media driver has not started up. Waiting for media driver before starting peers, and backing off for 500ms.

I think the problem lying in the following code:
https://github.com/onyx-platform/onyx/blob/0.14.4/src/onyx/peer/peer_group_manager.clj#L264
https://github.com/onyx-platform/onyx/blob/0.14.4/src/onyx/messaging/aeron/messaging_group.clj#L30
The function media-driver-healthy? initializes CommonContext object with default media driver directory. It fails to consider that the directory might be overridden by :onyx.messaging.aeron/media-driver-dir setting.

I could submit a PR. However, I'm new to onyx. I'm not sure this is the right direction. Could anyone help guiding me with this issue?

@sundbry
Copy link
Contributor

sundbry commented Apr 23, 2019

It sounds like you are on the money with your analysis @darongmean, I would just submit a PR!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants