Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 065CED61D for ; Tue, 30 Oct 2012 16:06:16 +0000 (UTC) Received: (qmail 5470 invoked by uid 500); 30 Oct 2012 16:06:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5252 invoked by uid 500); 30 Oct 2012 16:06:14 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 4804 invoked by uid 99); 30 Oct 2012 16:06:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 16:06:13 +0000 Date: Tue, 30 Oct 2012 16:06:13 +0000 (UTC) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Message-ID: <891261248.45028.1351613173117.JavaMail.jiratomcat@arcas> In-Reply-To: <1762881484.10674.1305308027375.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5232) Put a stern README file in log and seg0 directories to warn users of corrpution they will cause if they touch files there MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486969#comment-13486969 ] Mamta A. Satoor commented on DERBY-5232: ---------------------------------------- I will work on putting privileged blocks around file creation. I believe that is the cause behind the failures. Knut, I will also work on your comments. thanks > Put a stern README file in log and seg0 directories to warn users of corrpution they will cause if they touch files there > ------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5232 > URL: https://issues.apache.org/jira/browse/DERBY-5232 > Project: Derby > Issue Type: Improvement > Components: Store > Affects Versions: 10.8.1.2 > Reporter: Kathey Marsden > Assignee: Mamta A. Satoor > Attachments: DERBY5232_patch1_diff.txt, DERBY5232_patch1_stat.txt, DERBY5232_patch2_diff.txt, DERBY5232_patch2_stat.txt, DERBY5232_patch3_diff.txt, DERBY5232_patch3_stat.txt, DERBY5232_patch4_diff.txt, DERBY5232_patch4_stat.txt > > > Users often on bad advice or desperation touch or delete files in the log or seg0 directories (mostly log). > I think it would be good for new databases and on upgrade that a file be created in these directories with a name like: > TOUCHING_FILES_HERE_WILL_CORRUPT_DB_README.txt > or some such to warn of the perils of doing this and the corrupting effects and how it can eliminate any possibility of salvage. It should also encourage users to make a zip backup of the database directory with no jvm currently accessing it before trying to do anything with the database if it appears to be already corrupt. Also point to backup/restore documentation and encourage restore of a good backup into an empty directory if the database is corrupt. > I'm not sure if it would help but it couldn't hurt. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira