sendinblue/APIv3-java-library

Memory Leak via Swagger for async calls

devyolawo opened this issue · 5 comments

All async methods (i.e. async send of transcational mail) are producing a memory leak (interceptors). Looks like this is connected to swagger-api/swagger-codegen#8915

The same problem is described here kubernetes-client/java#482 and it seems it was fixed by updating to openapi-generator v4.2.0

This library as of v5.2.0 can't be used in production code if you want to use *Async functions.

lud commented

Hi,

It looks like it is fixed in swagger : swagger-api/swagger-codegen#8053

But how can I know if this is also fixed in this library ? I am new to Java and I have no clue. I looked at the pom.xml but there is no swagger-codegen in. I found this: <swagger-core-version>1.5.18</swagger-core-version> and it looks fairly outdated but I am not sure the version number is the same as for swagger-codegen.

Hi @lud ,
We are planning to update the version of OkHttp, it should fix this issue. We will update you once it is done.

Updated in new release (v7.0.0). Please check..!

lud commented

Sorry but I do not work for this project anymore, I do not even have the source code to check.

But thanks anyway, I'm sure it is still useful for many people!