-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73621/
-----------------------------------------------------------
Review request for ranger.
Bugs: RANGER-3442
https://issues.apache.org/jira/browse/RANGER-3442
Repository: ranger
Description
-------
Clear the EntityManager after getting keys to reduce memory pressure. See
ticket RANGER-3442 for more details.
Diffs
-----
kms/src/main/java/org/apache/ranger/kms/dao/BaseDao.java b32d130
Diff: https://reviews.apache.org/r/73621/diff/1/
Testing
-------
Ran this patch in our cluster and created hundreds of keys with no noticeable
memory increase.
Previously without this patch, we would hit memory limit very quickly when
creating keys. This memory usage would not go down after.
This patch has been running for almost a week in our cluster with no
regressions or memory issues.
Thanks,
Pavi Subenderan