yuqi1129 opened a new pull request, #9068:
URL: https://github.com/apache/gravitino/pull/9068

   ### What changes were proposed in this pull request?
   
   Use List<Key> NOT Key in the reversed index. 
   
   ### Why are the changes needed?
   
   Currently, the reversed index for the Caffine cache is as followings. 
   
   Assuming role1 has a securable object table1, then the data in the reversed 
index will be 
   
   ```text
   
   KEY         VALUE
   table1     role1 
   ```
   
   When role2 also has a securable object table1, the index data will overwrite 
that of role1 and the final data will be 
   ```text
   KEY         VALUE
   table1     role2 
   ```
   
   When table1 is deleted, Gravitino will only invalidate the data of role2, 
and role1 will still hold the out-of-date data. 
   
   Fix: #8824 
   Fix: #8817
   
   ### Does this PR introduce _any_ user-facing change?
   
   N/A
   
   ### How was this patch tested?
   
   UTs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to