synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiranya Jayathilaka (JIRA)" <>
Subject [jira] Commented: (SYNAPSE-664) Make the MultiXMLConfigurationSerializer More Reliable
Date Mon, 21 Jun 2010 09:22:24 GMT


Hiranya Jayathilaka commented on SYNAPSE-664:

Implemented the above mentioned safe strategy in MXCL.

> Make the MultiXMLConfigurationSerializer More Reliable
> ------------------------------------------------------
>                 Key: SYNAPSE-664
>                 URL:
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: NIGHTLY
>            Reporter: Hiranya Jayathilaka
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.0
> Currently this is how the MultiXMLConfigurationSerializer (MXCL) saves the configuration
to the file system:
> 1. Backup the existing synapse-config directory
> 2. Create a new synapse-config directory and the necessary child directories
> 3. Serialize the configuration to the files (this can fail due to an IO error - eg: running
out of file handles in the system)
> 4. Delete the backup
> If step 2 or 3 fails, MXCL tries to restore the backup. But in most practical scenarios,
when IO operations fail, they fail in chunks. Therefore most of the time, the restoration
operation never succeeds. This can leave Synapse with either no or partially done synapse-config
directory. We can make the process more reliable implementing the following strategy:
> 1. Create a temp directory
> 2. Serialize the entire configuration the temp directory (leave the original synapse-config
directory intact)
> 3. Once the serialization is completed move the temp directory as the new synapse-config
> This way if something goes wrong during serialization, the original synapse-config directory
won't be affected.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message