Skip to content

Commit

Permalink
Skip updating nodes if the spanner instance is user managed.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 564839719
  • Loading branch information
bvliu authored and copybara-github committed Sep 12, 2023
1 parent f78b508 commit 421f4d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions perfkitbenchmarker/providers/gcp/gcp_spanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ def _WaitUntilInstanceReady(self) -> None:

def _SetNodes(self, nodes: int) -> None:
"""Sets the number of nodes on the Spanner instance."""
# Not yet supported for user managed instances since instance attributes
# are not discovered.
if self.user_managed:
return
current_nodes = self._GetNodes()
if nodes == current_nodes:
return
Expand Down

0 comments on commit 421f4d3

Please sign in to comment.