Subject | Re: [Firebird-Java] Are there plans for streaming backup support? |
---|---|
Author | Mark Rotteveel |
Post date | 2016-02-16T12:25:09Z |
On Tue, 16 Feb 2016 03:42:35 +0200, "Ivan Arabadzhiev intelrullz@...
[Firebird-Java]" <Firebird-Java@yahoogroups.com> wrote:
quick notes
service managers work in Jaybird (that whole logger feels a bit clunky),
and in a future version of Jaybird I wanted to look at changing this (but
no firm plans yet.
a common super-class (or one might extend the other), but I suggest you
first get it working ok, then we can think about extracting the
commonalities.
backups/restores. In any case, Java already has
java.io.SequenceInputStream, for writing there is no equivalent. I don't
know if split backupfiles contain additional headers, etc, and I don't
really see a need to support split backup files for this.
describe this in more detail?
[Firebird-Java]" <Firebird-Java@yahoogroups.com> wrote:
> Hi again,concept
> My insomnia is getting the better of me and I now have a proof of
> athttps://github.com/ls4f/jaybird/blob/streaming-br/src/main/org/firebirdsql/management/FBStreamingBackupManager.java
>
> . Haven't made a PR because it doesn't feel good enough yet, but it doesmeans
> backup and restore successfully at x86_64 linux with fb 2.5.4(which
> it should be less work than I initially thought).I am going to look at it in more detail later this week, but here are some
quick notes
> I have a 25GB db to play with after sunrise, and I will try to test onhappening, I
> 32/64 Windows/Linux this week but :
> 1 Are we ok with the 'hack' I'm using for backing up with by temporarily
> changing the logger? Now that I have some idea what exactly is
> think doing a backup like that should be ok even with my earlier ideaand
> currently released Jaybird.I think for now it is ok. That said I'm not entirely happy with how the
service managers work in Jaybird (that whole logger feels a bit clunky),
and in a future version of Jaybird I wanted to look at changing this (but
no firm plans yet.
> 2 Are we ok with some code being duplicated in the new class? Iin
> suppose FBServiceManager could be reworked so all the handling remains
> it, but I'm not really sure it's worth it - right now there is just thenew
> file and one other changed line.Well, FBBackupManager.java and FBStreamingBackupManager can probably share
a common super-class (or one might extend the other), but I suggest you
first get it working ok, then we can think about extracting the
commonalities.
> 3 Currently the implementation expects InputStream/OutputStream, whichthe
> means no multi-fbk operations. I'm thinking that part could be left to
> users to handle, but providing some default stream-like wrappers won'tbe
> that much more work to do, if it seems necessary.I'm not actually sure if split backupfiles is supported with streamed
backups/restores. In any case, Java already has
java.io.SequenceInputStream, for writing there is no equivalent. I don't
know if split backupfiles contain additional headers, etc, and I don't
really see a need to support split backup files for this.
> 4 I'm not sure if the change in ByteArrayArgument can cause any problemsI'm not sure what you mean could you link to the specific code and
> but if it does - how should I add the byte[] parameter
> for isc_info_svc_stdin?
describe this in more detail?
> 5 Any other thoughts on the generic idea?Mark