You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2019/09/06 06:57:00 UTC
[jira] [Resolved] (FELIX-4924) ConfigAdmin update results in empty
file or corrupt file.
[ https://issues.apache.org/jira/browse/FELIX-4924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved FELIX-4924.
-------------------------------------
Resolution: Won't Fix
> ConfigAdmin update results in empty file or corrupt file.
> ---------------------------------------------------------
>
> Key: FELIX-4924
> URL: https://issues.apache.org/jira/browse/FELIX-4924
> Project: Felix
> Issue Type: Bug
> Components: Configuration Admin
> Affects Versions: configadmin-1.4.0, configadmin-1.8.0
> Environment: Windows Server 2003 + 2008.
> Redhat
> Centos
> Reporter: Neil Wightman
> Priority: Major
>
> We have been hitting a rare but consistent problem with config admin.
> The problem is that a config admin file is becoming corrupt. I.e the file will contain only NULL characters. Last time this happened the config file had 1080 NULL characters in it.
> This seems to occur when a config is being updated as the JVM is stopping / shutting down.
> All the code in the FilePersistenceManager._store() method looks good and safe but this issue still keeps occuring.
> We it occur 3 times last week out of a few hundred servers.
> I think the problem is that the new File being written is not being flushed to disk in time.
> I think ConfigAdmin needs to ensure the new config is flushed to disk after the close.
> {code}
> tmpFile = File.createTempFile( cfgFile.getName(), TMP_EXT, cfgDir );
> out = new FileOutputStream( tmpFile );
> ConfigurationHandler.write( out, props );
> out.close();
> try
> {
> // attempt force to sync to disk
> out.getFD().sync();
> }
> catch (SyncFailedException sync)
> {
> // ignore
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
Re: [jira] [Resolved] (FELIX-4924) ConfigAdmin update results in
empty file or corrupt file.
Posted by Sascha Homeier <sh...@apollon.de>.
Vielen Dank für Ihre Nachricht.
Ich bin ab dem 09.09.2019 wieder im per Mail erreichbar.
In dringenden Fällen wenden sie sich bitte an jschoettle@apollon.de
Mit freundlichen Grüssen
Sascha Homeier
P. +84 166 456-3331
shomeier@apollon.de
apollon GmbH+Co. KG
Maximilianstr. 104
75172 Pforzheim
www.apollon.de
Geschäftsführer: Eugen Müller, Norbert Weckerle
Amtsgericht Mannheim HRA 705979
PhG: apollon Verwaltungs-GmbH Mannheim HRB 720987
Fashion meets AI - HACKATHON
14. – 15.09.2019 in Pforzheim
more information!