Skip to content

Conversation

mariadb-AlexanderPresniakov
Copy link
Contributor

@mariadb-AlexanderPresniakov mariadb-AlexanderPresniakov commented Jul 10, 2025

@drrtuy requested a new mode to be implemented: coordinator-only mode is almost identical to read-only mode, but it doesn't add dbroots of other nodes to the node.
So this new mode it is a subset of functionality of read-only mode. To avoid over-complicating everything, i added a new parameter add_other_nodes_dbroots to add_node, it is true by default.
So
read_only=false and add_other_nodes_dbroots=false --> normal mode
read_only=true and add_other_nodes_dbroots=true --> read_only mode
read_only=true and add_other_nodes_dbroots=false --> coordinator_only mode
read_only=false and add_other_nodes_dbroots=true --> invalid combination, will raise an exception

@mariadb-AlexanderPresniakov mariadb-AlexanderPresniakov marked this pull request as draft July 10, 2025 16:11
@mariadb-AlexanderPresniakov mariadb-AlexanderPresniakov changed the title Coordinator nodes build trigger Coordinator nodes (an addition to read-only nodes) Jul 18, 2025
@mariadb-AlexanderPresniakov mariadb-AlexanderPresniakov changed the base branch from stable-23.10 to feat/MCOL-5964-5861-5863-um-only-node July 18, 2025 02:47
* feat(cmapi): add read_only param for API add node endpoint
* style(cmapi): fixes for string length and quotes

Add dbroots of other nodes to the read-only node

On every node change adjust dbroots in the read-only nodes

Fix logging (trace level) in tests
…th DML

This patch changes logic from counting all nodes to counting only
read-write nodes when messaging about DML operations.
This patch introduces centralized logic of selecting what dbroot is
accessible in PrimProc on what node. The logic is in OamCache for time
being and can be moved later.
@mariadb-SergeyZefirov mariadb-SergeyZefirov force-pushed the feat/MCOL-5964-5861-5863-um-only-node branch from d9212ae to 5aa2a82 Compare July 21, 2025 11:32
@mariadb-AlexanderPresniakov mariadb-AlexanderPresniakov marked this pull request as ready for review July 23, 2025 15:39
@mariadb-AlexanderPresniakov mariadb-AlexanderPresniakov changed the base branch from feat/MCOL-5964-5861-5863-um-only-node to stable-23.10 July 25, 2025 13:22
@mariadb-LeonidFedorov mariadb-LeonidFedorov changed the title Coordinator nodes (an addition to read-only nodes) DNM: Coordinator nodes (an addition to read-only nodes) Jul 29, 2025
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.

3 participants