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

Lenient IPFS connection check on startup

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.23.2, 2.24.0, 3.0.0-M2, 3.0.0
    • None
    • None
    • Unknown

    Description

      The IPFS component needs to create a connection to some IPFS node. Currently that happens when the endpoint is created, which happens when the CamelContext is started.

      I was wondering whether I should defer that until the first endpoint invocation occurs. In which case camelctx.start() would succeed and I could asked the endpoint whether a connection could be established (e.g. Assume.assumeTrue(comp.getIPFSClient().hasConnection()))

      Currently, camelctx.start() will fail when a connection cannot be established. Is there a convention on how camelctx.start() should behave when a remote connection is needed?

      Attachments

        Issue Links

          Activity

            People

              tdiesler Thomas Diesler
              tdiesler Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h