pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Stephen Frost <sfrost@snowman.net>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: John Klann <jk7255@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15636: PostgreSQL 11.1 pg_basebackup backup to a CIFS destination throws fsync error at end of backup
Date: Mon, 18 Feb 2019 11:23:39 -0500
Message-ID: <20190218162338.GG6197@tamriel.snowman.net> (raw )
In-Reply-To: <CAEepm=27vTw2xyTh5kAXns8h5zOKUmzBxUL82c-KFFgyUQ0MHw@mail.gmail.com >
References: <CAHyX5+VcEtcoOAo4QQ_20gv7kLYBDnx_YOAnEJQN9KftH0qp9Q@mail.gmail.com >
<CAEepm=0eC5ySeOsXMqXQFeJ64mhgAqxAyuh7JpjCz7uT2Ld0jQ@mail.gmail.com >
<CAHyX5+XqkmHwxLC5aeYOjHFAvnf8X1o3grkzGJOvc-kOGpjQ8g@mail.gmail.com >
<CAHyX5+VO-UTE-pK2i1rWvweU2CpVtHuhXnok29Z66EpLHmiHvw@mail.gmail.com >
<CAEepm=05ff+GRYdVE7+SdDuTVbPqW+Gmpwqir0NtAWNM70jg3g@mail.gmail.com >
<CAHyX5+W2OXAg=qEnObA3g4zU3SkwxTztSfmgmivWnWQWcsc_tA@mail.gmail.com >
<CAEepm=1P0WD_g=ELNmBJFhwKuCjYZOi4p4rutKj3kw7QneLB2A@mail.gmail.com >
<CAHyX5+UxmOn-qpb+++NOr3MfZiXk6WZDKFYTEj+vPbu+3nrhXg@mail.gmail.com >
<CAHyX5+X60D0jtf4dgyt11mH=7XvuW1UOLstY9sBLgukyf8Oo4g@mail.gmail.com >
<CAEepm=27vTw2xyTh5kAXns8h5zOKUmzBxUL82c-KFFgyUQ0MHw@mail.gmail.com >
Greetings,
* Thomas Munro (thomas.munro@enterprisedb.com) wrote:
> On Sat, Feb 16, 2019 at 4:39 AM John Klann <jk7255@gmail.com> wrote:
> > I was able to test the patch without issue and it appears to have worked see below. Let me know if there is further testing I can do or logging you would like.
>
> Thanks. So that leaves the question for the list: should we accept
> this as a bug and consider back-patching it? Our relationship with
> fsync() is ... complicated at the moment.
Yes, we should accept this as a bug and back-patch it, imv.
> Considering that we already
> tolerated EBADF for directories on some other (forgotten?) operating
> system, I think I would vote +1 for doing that ... if I didn't know
> that they'd fixed this on the Linux side, and I see now that they've
> back-patched that even to long term kernel 3.16:
>
> https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.16.60
Which seems like it's just another good reason why we should also
back-patch it.
> PS I found an earlier discussion of this topic that didn't go
> anywhere: https://www.postgresql.org/message-id/flat/E1RhkjA-0005bq-B6%40wrigleys.postgresql.org
As does this.
I would be much more concerned about a change like this if we either
didn't know it was a directory that we got fsync() EINVAL for. Since we
know it's a directory and we know there's filesystems out there which do
synchronous metadata changes and we know they return EINVAL in those
cases, I'm inclined to say we should allow it. In the above thread, Tom
mentioned the standard, which pretty clearly distinguishes between "this
thing you gave to fsync() doesn't support synchronization" and "an I/O
error occured" and it's really the latter that we care about here.
Further, saying "just use --no-sync" is *not* a workaround. That's
throwing the baby out with the bathwater. A workaround would be an
option like "--do-not-complain-about-directory-fsync-einval", but
suggesting that all fsync's be removed is terrible.
Thanks!
Stephen
Attachments:
[application/pgp-signature] signature.asc (818B, ../20190218162338.GG6197@tamriel.snowman.net/2-signature.asc)
download
view thread (18+ messages) latest in thread
Message-ID: <20190218162338.GG6197@tamriel.snowman.net>
Permalink: ../20190218162338.GG6197@tamriel.snowman.net/
Also on: postgresql.org/message-id/20190218162338.GG6197@tamriel.snowman.net
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: sfrost@snowman.net, thomas.munro@enterprisedb.com, jk7255@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15636: PostgreSQL 11.1 pg_basebackup backup to a CIFS destination throws fsync error at end of backup
In-Reply-To: <20190218162338.GG6197@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox