Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stellation-res] New workspace code status, with news of a very obscure bug.

On Thu, Aug 29, 2002 at 01:50:59PM -0400, Dave Shields wrote:
> I just fixed a very obscure bug in the workspace code. The code was
> failing several tests in an intermittent fashion. After several hours
> of debugging, I learned that the resolution of File.lastModified() is
> only one second in Linux, and the new workspace code was so much
> faster that some tests were updating files in the same second as the
> checkout, so the change was not detected!  Adding a 'sleep 1' at end
> of Checkout fixed the problem.
> 
> I revisited, and largely rewrote, all the code related to signatures
> (two versions of an artifact are deemed to be different if and only if
> they have different signatures). The signature is now the MD5 checksum

I am not sure about the second if. I know it is hard to come with two
different files that have the same MD5 but still...

florin

> of the artifact content (for text and data), or of the members map
> (for compounds) or the link target (for links). I also recently
> realized that if we insert MessageDigest filter streams at the
> appropriate point in artifact input/output, we can compute these
> signatures with minimal overhead, and I will try to do this soon.
> 
> I hope to post my latest code later today. Hopefully Mark will be able
> to merge it into CVS before our site goes down for the weekend.
> 
> dave
> 
> -- 
> Dave Shields, IBM Research, shields@xxxxxxxxxxxxxx. 
> _______________________________________________
> stellation-res mailing list
> stellation-res@xxxxxxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/stellation-res
> 

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4

Attachment: pgpBi_gaZ_FRi.pgp
Description: PGP signature


Back to the top