Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to new Hammer API #36

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft

Conversation

ruslandoga
Copy link

@ruslandoga ruslandoga commented Nov 15, 2024

Context: ExHammer/hammer#104

It's kind of hard to get the distributed configuration right. It should probably be documented. I'll play around with Mnesia on the weekend and maybe update the README with a working ram_copies setup. But I think this PR is good to go. The previous version wasn't distributed by default either.


case :mnesia.create_table(table, mnesia_opts) do
{:atomic, :ok} -> :ok
{:aborted, {:already_exists, _}} -> :ok
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what to do about this. Technically we should raise, but raising here would bring down the supervisor and then the whole application since it would hit 5 restarts per 3 seconds very quickly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean if you can t start it and is needed that seems like an issue?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not what this is about. What you are asking about is probably the next line below that one, 129.

This is about a table that might exist but have a different structure.

.tool-versions Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
mix.exs Show resolved Hide resolved
@ruslandoga ruslandoga marked this pull request as draft November 16, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants