db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2107) Move page latching out of the lock manager
Date Sun, 04 Feb 2007 17:09:05 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470067
] 

Knut Anders Hatlen commented on DERBY-2107:
-------------------------------------------

> I agree that any timeout on the latch wait should be a separate
> patch & I believe a separate Jira issue.  For one thing it will
> change the api to use patches, e.g. this logic would no longer work:
>
>  Page page = getPage(...);
>  try {
>      // do something with page
>  } finally {
>      page.unlatch();
>  }
>
> as obviously with a timeout there would be a path through the
> finally block where the page is not latched.

I don't think this will change since the call to getPage() is outside
the try block. The timeout exception will be thrown inside getPage()
and the reference to the page object won't be returned.

> I'm not sure I see the value of a timeout though, though that
> discussion should be in any new issue.

I'll file a new issue where we can discuss ways to report/debug
deadlocks.

> Move page latching out of the lock manager
> ------------------------------------------
>
>                 Key: DERBY-2107
>                 URL: https://issues.apache.org/jira/browse/DERBY-2107
>             Project: Derby
>          Issue Type: Improvement
>          Components: Performance, Services, Store
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: derby-2107-1a.diff, derby-2107-1a.stat, derby-2107-1b.diff, derby-2107-1c.diff,
derby-2107-1c.stat, derby-2107-1d.diff
>
>
> Latching of pages could be done more efficiently locally in store than in the lock manager.
See the discussion here: http://thread.gmane.org/gmane.comp.apache.db.derby.devel/33135

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message