Closed
Bug 668425
Opened 14 years ago
Closed 14 years ago
statusdb not getting results/endtimes sometimes
Categories
(Release Engineering :: General, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: catlee, Assigned: catlee)
Details
Attachments
(1 file)
|
1.42 KB,
patch
|
nthomas
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
e.g.
mysql> select * from builds where id=5307062;
+---------+-------------+------------+----------+-----------+---------------------+---------------------+--------+-----------+-----------+------+
| id | buildnumber | builder_id | slave_id | master_id | starttime | endtime | result | reason | source_id | lost |
+---------+-------------+------------+----------+-----------+---------------------+---------------------+--------+-----------+-----------+------+
| 5307062 | 3434 | 3298 | 645 | 8 | 2011-06-28 18:03:44 | 1970-01-01 00:00:01 | NULL | scheduler | 2102540 | 0 |
+---------+-------------+------------+----------+-----------+---------------------+---------------------+--------+-----------+-----------+------+
1 row in set (0.00 sec)
mysql> select * from masters where id=8;
+----+---------------------------------------------------+----------------------+
| id | url | name |
+----+---------------------------------------------------+----------------------+
| 8 | http://production-master03.build.mozilla.org:8010 | Production Master 03 |
+----+---------------------------------------------------+----------------------+
1 row in set (0.00 sec)
mysql> select * from builders where id=3298;
+------+--------------------------+-----------+-----------------+
| id | name | master_id | category |
+------+--------------------------+-----------+-----------------+
| 3298 | mozilla-central-macosx64 | 8 | mozilla-central |
+------+--------------------------+-----------+-----------------+
On the master this build is finished.
The pickle file claims that it finished:
>>> b.getTimes()
(1309284224.192858, 1309296638.0811191)
| Assignee | ||
Comment 1•14 years ago
|
||
A reconfig happened at 2011-06-28 12:39:59-0700 pacific...so this build spanned the reconfig.
| Assignee | ||
Comment 2•14 years ago
|
||
What's happening is that update_from_files.py is failing to find the old build and so we end up with duplicate rows:
mysql> select * from builds where buildnumber=3434 and builder_id=3298 and slave_id=645;
+---------+-------------+------------+----------+-----------+---------------------+---------------------+--------+-----------+-----------+------+
| id | buildnumber | builder_id | slave_id | master_id | starttime | endtime | result | reason | source_id | lost |
+---------+-------------+------------+----------+-----------+---------------------+---------------------+--------+-----------+-----------+------+
| 5307062 | 3434 | 3298 | 645 | 8 | 2011-06-28 18:03:44 | 1970-01-01 00:00:01 | NULL | scheduler | 2102540 | 0 |
| 5308571 | 3434 | 3298 | 645 | 8 | 2011-06-28 18:03:44 | 2011-06-28 21:30:38 | 0 | scheduler | 2102540 | 0 |
+---------+-------------+------------+----------+-----------+---------------------+---------------------+--------+-----------+-----------+------+
| Assignee | ||
Comment 3•14 years ago
|
||
What is happening is the in-progress build is being written to disk (with no results or finish time) during the reconfig.
When the build finishes, it gets written again, so it does get seen from update_from_files.py. However the query to find previous instances of the build fails because the query includes the build's finish time, which the db doesn't have.
I believe matching against start time, build number and builder on the same master is sufficient for uniqueness.
Attachment #543121 -
Flags: review?(nrthomas)
Updated•14 years ago
|
Attachment #543121 -
Flags: review?(nrthomas) → review+
| Assignee | ||
Updated•14 years ago
|
Attachment #543121 -
Flags: checked-in+
| Assignee | ||
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•