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 2019/06/03 15:49:51 UTC

[GitHub] [accumulo] milleruntime opened a new issue #1177: Context Object for initialization

milleruntime opened a new issue #1177: Context Object for initialization
URL: https://github.com/apache/accumulo/issues/1177
 
 
   I am not sure if this should be done or not so I am opening an issue for discussion/feedback/design ideas.  
   
   InitializeContext would be the object to represent the special internal state of Accumulo, before/during its initialization.  This became troublesome when I started touching the VolumeManager. 
   
   <pre>
   server/base/src/main/java/org/apache/accumulo/server/InitializeContext.java
   public class InitializeContext extends ServerContext {
     private VolumeManager fs;
   
     public InitializeContext(SiteConfiguration siteConf, Configuration hadoopConf) throws IOException {
       super(siteConf, hadoopConf);
       fs = VolumeManagerImpl.get(siteConf, hadoopConf);
   }
   </pre>
   
   Most of the changes would be with server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java.  I was thinking maybe this context object could have a simple boolean state to check whether Accumulo has been initialized or not.  Thoughts?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services