You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/07/11 12:31:24 UTC

[GitHub] [accumulo] dlmarion commented on issue #1610: Determine if using Guava Suppliers.memoizeWithExpiration in compaction is too expensive

dlmarion commented on issue #1610:
URL: https://github.com/apache/accumulo/issues/1610#issuecomment-1180352031

   According to the `Suppliers.memoizeWithExpiration()` javadoc and source, the return value of the supplier is cached for the specified duration. So, the code in `CompactableImpl.CompactionCheck.memoizedCheck` is invoked every 100ms. In the case of a compaction that is running this seems better than the suggestion above. However, in the case of a compaction thread that is slow (e.g. user iterators, waiting on I/O or CPU), 100ms might be too low of a value.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org