Closed Bug 473716 Opened 16 years ago Closed 15 years ago

Total download count occasionally shows up as zero

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwkbugzilla, Assigned: clouserw)

References

()

Details

Attachments

(6 files)

I added a new extension three days ago. The download count is low but it is being downloaded. For such a new extension "weekly downloads" and "total downloads" should be the same. Yet, when I checked https://addons.mozilla.org/en-US/firefox/addon/10345 yesterday I saw the correct weekly download count but zero downloads in total. This disappeared shortly afterward when the page got updated, now it shows correct numbers. Today I wanted to look at the statistics dashboard (https://addons.mozilla.org/en-US/statistics/addon/10345) - and this time it showed zero total downloads and "we don't have any data for this extension". All the other values were correct, and of course yesterday the statistics dashboard was showing the data correctly. Logging in didn't change anything. Again, after something like half an hour the issue disappeared and now it shows 144 total downloads (same as weekly downloads).
Hm, now https://addons.mozilla.org/en-US/firefox/addon/10345 shows "0  weekly downloads" while the total downloads are correct. Again, logging in doesn't change anything.
Since I'm waist deep in stats already I'll have a look at this too
Assignee: nobody → clouserw
Sounds like bug 426467.
OS: Windows XP → All
Hardware: x86 → All
Yes, certainly sounds like it. But bug 426467 is WORKSFORME - this one certainly isn't (yet?).
Haha, not yet. ;)

(I haven't reproduced this yet, for what it's worth)
Attached image Screenshot
I made a screenshot this time. Checked the page shortly after I uploaded a new version - and weekly downloads count shows up as zero (page is cached, still shows the old version).
Attached image Another screenshot
The page got updated yet the glitch in download counts remains.
Just reloaded the page again and now it shows "154  weekly downloads".
Seeing as Wil is looking into things over here I'll note this here instead of reviving bug 426467 or filing another.

Flagfox's public page currently lists 78,035 weekly downloads and a whopping 119 total downloads. The stats page currently says 79,927 weekly downloads and 4,382,867 total downloads.
Attached image Yes another screenshot
One more screenshot - this time total downloads are zero whereas weekly downloads are correct.
We do believe you without the need for another screenshot.  ;)
Just to show that both values have occasional and independent glitches - and put a timestamp on those.
"zero total downloads" issue is stable right now, both in statistics dashboard and in the add-on listing - maybe caused by the log processing script?
So, when the totaling script runs it does:

- set all download counts to zero
- total all add-ons
- update download counts

It sounds like you're hitting the page between step 1 and 3.  I don't know why step 1 even exists though.
Attachment #361535 - Flags: review?(morgamic)
Comment on attachment 361535 [details] [diff] [review]
don't reset the numbers

Don't know why the zeroing exists either.  Seems that doing this way makes it less fault tolerant as well.  So... I'm all for this - makes sense.
Attachment #361535 - Flags: review?(morgamic) → review+
Thanks, in r22123.  I'm calling this fixed and dropping it in the 5.0.2 milestone which goes out next week.
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: push-needed
Resolution: --- → FIXED
Target Milestone: --- → 5.0.2
I see "0  weekly downloads" for Adblock Plus right now. This was supposed to be fixed in production, reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
It's looking OK for me now, are you still seeing this?
As usually, this issue only stays for one hour (until the cache expires). Right now it is fine for me again.
Target Milestone: 5.0.2 → 5.0.4
Here's a screenshot of a new odd one I just saw. Right in the middle of the "popular" list, which lists by weekly downloads, I see an add-on who says it has 0 weekly downloads. The add-on's page itself shows correctly.
Weekly counts suffer the same problems totals did.  This patch is slower but avoids the blanket reset and speed isn't a big deal in this case anyway.
Attachment #368026 - Flags: review?(morgamic)
(In reply to comment #24)
> Weekly counts suffer the same problems totals did.  This patch is slower but
> avoids the blanket reset and speed isn't a big deal in this case anyway.

Why do we not do that as a single SQL command? Seems to me like the whole looping through arrays is rather clumsy?
Attachment #368026 - Flags: review?(morgamic) → review?(fwenzel)
Comment on attachment 368026 [details] [diff] [review]
fix weekly counts

morgamic is out today and wenzel has grand ideas so r? to wenzel. :)
Comment on attachment 368026 [details] [diff] [review]
fix weekly counts

faaantastic. This only runs nightly, right? In that case I don't think the loops are a big deal.
Attachment #368026 - Flags: review?(fwenzel) → review+
Thanks, r24168.  Hopefully this stays closed this time. :)  This code will be live Thursday night.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Keywords: push-needed
Resolution: --- → FIXED
I think this is going to be hard to test on preview, since its DB is an older prod dump -- when was it last taken?  Right now, I'm seeing a lot of "0 weekly downloads".
Looks like the last sync was on 2008-11-14 (bug 464829). Preview always has "0 weekly downloads"; it has separate stats. It has gotten a bit stale, so filing another resync request bug might be a good idea.
Has this been pushed to production?
Keywords: push-needed
Yes
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: