Hangs for a few seconds when entering the last page when the metrics server is unavailable

Bug #1761742 reported by Iain Lane
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-initial-setup (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

This server doesn't work at the minute.

When advancing to the last page of the wizard, the following message is displayed:

** (gnome-initial-setup:803): WARNING **: 13:44:36.643: Failed to send decline: data were not delivered successfully to metrics server: couldn't send post http request: Post https://metrics.ubuntu.com/ubuntu/desktop/18.04: dial tcp 127.0.0.53:53: i/o timeout

and there is a delay of a few seconds displaying the page.

I suppose the calls to sysmetrics to send the report/decline should be done asynchronously. It's probably not a big problem if a few people manage to quit before the submission is finished, but if it is then there would need to be a way for the quit button to wait for all save calls to finish their async work.

Jeremy Bícha (jbicha)
description: updated
Revision history for this message
Robert Ancell (robert-ancell) wrote :

@didrocks - is libsysmetrics thread-safe? I guess I should just wrap the call in a thread?

Changed in gnome-initial-setup (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

libsysmetrics is using multiple goroutines (and potentially threads), but all the external API is thread-safe, I took care to not do any operations which can change the global state for that purpose.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I think “Continue” should advance immediately to the next step, regardless of how long any submission takes or whether it fails. The user is doing us a favour by submitting data, and there’s no need for us to bother them at all if it happens not to work. It’s not as if we’re desperately short of submissions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.