Skip to content

Improve MessageGroupStoreReaper Algorithms [INT-2754] #6730

Closed
@spring-operator

Description

@spring-operator

Gary Russell opened INT-2754 and commented

Currently, the reaper pulls an expired group which is then considered for reaping after acquiring a lock. By the time the lock is acquired, the group could have changed; this means we have to re-fetch the group.

MessageGroupStore currently does not support simply obtaining just a group's lastModified time, so in both cases, the whole group is pulled.

Improvements can be made to this algorithm by adding ```
MessageGroupStore.getLastModified(Object groupId)


Also, the AbstractCorrelatingMessageHandler now supports the LockRegistry. With a global lock implementation of the registry, these reaper changes would support group reaping across a distributed environment.

Affects: 2.2 M4

Issue Links:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions