You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/08/14 09:59:35 UTC

[GitHub] [hadoop] adoroszlai opened a new pull request #1292: HDDS-1964. TestOzoneClientProducer fails with ConnectException

adoroszlai opened a new pull request #1292: HDDS-1964. TestOzoneClientProducer fails with ConnectException
URL: https://github.com/apache/hadoop/pull/1292
 
 
   ## What changes were proposed in this pull request?
   
   `TestOzoneClientProducer` verifies that `RpcClient` cannot be created because OM address is not configured.  The call to `producer.createClient()` is expected to fail with the message `Couldn't create protocol`, which is triggered by `IllegalArgumentException: Could not find any configured addresses for OM. Please configure the system with ozone.om.address`.  bf457797f607f3aeeb2292e63f440cb13e15a2d9 added the default address as explicitly configured value, so client creation now progresses further and fails when it cannot connect to OM (which is not started by the unit test).
   
   This change simply sets the previous empty OM address for this test.
   
   It also adds log4j config for `s3gateway` tests to produce better output next time, because [currently](https://raw.githubusercontent.com/elek/ozone-ci/master/trunk/trunk-nightly-wxhxr/unit/hadoop-ozone/s3gateway/org.apache.hadoop.ozone.s3.TestOzoneClientProducer-output.txt) it is not very helpful.
   
   https://issues.apache.org/jira/browse/HDDS-1964
   
   ## How was this patch tested?
   
   ```
   $ mvn -Phdds -pl :hadoop-ozone-s3gateway test
   ...
   [INFO] Tests run: 77, Failures: 0, Errors: 0, Skipped: 0
   ...
   [INFO] BUILD SUCCESS
   ```

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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org