From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 16165] Wrong data returned on read after write if file size was changed with ftruncate before
Date: Mon, 16 Aug 2010 13:24:40 GMT [thread overview]
Message-ID: <201008161324.o7GDOeAi006921@demeter.kernel.org> (raw)
In-Reply-To: <bug-16165-13602@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=16165
Michael Tokarev <mjt@tls.msk.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mjt@tls.msk.ru
--- Comment #23 from Michael Tokarev <mjt@tls.msk.ru> 2010-08-16 13:24:32 ---
Yesterday I observed another data corruption that looks very close to this one,
but slightly different (and much more serious).
The scenario is this: oracle10 database, creating db and importing data.
Oracle uses ftruncate() to create file of a desired size, next it fills the
file with block headers, so there's no unwritten data in the file. So far so
good. There's also temporary tablespaces, which aren't filled during creation,
but just ftruncate'd.
The problem here happens when I extend a temp file during heavy database
writes. It were needed a few times because in order to create large indexes,
large temporary space were needed.
And each time I try extend temp file (say, from 10 to 20Gb), oracle performs
the ftruncate on it, and continues writing to it and to other data files (which
were pre-filled after ftruncate, even before system restart). And during this
time, there's a very likely chance to have _other_ data files to be corrupt
while it is writing to the newly extended temp space.
We observed several chunks of zeros (of size 1Mb each) written over _other_
files during this time. Re-read of those other files returns the same zeros.
So, this delayed allocation corrupts _other_ data files which are already
allocated and written.
Avoiding gaps eliminates the problem.
Note that oracle uses aio and direct-io and "gapful" files at least for the
temporary ts.
The kernel in question is 2.6.32.15.
This is quite a major issue...
But I repeat: i'm not sure it's related to this bugreport. At least the roots
are somewhere very close.
BTW, when it started in XFS, anyone know?
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
next prev parent reply other threads:[~2010-08-16 13:24 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 22:01 [Bug 16165] New: Wrong data returned on read after write if file size was changed with ftruncate before bugzilla-daemon
2010-06-08 22:25 ` [Bug 16165] " bugzilla-daemon
2010-06-08 22:27 ` bugzilla-daemon
2010-06-08 22:29 ` bugzilla-daemon
2010-06-08 22:38 ` bugzilla-daemon
2010-06-09 15:26 ` bugzilla-daemon
2010-06-09 15:49 ` bugzilla-daemon
2010-06-09 22:57 ` bugzilla-daemon
2010-06-10 7:38 ` bugzilla-daemon
2010-06-11 14:26 ` bugzilla-daemon
2010-06-16 8:19 ` bugzilla-daemon
2010-06-18 15:13 ` bugzilla-daemon
2010-06-18 15:30 ` bugzilla-daemon
2010-06-19 18:10 ` bugzilla-daemon
2010-06-19 18:12 ` bugzilla-daemon
2010-06-24 15:53 ` bugzilla-daemon
2010-06-24 22:20 ` bugzilla-daemon
2010-06-27 9:05 ` bugzilla-daemon
2010-07-23 21:45 ` bugzilla-daemon
2010-07-23 21:51 ` bugzilla-daemon
2010-07-23 22:09 ` bugzilla-daemon
2010-08-04 2:06 ` bugzilla-daemon
2010-08-04 3:40 ` bugzilla-daemon
2010-08-16 13:24 ` bugzilla-daemon [this message]
2010-08-16 19:26 ` bugzilla-daemon
2010-08-16 19:59 ` bugzilla-daemon
2010-11-04 11:00 ` bugzilla-daemon
2011-01-10 12:40 ` bugzilla-daemon
2011-04-23 17:42 ` bugzilla-daemon
2012-07-20 12:58 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008161324.o7GDOeAi006921@demeter.kernel.org \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.