accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <...@git.apache.org>
Subject [GitHub] accumulo pull request: ACCUMULO-4187: Added rate limiting for majo...
Date Wed, 13 Apr 2016 03:46:43 GMT
Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/90#discussion_r59489500
  
    --- Diff: core/src/main/java/org/apache/accumulo/core/file/rfile/RFileOperations.java
---
    @@ -132,7 +136,8 @@ FileSKVWriter openWriter(String file, FileSystem fs, Configuration
conf, Accumul
           sampler = SamplerFactory.newSampler(samplerConfig, acuconf);
         }
     
    -    CachableBlockFile.Writer _cbw = new CachableBlockFile.Writer(fs.create(new Path(file),
false, bufferSize, (short) rep, block), compression, conf, acuconf);
    +    CachableBlockFile.Writer _cbw = new CachableBlockFile.Writer(new RateLimitedOutputStream(fs.create(new
Path(file), false, bufferSize, (short) rep, block),
    --- End diff --
    
    nit: I would be ok with splitting up this line. It's getting a little busy :)


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

Mime
View raw message