[asterisk-bugs] [JIRA] (ASTERISK-18315) Problem with batch-creation of astdb entries

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Jun 25 12:38:04 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-18315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan closed ASTERISK-18315.
----------------------------------

    Resolution: Duplicate

This looks like it was a duplicate of ASTERISK-18308, which has already been fixed.
                
> Problem with batch-creation of astdb entries
> --------------------------------------------
>
>                 Key: ASTERISK-18315
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-18315
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 1.8.5.0
>            Reporter: Tzafrir Cohen
>            Severity: Minor
>
> (I'm not completely sure that the following is a legitimate bug, but anyway)
> Following the Freepbxdb.pm modules I added to dahdi-perl ( http://svnview.digium.com/svn/dahdi?view=revision&revision=10142 ), and some potential astdb corruption cases I encountered to make a simpler test case of a direct write of commands to the asterisk.ctl .
> The attached astcmd is a script that uses the same code and accepts any commands from the standard input.
> $ (echo database deltree tzafrir; for i in `seq 50`; do echo database put tzafrir test$i 123; done) | astcmd
> $ asterisk -rx 'database show tzafrir'  | grep ^/  | wc -l
> 47
> Whereas:
> $ asterisk -rnx 'database deltree tzafrir'>/dev/null; for i in `seq 50`; do asterisk -rnx "database put tzafrir test$i 1234" >/dev/null; done
> $ asterisk -rx 'database show tzafrir'  | grep ^/  | wc -l
> 50
> That is, using astcmd, 3 are missing. It is always the same 3: entries no. 16, 32 and 48 .

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list