Derby
  1. Derby
  2. DERBY-4081

BTreeController.comparePreviousRecord() may fail to release latch on left-most leaf

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.4.2.0
    • Fix Version/s: 10.4.2.1, 10.5.3.1, 10.6.1.0
    • Component/s: Store
    • Labels:
      None
    • Urgency:
      Normal

      Description

      If comparePreviousRecord() is called on some other leaf page than the left-most leaf, and all the rows to the left of the current position are deleted so that the position is moved all the way to slot 0 on the left-most leaf, comparePreviousRecord() will return without releasing the latch on the left-most leaf. Only the leaf on which comparePreviousRecord() is called should be latched when the method returns.

      Since comparePreviousRecord() currently fails to continue after finding a deleted row, this bug is not possible to expose until DERBY-4028 is fixed.

      1. derby-4081-1a.diff
        1 kB
        Knut Anders Hatlen
      2. derby-4081-1b.diff
        3 kB
        Knut Anders Hatlen

        Activity

        Knut Anders Hatlen created issue -
        Knut Anders Hatlen made changes -
        Field Original Value New Value
        Attachment derby-4081-1a.diff [ 12401305 ]
        Rick Hillegas made changes -
        Urgency Normal
        Issue & fix info [Patch Available]
        Knut Anders Hatlen made changes -
        Assignee Knut Anders Hatlen [ knutanders ]
        Knut Anders Hatlen made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Knut Anders Hatlen made changes -
        Attachment derby-4081-1b.diff [ 12416864 ]
        Knut Anders Hatlen made changes -
        Fix Version/s 10.6.0.0 [ 12313727 ]
        Issue & fix info [Patch Available]
        Knut Anders Hatlen made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 10.4.2.1 [ 12313401 ]
        Fix Version/s 10.5.3.1 [ 12314154 ]
        Resolution Fixed [ 1 ]
        Dag H. Wanvik made changes -
        Fix Version/s 10.5.3.1 [ 12314182 ]
        Fix Version/s 10.5.4.0 [ 12314154 ]
        Gavin made changes -
        Workflow jira [ 12453817 ] Default workflow, editable Closed status [ 12799041 ]

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development