Skip to content

Commit d262cce

Browse files
committed
Merge branch 'master' of github.com:hashicorp/terraform
2 parents 6335ab1 + fa00a86 commit d262cce

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ BUG FIXES:
5858
* provider/aws: Bug fix for NoSuckBucket on Destroy of aws_s3_bucket_policy [GH-9641]
5959
* provider/azurerm: Fix Azure RM loadbalancer rules validation [GH-9468]
6060
* provider/azurerm: Fix servicebus_topic values when using the Update func to stop perpetual diff [GH-9323]
61+
* provider/azurerm: lower servicebus_topic max size to Azure limit [GH-9649]
6162
* provider/consul: Change to consul_service resource to introduce a `service_id` parameter [GH-9366]
6263
* provider/datadog: Ignore float/int diffs on thresholds [GH-9466]
6364
* provider/docker: Fixes for docker_container host object and documentation [GH-9367]

builtin/providers/azurerm/resource_arm_servicebus_topic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ func resourceArmServiceBusTopicDelete(d *schema.ResourceData, meta interface{})
235235

236236
func validateArmServiceBusTopicMaxSize(i interface{}, k string) (s []string, es []error) {
237237
v := i.(int)
238-
if v%1024 != 0 || v < 0 || v > 10240 {
239-
es = append(es, fmt.Errorf("%q must be a multiple of 1024 up to and including 10240", k))
238+
if v%1024 != 0 || v < 0 || v > 5120 {
239+
es = append(es, fmt.Errorf("%q must be a multiple of 1024 up to and including 5120", k))
240240
}
241241

242242
return

builtin/providers/azurerm/resource_arm_servicebus_topic_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func TestAccAzureRMServiceBusTopic_enablePartitioning(t *testing.T) {
8181
"azurerm_servicebus_topic.test", "enable_partitioning", "true"),
8282
// Ensure size is read back in it's original value and not the x16 value returned by Azure
8383
resource.TestCheckResourceAttr(
84-
"azurerm_servicebus_topic.test", "max_size_in_megabytes", "10240"),
84+
"azurerm_servicebus_topic.test", "max_size_in_megabytes", "5120"),
8585
),
8686
},
8787
},
@@ -236,7 +236,7 @@ resource "azurerm_servicebus_topic" "test" {
236236
namespace_name = "${azurerm_servicebus_namespace.test.name}"
237237
resource_group_name = "${azurerm_resource_group.test.name}"
238238
enable_partitioning = true
239-
max_size_in_megabytes = 10240
239+
max_size_in_megabytes = 5120
240240
}
241241
`
242242

website/source/docs/providers/azurerm/r/servicebus_topic.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ The following arguments are supported:
8686

8787
* `max_size_in_megabytes` - (Optional) Integer value which controls the size of
8888
memory allocated for the topic. Supported values are multiples of 1024 up to
89-
10240, if `enable_partitioning` is enabled then 16 partitions will be created
90-
per GB, making the maximum possible topic size 163840 (10240 * 16).
89+
5120, if `enable_partitioning` is enabled then 16 partitions will be created
90+
per GB, making the maximum possible topic size 81920 (5120 * 16).
9191

9292
* `requires_duplicate_detection` - (Optional) Boolean flag which controls whether
9393
the Topic requires duplicate detection. Defaults to false. Changing this forces

0 commit comments

Comments
 (0)