accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [accumulo] hkeebler commented on issue #1084: Tests failing running against standalone instance
Date Wed, 01 May 2019 16:55:09 GMT
hkeebler commented on issue #1084: Tests failing running against standalone instance
URL: https://github.com/apache/accumulo/issues/1084#issuecomment-488340839
 
 
   ReadWriteIT test fails loading the "accumulo.properties" file in the following section
of code in the SunnyDay test.  It appears that it is trying to read an XML formatted file
   `org.apache.hadoop.shaded.com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'#' (code 35) in prolog; expected '<'`
   instead of a regular properties file BUT I do not think the code here is really even necessary
and doesn't really test anything.  When removed the test runs with no issue.
   ```
   if (getCluster() instanceof StandaloneAccumuloCluster) {
           StandaloneAccumuloCluster standaloneCluster = (StandaloneAccumuloCluster) getCluster();
           File accumuloProps =
               new File(standaloneCluster.getServerAccumuloConfDir(), "accumulo.properties");
           if (accumuloProps.isFile()) {
             Configuration conf = new Configuration(false);
             conf.addResource(new Path(accumuloProps.toURI()));
             String monitorSslKeystore = conf.get(Property.MONITOR_SSL_KEYSTORE.getKey());
             if (monitorSslKeystore != null) {
               log.info("Using HTTPS since monitor ssl keystore configuration was observed
in {}",
                   accumuloProps);
               scheme = "https://";
               SSLContext ctx = SSLContext.getInstance("TLSv1.2");
               TrustManager[] tm = {new TestTrustManager()};
               ctx.init(new KeyManager[0], tm, new SecureRandom());
               SSLContext.setDefault(ctx);
               HttpsURLConnection.setDefaultSSLSocketFactory(ctx.getSocketFactory());
               HttpsURLConnection.setDefaultHostnameVerifier(new TestHostnameVerifier());
             }
           } else {
             log.info("{} is not a normal file, not checking for monitor running with SSL",
                 accumuloProps);
           }
         }
   ```

----------------------------------------------------------------
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

Mime
View raw message