Closed
Bug 50749
Opened 25 years ago
Closed 9 years ago
descriptions found with no corresponding entry in checkin table
Categories
(Webtools Graveyard :: Bonsai, defect, P2)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: endico, Assigned: tara)
Details
In the process of searching for patch contributors in bonsai checkin comments,
I noticed that the bonsai db @mozilla.org has a whole lot of entries in
the descs table with no checkins that refer to them. I think this must be
a bug. I don't see anywhere else that would refer to a description.
I was going to try rebuilding the db but we don't have an "all" module so
i'll just rebuild seamonkeyall since that's the part of the tree i'm interested
in now.
Here's a script I wrote to check for orphaned descriptions that aren't
pointed to by any checkin. Its really slow and I didn't let the script
finish but it looks like most of descriptions 50-200 are horked.
Please tell me I'm doing something wrong and the db is fine.
-----------------------------------
require 'globals.pl';
require 'get_line.pl';
use diagnostics;
use strict;
ConnectToDatabase();
my $qstring = "select id from descs";
SendSQL($qstring);
my @row;
my @ids ;
while (@row = FetchSQLData()) {
push @ids, $row[0] ;
}
print "there are " . @ids . " descriptions: \n";
my @orphans;
foreach my $id (@ids) {
my $query = "select * from checkins where descid=$id";
SendSQL($query);
my @row2;
unless (@row2 = FetchSQLData()) {
print "descid $id has no checkin\n";
push @orphans, $id ;
}
}
print "there are " . @orphans . " orphan descriptions.\n";
print "orphan descriptions: " . join(', ', @orphans) . "\n";
Comment 1•25 years ago
|
||
It's just probably some historical screwup on my part when I rebuilt the
database for something or another.
If it really bothers you, the easiest way to fix it would be:
(1) Backup the bonsai database.
(2) Blow it away (by running the maketables.sh script)
(3) Repopulate the entire thing from scratch.
Assignee | ||
Comment 2•23 years ago
|
||
I have one instance of this problem on the landfill test CVS repository, but I
also have been seriously dorking around with the server.
Dawn--can you check to see if your recreated tables have the same problem?
Priority: P3 → P2
Updated•19 years ago
|
QA Contact: timeless → bonsai
Comment 3•9 years ago
|
||
Bonsai was decommissioned, closing all remaining bugs "wontfix"
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Updated•9 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•