-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_synapse_spark_pool
- set node_count
in read if auto_scale
is disabled
#26953
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ms-henglu could you elaborate on the issue that this is trying to solve?
@stephybun - Sure. There's an issue on the API side that both |
@ms-henglu what is the plan diff? The value of the |
Yes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the behaviour of the property node_count
should probably have Computed
set on it instead of not setting it if auto scale is enabled. Can you please make that change?
…uto_scale` is disabled" This reverts commit 141d9f3.
Hi @stephybun , I've confirmed with service team that:
So I think the node_count should not be marked as computed? I think we should ignore it when reading the resource, just like what it does in the create/update. |
@ms-henglu there are very few cases in the provider where we only conditionally set something into state based on the value of another property. The cases that come to mind are workarounds to prevent breaking changes. If this is expected to be fixed in the API, then the workaround for the moment is for the user to apply |
9d752df
to
daffff9
Compare
Thanks @stephybun ! I've marked this field as computed, please take another look, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an aside we're trying to keep track of remaining or introduced O+C properties in the provider using comments with the format // NOTE: O+C because of reason xyz this property needs to be Computed
so I added that to your PR explaining the API behaviour.
LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR only sets
node_count
in read func if theauto_scale
is disabled. Because we have customer reported issues that the GET response of spark pool might have bothnode_count
andauto_scale
enabled, this is an API issue and we've asked the service team to investigate, but this PR will mitigate the issue.Community Note
Description
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_resource
- support for thething1
property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.