Summary:ASTERISK-18315: Problem with batch-creation of astdb entries
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2011-08-22 06:36:37Date Closed:2013-06-25 12:36:43
Versions: Frequency of
Description:(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


$ 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

That is, using astcmd, 3 are missing. It is always the same 3: entries no. 16, 32 and 48 .
Comments:By: Paul Belanger (pabelanger) 2011-09-13 00:22:48.413-0500

FWIW: This would be a straightforward test to add for the testsuite.

By: Matt Jordan (mjordan) 2013-06-25 12:36:43.239-0500

This looks like it was a duplicate of ASTERISK-18308, which has already been fixed.