[asterisk-bugs] [JIRA] (ASTERISK-24582) realtime with multiple destinations using priorities results in duplicate queries

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Dec 4 20:15:29 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=223892#comment-223892 ] 

Rusty Newton commented on ASTERISK-24582:
-----------------------------------------

Yeah the way the documentation reads, I would expect the same thing - that the failover should only be tried in the case of an error.

>From extconfig.conf
{noformat}
;example => odbc,asterisk,alttable,1
;example => mysql,asterisk,alttable,2
;example2 => ldap,"dc=oxymium,dc=net",example2
;
; Additionally, priorities are now supported for use as failover methods
; for retrieving realtime data.  If one connection fails to retrieve any
; information, the next sequential priority will be tried next.  This
; especially works well with ODBC connections, since res_odbc now caches
; when connection failures occur and prevents immediately retrying those
; connections until after a specified timeout.  Note:  priorities must
; start at 1 and be sequential (i.e. if you have only priorities 1, 2,
; and 4, then 4 will be ignored, because there is no 3).
{noformat}

> realtime with multiple destinations using priorities results in duplicate queries
> ---------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24582
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24582
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_config_odbc
>    Affects Versions: 11.14.1
>         Environment: Using asterisk 11.14.1 RPMs on CentOS 6.6
>            Reporter: dant
>            Severity: Minor
>
> Asterisk is configured to use realtime via ODBC. The database is Percona XtraDB Cluster with 4 configured nodes (multi-master) for Asterisk for failover, priorities have been defined. Pulling realtime information works well, but, updates that store to realtime show running against all databases, this is most noticeable for INSERTs to queue log where entries appear 4 times in the database with only the autoincrementing ID different between rows, but can be seen with sippeers UPDATES in logging too.
> From extconfig.conf:
> queue_log => odbc,db1,queue_log,1
> queue_log => odbc,db2,queue_log,2
> queue_log => odbc,db3,queue_log,3
> queue_log => odbc,db4,queue_log,4
> Expected behavior:
> If the log can be written to db1, then it is written only to db1. If there is a failure, the next highest priority, i.e. db2, is tried.
> Observed behavior:
> The log appears to be written to all servers, which, being multi-master, results in duplicate log inserts.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list