Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When merging/pulling chunk index --progress-like output is used despite not passed #2866

Closed
rugk opened this issue Jul 23, 2017 · 12 comments
Closed
Labels

Comments

@rugk
Copy link
Contributor

rugk commented Jul 23, 2017

When you need to merge the chunk index as you deleted the local chunk index/cache, then you always get this log output: (when piping/directing it to a log file as you usually do in automated systems):

Merging chunk index... (0.00%)
Merging chunk index... (1.22%)
Merging chunk index... (3.32%)
[…]
Merging chunk index... (100.00%)

(no original log file, just how I remember it)

However the command I executed there (borg create), did not have the --progress parameter passed, but just some usual ones (-v and --stats), whcih do have such a progress bar/indicator. Thus, IMHO, the behaviour of borg is wrong here. The output without --progress should be something like Merging chunk index... without any percentage.

v1.0.10

@enkore enkore self-assigned this Jul 23, 2017
@enkore enkore mentioned this issue Jul 23, 2017
1 task
@enkore enkore removed their assignment Oct 14, 2017
@ThomasWaldmann
Copy link
Member

I can't find these messages in 1.0.10. There are some other messages, but no percentage progress display. It announces the archives as they get fetched / merged to build the chunks index.

IIRC this was implemented because people complained that it was taking a longer time, but nothing was visible, so they were unsure what's happening / if something was happening. Note that -v means verbose, so you have to expect some informative output.

If you still think this is a bug, reopen it and give more / more precise information.

@rugk
Copy link
Contributor Author

rugk commented Oct 18, 2017

I can't find these messages in 1.0.10. There are some other messages, but no percentage progress display.

Wait… what?
You claim the Merging chunk index... (0.00%) is not there and it is just Merging chunk index... or what?
I mean later you confirm you implemented it, so I don't really know what you want to say here.

Note that -v means verbose, so you have to expect some informative output.

But not --progress. And borg create with -v also shows no progress information about the actual backup (and takes a long time, too), so well…

What is annoying about these messages is just that each 0.0x% is shown and this spams your whole log file, when you pipe the output into your log.

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Oct 18, 2017

It is implemented in 1.1.x.

@enkore
Copy link
Contributor

enkore commented Oct 18, 2017

The problematic stuff is all what runs server side.

This is about the cache sync.

@ThomasWaldmann
Copy link
Member

Corrected. But still, there is no such progress in 1.0.10.

@rugk
Copy link
Contributor Author

rugk commented Oct 19, 2017

So v1.1.0 of borg do not display the progress anymore? If so, then this is fixed.

BTW on the sever side I may indeed used a lower/older version that 1.0.10.

@enkore
Copy link
Contributor

enkore commented Oct 19, 2017

Corrected. But still, there is no such progress in 1.0.10.

1.0 does have this, and shows it as soon as you pass -v.

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Oct 19, 2017

tw@tux:~/w/borg$ git checkout 1.0.10
Note: checking out '1.0.10'.
...
HEAD is now at e5f7121... paperkey.html - decode as utf-8, fixes #2150
tw@tux:~/w/borg$ grep -ri merging.chunk.index borg
(nothing)

@enkore
Copy link
Contributor

enkore commented Oct 19, 2017

https://github.com/borgbackup/borg/blob/1.0.11/borg/cache.py#L352

Merging chunk index... (100.00%)
(no original log file, just how I remember it)

@ThomasWaldmann
Copy link
Member

That is:

  • another message
  • it is only one time
  • not counting percents.

@ThomasWaldmann
Copy link
Member

It is EOD here for me. If there is an issue, feel free to file a new bug and be precise about version number where it is seen and also have precise information not just "as far as I remember".

@borgbackup borgbackup locked and limited conversation to collaborators Oct 19, 2017
@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Oct 20, 2017

Maybe related: #3195 #3196

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants