Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10835

Concurrency issues in JDBC driver

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0
    • 1.3.0, 2.0.0
    • JDBC
    • None

    Description

      Though JDBC specification specifies that "Each Connection object can create multiple Statement objects that may be used concurrently by the program", but that does not work in current Hive JDBC driver. In addition, there also exist race conditions between DatabaseMetaData, Statement and ResultSet as long as they make RPC calls to HS2 using same Thrift transport, which happens within a connection.
      So we need a connection level lock to serialize all these RPC calls in a connection.

      Attachments

        1. HIVE-10835.patch
          22 kB
          Chaoyu Tang
        2. HIVE-10835.3.patch
          14 kB
          Chaoyu Tang
        3. HIVE-10835.2.patch
          14 kB
          Chaoyu Tang
        4. HIVE-10835.1.patch
          9 kB
          Chaoyu Tang

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ctang Chaoyu Tang Assign to me
            ctang Chaoyu Tang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment