nicoloboschi opened a new pull request #14580:
URL: https://github.com/apache/pulsar/pull/14580


   ### Motivation
   Sometimes I see Elasticsearch tests failing because the ES container exits 
with 137 code. 
   By default Elastic container allocates 2g. In Pulsar IO testing this is not 
needed at all and we can limit hit by setting the proper properties.
   More doc here: 
https://discuss.elastic.co/t/elasticsearch-docker-container-keeps-crashing-with-exit-status-of-137/125410
   
   ### Modifications
   * Refactored the Elastic container init in a common method that set 
`ES_JAVA_OPTS` to `-Xms128m -Xmx256m`. It seems enough memory to get Elastic 
container works.
   * Removed the junit usage in favor of testNG. they were mixed in same 
classes and it leads to unpredictable behaviours, such as do not cleaning up 
resources and so on. (partially copied from 
https://github.com/apache/pulsar/pull/14065) 
   
   - [x] `no-need-doc` 
     
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to