Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

spring-cloud-dataflow rest client api 504 gateway timed out when paging size is set to 2000 #5059

@FunAtWork

Description

@FunAtWork

I have 2 applications deployed in ECS ( openshift ). One is spring cloud dataflow server second is spring cloud dataflow rest client.

I was able to create app registry , create task and launch task via rest client api application.But after I upgraded to latest dataflow rest client 2.9.2 or 2.9.4 , it is giving me timed out 504 exception while creating task via rest api client methods.

details are below, while creating task , it is calling below rest url with size=2000. This url will get timedout with 2000 even in postman also. But I give size=20 in postman, it is working fine. You can see size=2000 was defined in restclient jar as below.

http://dataflow-server/tasks/definitions?size=2000

This is exact line to create task by passing task_name and register app_name.

Task.builder(dfo).name(task_Name).definition(app_Name).description(taskDesc).build();

below rest client jar class

TaskTemplate.java

@OverRide

public TaskDefinitionResource.Page list() {

      String uriTemplate = definitionsLink.getHref();

      uriTemplate = uriTemplate + "?size=2000";

      return restTemplate.getForObject(uriTemplate, TaskDefinitionResource.Page.class);

}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions