geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-4393) Duplicate Xid with multiple JVMs on single host - default impl needs some 'random' entropy
Date Mon, 03 Nov 2008 12:03:44 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-4393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Tully updated GERONIMO-4393:
---------------------------------

    Attachment: GERONIMO-4393.patch

some pseudo code that adds some entropy to the default baseId.
One random byte may be sufficient, or the random could be munged with the hashCode system
Identity.
The simplest and most reliable is to use a few extra bytes I think.

> Duplicate Xid with multiple JVMs on single host - default impl needs some 'random' entropy
> ------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4393
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4393
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: transaction manager
>    Affects Versions: 2.1.3
>         Environment: multiple JVMs on single machine
>            Reporter: Gary Tully
>         Attachments: GERONIMO-4393.patch
>
>
> 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.

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