Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2194

Java examples crash when closing connections

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: WT2.6.1
    • Fix Version/s: WT2.7.0
    • Labels:
      None
    • # Replies:
      3
    • Last comment by Customer:
      true

      Description

      All the Java examples now crash when the connection is closed. Background: our Java SWIG layer sets up callbacks for cursors/sessions/connections that are closed – needed so that the Java objects associated with these are tagged so that a Java reference on a closed handle will give an appropriate Java exception. The callback is now being called with a cursor on "WiredTigerLAS.wt" that the Java code did not explicitly open, and the WT_CURSOR.lang_private field is NULL, the SWIG layer does not handle this.

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'ddanderson', u'name': u'Don Anderson', u'email': u'dda@ddanderson.com'}

          Message: WT-2194 Handle close callbacks for cursors that were not opened by Java.
          This can now happen, as WiredTigerLAS.wt is opened internally.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/5a3b104d58071fc9ca4013fd9febd74cfa2e248a

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'ddanderson', u'name': u'Don Anderson', u'email': u'dda@ddanderson.com'} Message: WT-2194 Handle close callbacks for cursors that were not opened by Java. This can now happen, as WiredTigerLAS.wt is opened internally. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/5a3b104d58071fc9ca4013fd9febd74cfa2e248a
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'ddanderson', u'name': u'Don Anderson', u'email': u'dda@ddanderson.com'}

          Message: WT-2194. Do not expose the LAS file to the close callback extension API.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/87533c6d3953eee3d71f35438c484df96fd203d4

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'ddanderson', u'name': u'Don Anderson', u'email': u'dda@ddanderson.com'} Message: WT-2194 . Do not expose the LAS file to the close callback extension API. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/87533c6d3953eee3d71f35438c484df96fd203d4
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'}

          Message: Merge pull request #2283 from wiredtiger/wt-2194-java-close

          WT-2194: Java close callbacks should handle cursors that Java code did not open.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/9b1febc628f921f7cdf7e9521ef74c13520ef994

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'} Message: Merge pull request #2283 from wiredtiger/wt-2194-java-close WT-2194 : Java close callbacks should handle cursors that Java code did not open. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/9b1febc628f921f7cdf7e9521ef74c13520ef994

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 33 weeks, 4 days ago
                Date of 1st Reply: