accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <>
Subject [GitHub] accumulo pull request #256: ACCUMULO-4463: Make block cache implentation con...
Date Mon, 08 May 2017 16:43:00 GMT
Github user joshelser commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/
    @@ -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 --
    Hmm, yeah, I later realized most impls would find some way to piggy-back properties into
accumulo-site. Mostly, I figured that, eventually, we'd also have other "universal" properties
(max size and block size) that all of the implementations would use.
    Having some object there (or, using the Factory as Keith's suggestion pushes towards)
would at least avoid runtime issues (where the new Accumulo expects a `start(AccumuloConfiguration,
long, long, ...)` instead of just `start(AccumuloConfiguration, long, long)`.

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 or file a JIRA ticket
with INFRA.

View raw message