Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5790

Xml config can not be used in jdbs and user code simultaneously

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.3
    • jdbc
    • None

    Description

      when user uses the same xml config for jdbc driver and for his own ignite instance there can be :
      java.sql.SQLException: Failed to start Ignite node.
      Caused by: class org.apache.ignite.IgniteCheckedException: Ignite instance with this name has already been started: CustomeIgniteName

      because JDBC creates separate ignite instance, while user already has one with the same name.

      Of course that can be easily workarounded, user can support two configs or
      create jdbc connect first and then use Ignition.getOrStart().

      However it's inconvenient for user and should be treated as usability issue.
      I see 2 solutions:
      1) jdbc driver should use Ignition.getOrStart()
      2) jdbc driver should connection string as ignite name.

      Attachments

        Issue Links

          Activity

            People

              ilyak Ilya Kasnacheev
              mcherkasov Mikhail Cherkasov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: