#2709 closed defect (fixed)

Magic Folder: update Operational Statistics page to take account of renames

Reported by: daira Owned by: daira
Priority: normal Milestone: eventually
Component: code-frontend-web Version: n/a
Keywords: magic-folder Cc:
Launchpad Bug:

Description

Drop-Uploader

Local Directories Monitored: 0 directories
Files Uploaded: 0 files
File Changes Queued: 0 files
Failed Uploads: 0 files

Raw Stats:

{'counters': {'magic_folder.uploader.directories_created': 1,
              'magic_folder.uploader.dirs_monitored': 1,
              'magic_folder.uploader.objects_not_uploaded': 3,
              'magic_folder.uploader.objects_queued': -1,
              'magic_folder.uploader.objects_succeeded': 4,
              'mutable.bytes_published': 385,
              'mutable.bytes_retrieved': 36194,
              'mutable.files_published': 1,
              'mutable.files_retrieved': 83,
              'uploader.bytes_uploaded': 0,
              'uploader.files_uploaded': 1},
[...]

Besides the name of the section being wrong, the counts are shown as zeroes in the "Drop-Uploader" section because they are looking at the wrong raw counter names. (An underlying design flaw is that querying a non-existent counter gives 0, rather than an error.)

Change History (5)

comment:1 Changed at 2016-01-14T18:20:33Z by daira

'magic_folder.uploader.objects_queued': -1 probably also indicates a bug somewhere.

(This is not part of this ticket; see #2731.)

Last edited at 2016-02-15T15:59:30Z by daira (previous) (diff)

comment:2 Changed at 2016-02-02T17:27:50Z by warner

  • Milestone changed from 1.10.3 to eventually

comment:3 Changed at 2016-02-17T13:34:19Z by dawuud

We improved the unit tests here in this dev branch https://github.com/david415/tahoe-lafs/tree/2709.fix-magic-folder-stats.1

comment:4 Changed at 2016-02-18T15:44:31Z by daira

  • Resolution set to fixed
  • Status changed from new to closed

Fixed on 2438.magic-folder-stable.12.

comment:5 Changed at 2016-07-21T21:32:36Z by Brian Warner <warner@…>

In dd0597f/trunk:

Work in progress to fix incorrect statistics output for Magic Folder. refs ticket:2709

Note: See TracTickets for help on using tickets.