From 0a6b3394375db90e4f12a895da7d9f1b7b02b17e Mon Sep 17 00:00:00 2001 From: ckreiling Date: Fri, 30 Jun 2023 19:39:42 -0400 Subject: [PATCH] Add retries to permission grant updates on Pulsar topics --- pulsar/resource_pulsar_topic.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pulsar/resource_pulsar_topic.go b/pulsar/resource_pulsar_topic.go index 3bace8c..e65b036 100644 --- a/pulsar/resource_pulsar_topic.go +++ b/pulsar/resource_pulsar_topic.go @@ -140,7 +140,9 @@ func resourcePulsarTopicCreate(ctx context.Context, d *schema.ResourceData, meta return diag.FromErr(fmt.Errorf("ERROR_CREATE_TOPIC: %w", err)) } - err = updatePermissionGrant(d, meta, topicName) + err = retry(func() error { + return updatePermissionGrant(d, meta, topicName) + }) if err != nil { return diag.FromErr(fmt.Errorf("ERROR_CREATE_TOPIC_PERMISSION_GRANT: %w", err)) }