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

jdbc getSchemas method could miss schemas for not started remote caches

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 2.8
    • jdbc, sql
    • None

    Description

      On jdbc side we have org.apache.ignite.internal.jdbc.thin.JdbcThinDatabaseMetadata#getSchemas(java.lang.String, java.lang.String)

      on the server side result is constructed by this:

      for (String cacheName : ctx.cache().publicCacheNames()) {
              for (GridQueryTypeDescriptor table : ctx.query().types(cacheName)) {
                  if (matches(table.schemaName(), schemaPtrn))
                     schemas.add(table.schemaName());
              }
      }
      

      see org.apache.ignite.internal.processors.odbc.jdbc.JdbcRequestHandler#getSchemas

      If we havn't started cache(with a table) on some remote node, we will miss that scheme.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pkouznet Pavel Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: