Re: Application_API: MAX-LEVEL
Jean-Louis Martineau <[email protected]> Mon, 11 Sep 2017 15:05:12 -0400
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/09/17 02:11 PM, Chapman Flack wrote: > On 09/11/17 14:03, Jean-Louis Martineau wrote: >> On 11/09/17 11:37 AM, Chapman Flack wrote: >>> What should an application report for the 'support' MAX-LEVEL item? >> The support subcommand is not called with host and disk argument. >> It must report the maximum level the application support, in your case 99. >> There is a hard limit of 399. > Ok. > >> -1 -1 means the application can't compute the estimate, so an estimate >> server can be used. >> The Amanda::App_Script::ERROR should be used only when all estimate fail. >> There is no way do what you want. >> I committed a patch to allow it , the application must output "-2 -2" > Let me see if I understand now: -2 -2 means "this level isn't possible > because there is no prior level - 1", -1 -1 means "this level should be > possible but something went wrong", and ::ERROR means "something went > so wrong I couldn't do any level at all"? > > I wonder if there was really a need for adding -2 -2 ... backups have > been working fine on my system just returning -1 -1 for the levels that > can't be computed. The planner picks a level that didn't come back -1 -1 > and everything works. It depend of the estimate setting. With "estimate client", -1 and -2 will be a failure With "estimate client server", -1 will use the server estimate and -2 will be a failure The problem is if server is listed before client estimate server client In that case, the application estimate command is never executed and the server estimate is always used Jean-Louis This message is the property of CARBONITE, INC. and may contain confidential or privileged information. If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone. Instead, destroy it and notify me by reply e-mail