Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4393

Duplicate Xid with multiple JVMs on single host - default impl needs some 'random' entropy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4, 2.2
    • transaction manager
    • Security Level: public (Regular issues)
    • None
    • multiple JVMs on single machine

    • Patch Available

    Description

      the default generation of baseId in XidFactoryImpl is not sufficient for multiple JVMs on a single node. There needs to be some entropy in the form of a few Random bytes to ensure that ids are different because given a duplication of code, the hashCode of the XidFactoryImpl will not be unique across the JVMs and given a single node, the IP addresss will be shared.

      This emerged via https://issues.apache.org/activemq/browse/AMQ-1824 where the workaround was to pass in the baseId as a constructor arg via spring.

      Attachments

        1. GERONIMO-4393.patch
          1 kB
          Gary Tully

        Activity

          People

            gawor@mcs.anl.gov Jarek Gawor
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: