[asterisk-bugs] [JIRA] (ASTERISK-23111) astdb entries added just before shutdown are not saved

Tzafrir Cohen (JIRA) noreply at issues.asterisk.org
Thu Jan 9 16:27:03 CST 2014


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

Tzafrir Cohen commented on ASTERISK-23111:
------------------------------------------

The name "db_sync()" is misleading. It signals the DB thread and doesn't actually sync on its own. And indeed I see that in my case db_sync_thread() doesn't wake from ast_cond_wait(&dbcond, &dblock) in time for the shutdown.
                
> astdb entries added just before shutdown are not saved
> ------------------------------------------------------
>
>                 Key: ASTERISK-23111
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23111
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/AstDB
>    Affects Versions: SVN, 11.2.0, 11.7.0
>            Reporter: Tzafrir Cohen
>            Severity: Minor
>         Attachments: test_ast_add_exit.sh
>
>
> If I add a large number of entries to astdb and then stop asterisk, all or most of the entries will not be saved into the sqlite database on disk.
> Attached a script that demonstrates the issue. Use the option 'clean' to delete the entries. Unrem the line with 'sleep 5' to work around the issue.
> Tested currently on branch 11: both 11.7.0 and SVN (branch 11 rev. 404888  - before and after recent astdb fix and trunk rev. 371521) as well as with 11.2.0 and 10.12.1 .
> Attached a script that tests the issue.

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