anmolnar commented on PR #8903:
URL: https://github.com/apache/hbase/pull/8903#issuecomment-7319097932

   > 🤖 AI-assisted review: drafted by Claude on behalf of @anmolnar
   
   Thanks @VladRodionov, the place-then-admit-per-tier split looks right to me. 
I traced AdaptiveLRU through single-tier, inclusive, exclusive and L1-only 
topologies and the outcomes match the previous behaviour. The single-tier 
bypass in the latest commit addresses the earlier concern. A few non-blocking 
cleanups:
   
   1. `AdmissionDecision.rejectNull()` is not used anywhere in this PR. Could 
it move to HBASE-30362 where it's needed?
   2. `AdaptiveLruCachePlacementAdmissionPolicy.shouldAdmit()` now returns the 
bare `reject()` and loses the "Rejected by AdaptiveLRU data-block admission" 
reason. A cached static decision with that reason would keep the diagnostic 
without allocating.
   3. `DefaultHBaseCachePlacementAdmissionPolicy.isMetaOrIndexBlock` went from 
`private static` to a package-private instance method with no new caller here. 
Is that for the follow-up? If not, I'd keep it `private static`.
   4. Stale Javadoc: the interface's `selectTier` still says "for an admitted 
block" although selection now precedes admission; AdaptiveLRU's `selectTier()` 
Javadoc still describes removing L1; and 
`TestAdaptiveLruCachePlacementAdmissionPolicy` has duplicated Javadoc blocks 
above the inclusive and exclusive tests.
   5. Nits: the null-check messages are inconsistent ("tier" vs "cache tier"), 
and please check for unused imports in 
`TestSingleTierTopologyBackedCacheAccessService`.
   
   +1 once the dead code and Javadoc are tidied.


-- 
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