Skip to content

Commit 7062ec1

Browse files
authored
Merge pull request #6719 from EnterpriseDB/eatonphil-patch-1
Clarify a safe scenario for bdr.drop_node()
2 parents 6591569 + 2db9bd0 commit 7062ec1

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

+12-3
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 metadata remains present in the cluster's nodes. 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 to reuse node names. PGD 5 and later can reuse existing node names as long as the node name in question belongs to a node in a `PARTED` state. Instead of dropping the node, use `bdr.part_node()` to remove the original node and place it in a `PARTED`.
174183

175184
Use of this internal function is limited to:
176185

0 commit comments

Comments
 (0)