[ 
https://issues.apache.org/jira/browse/HDDS-1964?focusedWorklogId=294654&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-294654
 ]

ASF GitHub Bot logged work on HDDS-1964:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Aug/19 09:59
            Start Date: 14/Aug/19 09:59
    Worklog Time Spent: 10m 
      Work Description: adoroszlai commented on 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:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 294654)
            Time Spent: 10m
    Remaining Estimate: 0h

> TestOzoneClientProducer fails with ConnectException
> ---------------------------------------------------
>
>                 Key: HDDS-1964
>                 URL: https://issues.apache.org/jira/browse/HDDS-1964
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.5.0
>            Reporter: Doroszlai, Attila
>            Assignee: Doroszlai, Attila
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code:title=https://raw.githubusercontent.com/elek/ozone-ci/master/trunk/trunk-nightly-wxhxr/unit/hadoop-ozone/s3gateway/org.apache.hadoop.ozone.s3.TestOzoneClientProducer.txt}
> -------------------------------------------------------------------------------
> Test set: org.apache.hadoop.ozone.s3.TestOzoneClientProducer
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 222.239 s <<< 
> FAILURE! - in org.apache.hadoop.ozone.s3.TestOzoneClientProducer
> testGetClientFailure[0](org.apache.hadoop.ozone.s3.TestOzoneClientProducer)  
> Time elapsed: 111.036 s  <<< FAILURE!
> java.lang.AssertionError: 
>  Expected to find 'Couldn't create protocol ' but got unexpected exception: 
> java.net.ConnectException: Your endpoint configuration is wrong; For more 
> details see:  http://wiki.apache.org/hadoop/UnsetHostnameOrPort
> {code}
> Log output (with local log4j config) reveals that connection is attempted to 
> 0.0.0.0:9862:
> {code:title=log output}
> 2019-08-14 10:49:14,225 [main] INFO  ipc.Client 
> (Client.java:handleConnectionFailure(948)) - Retrying connect to server: 
> 0.0.0.0/0.0.0.0:9862. Already tried 0 time(s); retry policy is 
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 
> MILLISECONDS)
> {code}
> The address 0.0.0.0:9862 was added as default in 
> [HDDS-1920|https://github.com/apache/hadoop/commit/bf457797f607f3aeeb2292e63f440cb13e15a2d9].



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to