ctubbsii opened a new pull request #1551: Use sets instead of arrays for volumes
URL: https://github.com/apache/accumulo/pull/1551
 
 
   Originally ACCUMULO-3376, this change replaces the use of `String[]`
   with `Set<String>` throughout the VolumeChooser and VolumeManager code.
   This makes the API for VolumeChooser a bit more friendly, making it
   easier to use Streams and lambdas to filter and transform volumes
   throughout the code.
   
   This change also adds some more sanity checks on the instance volumes
   configuration (checking for empty list and duplicates).
   
   This also includes a utility to warn about planned API changes in
   internal pluggable code (such as the VolumeChooser), but without being
   too spammy.
   
   Update the default `VolumeChooser.choosable()` to return the full set of
   volumes, so that all are checked for flush and sync support on tserver
   startup. This choosable mechanism is a bit dubious anyway, because
   choosers could make different decisions over time (in response to
   configuration changes, for example) than they do at startup. So,
   defaulting to checking for the maximal set seems like a better strategy
   out-of-the-box.
   
   Make ServerConstants.baseUris unmodifiable.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to