GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib/batcher: log when committing uploads has finished - fixes #5564 by hsdfat · Pull Request #10057 · rclone/rclone

Conversation

@hsdfat

@hsdfat hsdfat commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What does this change do?

When the batcher shuts down it logs Committing uploads - please wait... and then nothing more, so the log looks as if rclone stopped part way through. As suggested in the issue, this adds a new message after b.wg.Wait(), once the outstanding batches have been committed. The existing message is unchanged:

INFO  : Dropbox root 'x': Committing uploads - please wait...
INFO  : Dropbox root 'x': Committing uploads - done
  • The new message is logged at INFO, like the existing one.
  • The batcher now lives in lib/batcher, so the change covers both dropbox and googlephotos.
  • "done" means the commit has finished. If a batch failed, that error is still logged above this line, as before.

The bisync test log filter drops the existing message, so I added the new one next to it. Without that, the bisync golden tests would fail on dropbox.

Testing

  • TestBatcherShutdownLog commits an item to an async batcher and shuts it down. It checks that the new message is logged after the batch has been committed. It fails on master.
  • These pass: go build ./..., make quicktest, go test ./lib/batcher/ ./cmd/bisync/, go test -race ./lib/batcher/, go vet and golangci-lint run ./lib/batcher/... ./cmd/bisync/....
  • I don't have dropbox or Google Photos accounts, so I haven't run test_all against them. The change is in the shared batcher and is covered by the test above.

Linked issue

Fixes #5564

Checklist

  • This change is trivial OR it has been discussed and agreed in the linked issue.
  • I have read the contribution guidelines.
  • (If I used AI tools to help write this code) I have read and understood the AI-assisted contributions guidance, and I have tested and take ownership of this change myself.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate. (No doc change needed: log output only.)
  • All commit messages are in house style.
  • (Backend changes only) test_all passes for this backend. n/a, not a backend change.
  • This Pull Request is ready for review.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hsdfat
lib/batcher: log when committing uploads has finished - fixes rclone#…
08bad09
…5564

On shutdown the batcher logged "Committing uploads - please wait..."
but nothing once the commit had completed, so the log looked as if
rclone had stopped part way through. Log "Committing uploads - done"
when the pending batches have been committed.

This affects the backends which use the batcher, dropbox and
googlephotos.
@hsdfat
hsdfat requested review from ivandeex, ncw and nielash as code owners October 8, 2026 17:45
ncw
ncw approved these changes Oct 13, 2026
View reviewed changes

@ncw ncw left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you :-)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ncw
ncw merged commit 102ef16 into rclone:master Oct 13, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@hsdfat
hsdfat deleted the batcher-log-commit-done-5564 branch November 6, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ncw ncw ncw approved these changes
@nielash nielash Awaiting requested review from nielash nielash is a code owner
@ivandeex ivandeex Awaiting requested review from ivandeex ivandeex is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Improve sync confirmation message text for Dropbox

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@hsdfat @ncw
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.