hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (HDDS-1964) TestOzoneClientProducer fails with ConnectException
Date Wed, 14 Aug 2019 10:00:00 GMT

     [ 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
it is not very helpful.
   ## How was this patch tested?
   $ mvn -Phdds -pl :hadoop-ozone-s3gateway test
   [INFO] Tests run: 77, Failures: 0, Errors: 0, Skipped: 0
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:

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
> {code:title=log output}
> 2019-08-14 10:49:14,225 [main] INFO  ipc.Client (Client.java:handleConnectionFailure(948))
- Retrying connect to server: Already tried 0 time(s); retry policy
is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
> {code}
> The address was added as default in [HDDS-1920|https://github.com/apache/hadoop/commit/bf457797f607f3aeeb2292e63f440cb13e15a2d9].

This message was sent by Atlassian JIRA

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

View raw message