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

perf problem in FileSystemStore.openAndLock

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.17.6, 5.0.0.M3
    • 4.16.4, 5.0.0.M2
    • Transaction Core
    • None

      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))

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

                Created:
                Updated:
                Resolved: