carbon-kernel icon indicating copy to clipboard operation
carbon-kernel copied to clipboard

Synchronize user role retrieval from DB and adding it to user role cache

Open DinikaSen opened this issue 4 years ago • 2 comments

Purpose

This PR introduces thread synchronization to the process of 'user role retrieval from DB and adding it to user role cache' to avoid multiple threads querying the user roles from DB for the same user concurrently, and update the user role cache with the same value retrieved from DB concurrently.

Resolves : https://github.com/wso2/product-is/issues/10869

DinikaSen avatar Jan 18 '21 09:01 DinikaSen

PR builder started Link: https://github.com/wso2/product-is/actions/runs/493905882

jenkins-is-staging avatar Jan 18 '21 15:01 jenkins-is-staging

PR builder completed Link: https://github.com/wso2/product-is/actions/runs/493905882 Status: failure

jenkins-is-staging avatar Jan 18 '21 15:01 jenkins-is-staging