directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <akaras...@apache.org>
Subject Re: svn commit: r1129630 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
Date Thu, 02 Jun 2011 17:32:03 GMT
This did not make it to the list. --Alex

On Thu, Jun 2, 2011 at 4:32 PM, Alex Karasulu <akarasulu@apache.org> wrote:
>
> Is there any way we can avoid using timing dependent code like these sleep calls? Can't
we enable a feedback mechanism where setting some variable drives controlling this process?
> If something is not readily clear as a solution maybe we can just create a JIRA about
this so we can track it and handle it later.
>
> If the machine is overloaded this will take longer and you don't know just how fast the
machine will work.
> Regards,
> Alex
>
> On Tue, May 31, 2011 at 2:22 PM, <kayyagari@apache.org> wrote:
>>
>> Author: kayyagari
>> Date: Tue May 31 11:22:51 2011
>> New Revision: 1129630
>>
>> URL: http://svn.apache.org/viewvc?rev=1129630&view=rev
>> Log:
>> o increased the sleep time to let the consumer sync after reboot before performing
any checks
>>
>> Modified:
>>    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
>>
>> Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
>> URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java?rev=1129630&r1=1129629&r2=1129630&view=diff
>> ==============================================================================
>> --- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
(original)
>> +++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
Tue May 31 11:22:51 2011
>> @@ -213,7 +213,7 @@ public class ClientServerReplicationIT
>>
>>         startConsumer();
>>
>> -        Thread.sleep( 2000 );
>> +        Thread.sleep( 5000 );
>>         assertFalse( consumerSession.exists( deletedUserDn ) );
>>         waitAndCompareEntries( addedUserDn );
>>     }
>>
>>
>

Mime
View raw message