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

JDBC thin client SELECT hangs under 2.8.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.8
    • 2.8.1
    • jdbc, security
    • Docs Required, Release Notes Required

    Description

      When security is enabled, and an update or select sql is issued from dbeaver, the security context in
      class GridIOManager ,
      method -createGridIoMessage -
      line - ctx.security().securityContext() returns  the securitycontext of the thin client.

      The message generated out of createGridIoMessage  is passed on to the next node.

      This is used in
      class - IgniteSecurityProcessor
      method - ( withContext)
      line - ctx.discovery().node(uuid)
      on the next node :    

      @Override public OperationSecurityContext withContext(UUID nodeId)

      {        return withContext(            secCtxs.computeIfAbsent(nodeId,               uuid -> nodeSecurityContext(                    marsh, U.resolveClassLoader(ctx.config()), ctx.discovery().node(uuid)               )            )        );    }

      The ctx.discovery().node(uuid) used to
      determine the ClusterNode that is passed into nodeSecurityContext() returns
      null, since the uuid is that of the remote client id not the remote node id.

      Hence
      class: SecurityUtils.java
      method : nodeSecurityContext
      line :         byte[] subjBytes = node.attribute(IgniteNodeAttributes.ATTR_SECURITY_SUBJECT_V2);

      Throws null pointer exception since node is null.

      Related ticket : 
      IGNITE-12579
       
      Related discussion : 
      http://apache-ignite-users.70518.x6.nabble.com/2-8-0-JDBC-Thin-Client-Unable-to-load-the-tables-via-DBeaver-td31681.html#a31847|

      Attachments

        1. JdbcSelectHangsIn2.8.0Mail.txt
          2 kB
          Veena Mithare

        Issue Links

          Activity

            People

              Unassigned Unassigned
              veenamithare Veena Mithare
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: