Closed Bug 1296091 Opened 10 years ago Closed 10 years ago

fx-team missing a push (876756efc390)

Categories

(Tree Management :: Treeherder: Data Ingestion, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: camd)

References

Details

Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
The servers are each advertising the pushlog through the JSON endpoint: $ ansible -i ansible/hosts hgweb-prod -a 'curl -s http://localhost/integration/fx-team/json-pushes?changeset=876756efc390&version=2' hgweb12.dmz.scl3.mozilla.com | success | rc=0 >> { "lastpushid": 20332, "pushes": {"20332": {"changesets": ["876756efc390115f1fde3b23e8369edd95eda403"], "date": 1471465400, "user": "rjesup@wgate.com"}} } hgweb13.dmz.scl3.mozilla.com | success | rc=0 >> { "lastpushid": 20332, "pushes": {"20332": {"changesets": ["876756efc390115f1fde3b23e8369edd95eda403"], "date": 1471465400, "user": "rjesup@wgate.com"}} } hgweb14.dmz.scl3.mozilla.com | success | rc=0 >> { "lastpushid": 20332, "pushes": {"20332": {"changesets": ["876756efc390115f1fde3b23e8369edd95eda403"], "date": 1471465400, "user": "rjesup@wgate.com"}} } hgweb11.dmz.scl3.mozilla.com | success | rc=0 >> { "lastpushid": 20332, "pushes": {"20332": {"changesets": ["876756efc390115f1fde3b23e8369edd95eda403"], "date": 1471465400, "user": "rjesup@wgate.com"}} } If you see something different, there's likely a HTTP cache interfering. We shouldn't have caching enabled on the server-side of hg.mozilla.org.
Ok, we'll look more on the Treeherder side. Cameron, I don't suppose you could take a look, since I'm heading to bed soon? There are no errors in New Relic, no errors or useful info in the logs on th-prod-etl[12]. I'm guessing either: (a) the push was semi-ingested but stuck as hidden like happened that previous time (b) it hasn't been ingested at all, but for some reason memcached was updated with last push ID (so a memcached clear would help, since it would fall back to ingestion the last 10 pushes for that repo) Sebastian, this seems localised to fx-team, so please can you can reopen the other trees in the meantime? Thanks :-)
Component: Mercurial: hg.mozilla.org → Treeherder: Data Ingestion
Flags: needinfo?(cdawson)
Flags: needinfo?(aryx.bugmail)
Product: Developer Services → Tree Management
QA Contact: hwine
Summary: JSON pushlog for fx-team missing a push (876756efc390) → fx-team missing a push (876756efc390)
Version: unspecified → ---
Hmm, so the push DID make it into Treeherder, but was never updated correctly with its push_timestamp and author. So it's out of order: https://treeherder.mozilla.org/#/jobs?repo=fx-team&revision=876756efc390 I'm looking into what may have caused this...
Flags: needinfo?(cdawson)
So a query across all repos shows this happened once on fx-team, once on gaia, and 5 times on try since the beginning of june. People may not have noticed it on try, since they get a direct link to their push, rather than looking at them sorted by push_timestamp. P.S. - There was a slew of these last May due to a Treeherder bug that was fixed: https://github.com/mozilla/treeherder/commit/3642e03307428ef92ce665d267cbc144fdb61d09 I'm investigating how this could have happened now.
If the underlying cause is a race condition in hg.mozilla.org, the 5 occurrences on Try wouldn't surprise me: the replication/consistency window of that repo generally isn't as small as other repos. FWIW, I recommend consumers wanting to know when pushes happen should be looking at pulse. That is faster and lighter weight than polling and doesn't suffer from data consistency issues on hg.mozilla.org.
GPS - Yeah, I think this is a race condition. Treeherder.allizom.org shows the push as it should be. FWIW: we should be moving treeherder to using your hg pulse exchange by end of quarter. We DO explicitly attempt to handle this type of race condition, though. But apparently not well enough.
I have fixed the bad occurrance in the DB for that push in fx-team. I think you can reopen the fx-team tree now. I will continue to investigate the underlying issue, but this has been extremely rare thus far.
Assignee: nobody → cdawson
I've reopened fx-team.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Flags: needinfo?(aryx.bugmail)
See Also: → 1286578
You need to log in before you can comment on or make changes to this bug.