Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/256#discussion_r115285384
  
    --- Diff: 
core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/BlockCache.java
 ---
    @@ -17,10 +17,30 @@
      */
     package org.apache.accumulo.core.file.blockfile.cache;
     
    +import org.apache.accumulo.core.conf.AccumuloConfiguration;
    +
     /**
      * Block cache interface.
      */
     public interface BlockCache {
    +
    +  /**
    +   * Start the block cache
    +   *
    +   * @param conf
    +   *          Accumulo configuration object
    +   * @param maxSize
    +   *          maximum size of the on-heap cache
    +   * @param blockSize
    +   *          size of the default RFile blocks
    +   */
    +  void start(AccumuloConfiguration conf, long maxSize, long blockSize) 
throws Exception;
    --- End diff --
    
    If `Exception` is just being caught and re-thrown as RTE, isn't it cleaner 
to just removes the `throws` here and inform, via javadoc, implementations 
should throw an RTE if they cannot start successfully?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to