" /> Status for Andrew DeFaria: April 8, 2007 - April 14, 2007 Archives

« March 25, 2007 - March 31, 2007 | Main | April 15, 2007 - April 21, 2007 »

April 13, 2007

Deleting Site Domains

  • Implemented gpdb_deleteSiteDomain

As we know, in GPDB there's very little in the realm of editing or validating of data. We've seen this with IP ranges where we let any old data in, including invalid IP ranges (let along the fact that the whole concept of IP ranges identifying sites is flawed to start with).

But as we can also see a site may have multiple domains (e.g. Dallas has many).

Site domains are implemented as their own table with the Site ID as the key and the "extended fields" of domain, IP range lower and upper being the data files.

-- site_domain_map: Table to map multiple domains to sites
create table site_domain_map (
  id                number      (10)    not null,
  domain            varchar2    (256)   not null,
  ip_range_lower    varchar2    (15),
  ip_range_upper    varchar2    (15),
  foreign key (id) references sites (id)
);

But nothing stops the user or worse yet, a script, from adding more than one site domain that is exactly identical! So we can have, for example, two site domains for Dallas that have the domain name of "dal.design.ti.com".

As if that is not enough a real problem come when one attempts to delete. Let's say somebody added a second "dal.design.ti.com" Site Domain, notices the mistake and wants to delete the extra one.

Currently the code deletes site_domain_map entries using the following SQL statement:

DELETE FROM SITE_DOMAIN_MAP WHERE ID = 1000007 AND DOMAIN = 'dal.design.ti.com';

This would delete both dal.design.ti.com entries, not just one.

I think the answer is to implement some validation such that people cannot add a second Site Domain of the same Domain name. Of course, this leaves the question is it considered legal to have two dal.design.ti.com Site Domains with different IP ranges. Which brings up the idea of validating not only a single IP range, but that no IP ranges overlap!

April 10, 2007

testcc.pl

  • Created testcc.pl. This script creates a test vob, test view, makes elements, checks them in, out, modifies them, checks them in again and compares! Basic Clearcase sanity testing...

April 9, 2007

Convert Dallas/Licensing/Solaris 10 testing

  • Changed gpdb_convertuk.pl to open and use the new Dallas database
  • cclic_report.pl reporting everybody as "UNK". Tried to run this in debugger and it just worked! Hmmm... Is this a cron problem? Running again tonight
  • Rick got the Jackson filer to mount to dslabcc01 however while I can create the vob storage area I cannot mount the vob!