Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1712

perf problem in FileSystemStore.openAndLock

    XMLWordPrintable

Details

    Description

      if(!file.exits())
      {
      if(createHierarchy(file))

      incorrectly calls the expensive (because synchronized) createHierarchy method in the common case where the file does not exist (because it's a uniq named new tx record) but the directory hierarchy does (because it's the create-once hashed dir tree). This causes excessive contention on the FileSystemStore instance object monitor lock. Should probably be something more like

      if(!file.getParent().exists())
      {
      if(createHierarchy(file))

      Attachments

        Activity

          People

            nmcl2001 Mark Little
            rhn-engineering-jhallida Jonathan Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: