Skip to content

Commit 39f1dd8

Browse files
committed
Clarify bdr.drop_node behavior and example scenarios
1 parent 1ea44d1 commit 39f1dd8

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

product_docs/docs/pgd/5.7/reference/functions-internal.mdx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,25 @@ bdr.difference_fix_xact_set_avoid_conflict()
161161

162162
Drops a node's metadata.
163163

164+
After a node has been `PARTED` its info remains around. For example, the node will remain in the `bdr.node_sumary` results, marked as `PARTED`, until the node is dropped.
165+
166+
Calling `bdr.drop_node('some node', force := true)` can be necessary
167+
and appropriate when a node becomes stuck while parting. Note that it
168+
skips past syncing any data out of the node being dropped, if there is
169+
any data on that node that still needs to be synced out. If a node
170+
stuck parting has already been reimaged or deleted, there is no harm
171+
in calling `bdr.drop_node` on it. Note that this must be called for
172+
this stuck node on all nodes in the cluster so they all have a
173+
consistent view that the node has been dropped.
174+
164175
This function removes the metadata for a given node from the local
165176
database. The node can be either:
166177

167178
- The local node, in which case it removes all the node metadata, including information about remote nodes.
168179
- A remote node, in which case it removes only metadata for that specific node.
169180

170-
171-
172181
!!! Important When to use `bdr.drop_node()`
173-
Do not use `bdr.drop_node()` to drop node metadata and reuse node names. PGD can reuse existing node names providing the node name belongs to a node in a `PARTED` state. Use `bdr.part_node()` to remove the original node and place it in a `PARTED` state.
182+
It is not necessary to use `bdr.drop_node()` to drop node metadata just for the sake of reusing node names. PGD can reuse existing node names providing the node name belongs to a node in a `PARTED` state. Use `bdr.part_node()` to remove the original node and place it in a `PARTED` state.
174183

175184
Use of this internal function is limited to:
176185

0 commit comments

Comments
 (0)