Force refresh after each operation, for unit tests


(Filirom1) #1

Hi everybody !

In my unit tests I have a lot of sleep that waits for the refresh interval
(1s);
I would like to speed up my tests. Executing them in parrallel is not an
option.

Is there a way to force ElasticSearch to refresh after each operation, in
the elasticsearch.yml configuration file ?

Thanks

Romain

--


(simonw-2) #2

hey,

can't you forcefully refresh manually via the refresh
API? http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh.html

simon

On Monday, October 22, 2012 6:24:15 PM UTC+2, Filirom1 wrote:

Hi everybody !

In my unit tests I have a lot of sleep that waits for the refresh interval
(1s);
I would like to speed up my tests. Executing them in parrallel is not an
option.

Is there a way to force ElasticSearch to refresh after each operation, in
the elasticsearch.yml configuration file ?

Thanks

Romain

--


(Filirom1) #3

Indeed.

I replace every sleep by a call to the refresh API.

Thanks
Romain

2012/10/22 simonw simon.willnauer@elasticsearch.com

hey,

can't you forcefully refresh manually via the refresh API?
http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh.html

simon

On Monday, October 22, 2012 6:24:15 PM UTC+2, Filirom1 wrote:

Hi everybody !

In my unit tests I have a lot of sleep that waits for the refresh
interval (1s);
I would like to speed up my tests. Executing them in parrallel is not an
option.

Is there a way to force ElasticSearch to refresh after each operation,
in the elasticsearch.yml configuration file ?

Thanks

Romain

--

--


(system) #4