Database / Mnesia intermediate to advanced Interview questions
How does setting master nodes influence conflict resolution after a network partition?
When a partition heals and Mnesia detects that a table's replicas diverged, its default behavior is to
raise an inconsistent_database_event and leave the decision of which side to trust to an operator
or a configured event handler, since it has no inherent basis to prefer one side over the other. Master node
configuration removes that ambiguity ahead of time for a given table.
flowchart TD
A[Partition heals, conflict detected] --> B{Master node configured for this table?}
B -->|Yes| C[Master node's data treated as authoritative; other replicas resync from it]
B -->|No| D[inconsistent_database_event raised; manual/handler resolution required]
With master nodes set, the recovery process becomes more automatic and predictable: replicas that disagree with the designated master simply resync to match it, rather than requiring someone to manually inspect both sides and decide (potentially under time pressure during an incident) which one to keep.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
