ctubbsii opened a new pull request, #2658:
URL: https://github.com/apache/accumulo/pull/2658

   * Remove the need to synchronize on reads for lazily initialized
     singleton resources, particularly in the configuration and context
     utilities, using Suppliers.memoize
   * Apply to DefaultConfiguration.getInstance() to avoid unnecessary
     object creation whenever that is called
   * Make all ServerContext fields final, and use memoize to lazily load
     anything that was previously checking if it was set in a synchronized
     getter method
   * Use computeIfAbsent in ServerConfigurationFactory, and make its caches
     of configuration objects non-static, so they only live as long as the
     ServerContext that created it lives; this, along with using
     ConcurrentHashMaps, dramatically simplifies this code
   * Reduce ServerContext reliance on ServerConfigurationFactory when it
     already has the information (notably, it has the instance of
     SiteConfiguration it used to construct the ServerConfigurationFactory)
   * Add a builder option for SiteConfiguration.empty() for use with tests
   * Update related tests, and make ServerContextTest.testCanRun more
     robust


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to