mojaloop / project

Repo to track product development issues for the Mojaloop project.
Other
24 stars 15 forks source link

Participant data to be invalidated when details change #3775

Open kleyow opened 5 months ago

kleyow commented 5 months ago

Summary: [quoting-service][account-lookup-service] Cache implementation of participants and GP test collection don't work together when activating and deactivating participants in tests while cache values are high in these services.

Affected tests

There needs to be some way to invalidate caches in the quoting service and account lookup services after GP tests deactivate a participant so that the services are not working off of stale state in GP tests.

The known issue can be resolved by setting cache expiry very low in lieu of fix

Severity: (Low, Medium, High)

Priority: (Critical, Medium, Low)

Expected Behavior

Steps to Reproduce 1. 2. 3.

Specifications

Notes:

elnyry-sam-k commented 5 months ago

Very good find @kleyow ..

There was a discussion around this a while ago - "to invalidate cache" when changes to participants happen, but as this brought about, it wasn't implemented then.

As you rightly said, low expiry times help alleviate the issue but do not fix it directly.

Thanks again!