On Wed, Dec 5, 2012 at 1:53 PM, Robert Muir <[email protected]> wrote:
>
>
> On Wed, Dec 5, 2012 at 1:14 PM, Dyer, James <[email protected]>
> wrote:
>>
>> When the full import ends, it writes the last index timestamp in a file
>> called "dataimport.properties".  Unimaginably, this file only records
>> precision to seconds.  The delta updates use this recorded timestamp to know
>> which documents changed since the last import.  To handle this in the test,
>> it pads the "last modified" column values in the rdbms so we shouldn't get
>> strange failures due to timing issues.  My chief worry is that I did this
>> incorrectly and maybe Policeman is a little faster or something and can trip
>> a timing issue.  So yesterday I committed a whole bunch of logging on this
>> test to try and see what is happening.  But strangely it hasn't failed since
>> then whereas it was failing multiple times per day.
>
>
> But it only fails on Linux. I wonder if the problem is the timestamp? Maybe
> Uwe runs NTPD on his Linux virtual machine? (just a crazy out-there idea).
> That would definitely make it hard to reproduce.

I think we should add timestamp APIs (System.currentTimeMillis,
System.nanoTime) to the forbidden lists.

And Thread.sleep, eventually.

Mike McCandless

http://blog.mikemccandless.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to