mikewalch commented on a change in pull request #609: Pass ServerContext to
RFile. Closes #584
URL: https://github.com/apache/accumulo/pull/609#discussion_r211694305
##########
File path:
core/src/main/java/org/apache/accumulo/core/file/rfile/RFileOperations.java
##########
@@ -130,7 +130,13 @@ protected FileSKVWriter openWriter(FileOptions options)
throws IOException {
outputStream = fs.create(new Path(file), false, bufferSize, (short) rep,
block);
}
- CryptoService cryptoService = CryptoServiceFactory.getConfigured(acuconf);
+
+ // calls to openWriter from the tserver will already have a crypto service
initialized
+ // calls from clients will require a new crypto service
+ CryptoService cryptoService = options.cryptoService;
+ if (cryptoService == null) {
+ cryptoService = CryptoServiceFactory.newInstance(acuconf);
Review comment:
`acuconf` is table configuration
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services