[ 
https://issues.apache.org/jira/browse/AMQ-7013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16548067#comment-16548067
 ] 

ASF subversion and git services commented on AMQ-7013:
------------------------------------------------------

Commit 063d21f88062a09b7efc1669608cbbacdeb11aac in activemq's branch 
refs/heads/master from jgoodyear
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=063d21f ]

[AMQ-7013] Adding unit test


> XATransactionID hash function may generate duplicates.
> ------------------------------------------------------
>
>                 Key: AMQ-7013
>                 URL: https://issues.apache.org/jira/browse/AMQ-7013
>             Project: ActiveMQ
>          Issue Type: Bug
>            Reporter: Jamie goodyear
>            Priority: Major
>             Fix For: 5.16.0, 5.15.5
>
>
> XATransactionID hash function may generate duplicates.
> Scenario:
> XID formatId, GlobalTransaction, and BranchQualifier values are identical for 
> many entries. We need to use a better hash function to avoid populating a map 
> with many entries in the same bucket (results in bucket having O(n) 
> performance on recovery).
> Example using existing Hash Function:
> 2018-07-18 06:13:29,866 | INFO  | Recovering from the journal @1:28 | 
> org.apache.activemq.store.kahadb.MessageDatabase | main
> 2018-07-18 06:23:04,070 | INFO  | @2:484592, 100000 entries recovered .. | 
> org.apache.activemq.store.kahadb.MessageDatabase | main
> 2018-07-18 06:23:04,099 | INFO  | Recovery replayed 100453 operations from 
> the journal in 574.233 seconds. | 
> org.apache.activemq.store.kahadb.MessageDatabase | main

> Using JenkinsHash:
> 2018-07-18 10:58:43,713 | INFO  | Recovering from the journal @1:28 | 
> org.apache.activemq.store.kahadb.MessageDatabase | main
> 2018-07-18 10:58:51,302 | INFO  | @2:484592, 100000 entries recovered .. | 
> org.apache.activemq.store.kahadb.MessageDatabase | main
> 2018-07-18 10:58:51,329 | INFO  | Recovery replayed 100453 operations from 
> the journal in 7.618 seconds. | 
> org.apache.activemq.store.kahadb.MessageDatabase | main



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to