Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10601

camel-mongodb-gridfs - Use dynamic ports for tests

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      This causes CI server to fail sometimes if the port number is already in use

      org.apache.camel.component.gridfs.GridFsConsumerTest.testAttribute

      Failing for the past 1 build (Since Unstable#1067 )
      Took 37 ms.
      Error Message

      Cannot load configuration class: org.apache.camel.component.gridfs.EmbedMongoConfiguration
      Stacktrace

      java.lang.IllegalStateException: Cannot load configuration class: org.apache.camel.component.gridfs.EmbedMongoConfiguration
      Caused by: java.lang.IllegalStateException: Unable to load cache item
      Caused by: java.lang.ExceptionInInitializerError
      Caused by: java.lang.RuntimeException:
      java.io.IOException: Could not start process: failed errno:98 Address already in use for socket: 0.0.0.0:35949
      2016-12-14T23:31:17.332+0000 E NETWORK [initandlisten] addr already in use

      Caused by: java.io.IOException:
      Could not start process: failed errno:98 Address already in use for socket: 0.0.0.0:35949
      2016-12-14T23:31:17.332+0000 E NETWORK [initandlisten] addr already in use

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: