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 2018/11/29 16:46:33 UTC
[GitHub] keith-turner opened a new pull request #786: fixes #785 avoid using
system classloader in client rfile code
keith-turner opened a new pull request #786: fixes #785 avoid using system classloader in client rfile code
URL: https://github.com/apache/accumulo/pull/786
Properly making this change cascaded into wider changes. Trying to avoid the
system classloader led to the discovery of code in BCFile that created a
crypto service using static config and the system classloader. I realized
this code needed to go which resulted in making the crypto service mandatory
when opening an RFile. This led to pushing the ServerContext further into
code, which is a good thing.
The following actions were taken :
* Made CryptoService a required argument for opening a file in FileOperations
* MAde CryptoServiceFactory require the caller to specify if accumulo
classloader should be used.
* Added CryptoServiceFactory.newDefaultInstance() method and called this in
places like test code that just need the default crypto service.
* Pushed ServerContext further into code. One nice thing about this is that
things available from ServerContext no longer needed to passed.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services