Skip to content

Creating and deleting ServiceInstances has a built-in 5m31s timeout that fails on slow services #693

@mtthwcmpbll

Description

@mtthwcmpbll

We're currently seeing service instances provisioned through the AWS service broker can take a long time to create and delete (in the order of 10-20 minutes). The CloudFoundryOperations in both 2.4.0.RELEASE and 2.5.0.BUILD-SNAPSHOT ultimately use code in the form of exponentialBackOff(Duration.ofSeconds(1), Duration.ofSeconds(15), Duration.ofMinutes(5)) (either in LastOperationUtils.waitForCompletion or JobUtils.waitForCompletion) to retry the operation.

Both of the following code snippets can fail with slow services, but these actually success in the sense that the service instance is created or deleted successfully (just long after the client has returned a failure response).

cloudFoundryOperations.services().createInstance(
  CreateServiceInstanceRequest.builder()
    .serviceName("mlab")
    .planName("sandbox")
    .serviceInstanceName("test-service-instance")
      .build())
    .block();
cloudFoundryOperations.services().deleteInstance(
  DeleteServiceInstanceRequest.builder()
    .name("pgsql-test-instance")
    .build())
  .block();

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions