Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kapua-dev] Data Store Unit test failing

For me tests are not failing, and are also not failing on Travis.

 

But I managed to make them fail on my local machine by setting datastore.elasticsearch.index.refresh_interval

from 5 to 1. Which is odd, if I set it to lower value the failure is something like:

 

Result message has a wrong size! expected:<1> but was:<5>

and that is exactly opposite of errors on eclipse CI.

 

So, the issue is most probably as already mentioned on insert / query time frame.

Maybe, we could solve this issue by this configuration parameter? Finding a sweet spot for index delay.

Sleep / waits in tests are newer good idea, thou I use them to

 

 

 

From: "kapua-dev-bounces@xxxxxxxxxxx" <kapua-dev-bounces@xxxxxxxxxxx> on behalf of Henryk Konsek <hekonsek@xxxxxxxxx>
Reply-To: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Date: Friday, 7 April 2017 at 08:23
To: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Subject: Re: [kapua-dev] Data Store Unit test failing

 

Maybe you can consider using Awaitility [1] for this purpose? This is usually a good replacement for Thread.sleep().

 

 

czw., 6 kwi 2017 o 15:57 użytkownik Jens Reimann <jreimann@xxxxxxxxxx> napisał:

I can see the same issues on our internal CI system.

Maybe you can re-try for a specific amount of time. That way you could abort early if everything works fine.

 

On Thu, Apr 6, 2017 at 3:52 PM, Modanese, Riccardo <Riccardo.Modanese@xxxxxxxxxxxx> wrote:

I suggest to increase, in the test, the wait time before querying.

 

May be related to the load of the machine, so in some cases Elasticsearch is not able to update indexes before the test query.

 

What do you think (currently the test waits for the Elasticsearch refresh time between the insert operation and the subsequent querying)

 

Il giorno 06 apr 2017, alle ore 15:49, Henryk Konsek <hekonsek@xxxxxxxxx> ha scritto:

 

Build works OK on my machine, but it seems to fail intermittently on Hudston. We should try to investigate it.

 

czw., 6 kwi 2017 o 15:00 użytkownik Jens Reimann <jreimann@xxxxxxxxxx> napisał:

Just look at the Hudson build right now [1].

 

On Thu, Apr 6, 2017 at 2:49 PM, Modanese, Riccardo <Riccardo.Modanese@xxxxxxxxxxxx> wrote:

Hi Jens, 

 

from our side we didn’t experienced failure on datastore test. Do you have a stacktrace to help us investigating a possible issue?

 

Thanks

 

Riccardo

 

 

Il giorno 06 apr 2017, alle ore 09:55, Jens Reimann <jreimann@xxxxxxxxxx> ha scritto:

 

Hi,

for me the unit test `org.eclipse.kapua.service.datastore.internal.MessageStoreServiceTest.testMessageOrderingMixedTest` is failing quite often.

Is that just me? Or does it fail for others as well?

Is there something that can be done about it? Fixing the unit test? Fixing the actual code?

Thanks

Jens


--

Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill

_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev

 


_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev




--

Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill

_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev

--

_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev

 


_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev




--

Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill

_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev

--


Back to the top