Skip to content

Refactor Lettuce connection handling in integration tests #2575

Closed
@mp911de

Description

@mp911de

Right now, the Surefire shutdown times out due to heavy connection cleanup via the shutdown hooks. In a regular test run, we retain about 2000 open Redis connections. The cleanup requires a significant amount of time.

We should:

  • Reuse pooled connections as much as possible (LettuceReactiveCommandsTestSupport causes a lot of connections)
  • Revisit our method source caching to cache input parameters. right now, we create fixtures (and therefor pools) for each method via @ParameterizedRedisTest
  • Release resources via method source retrieval to close resources early on
  • Reuse shared ClientResources
  • Use SimpleAsyncTaskExecutor as default utility in ClusterCommandExecutor

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions