[endorser] simulateProposal -> failed to invoke chaincode ccstockdocument, error: chaincode stream terminated


David Faulstich Diniz Reis
 

Hi community!

I am performing some stress tests loading assets (Sku ´s Products stock accounts) and I facing the following issue after growing the database:

In a specific query that will return a lot of records (without pagination),I am getting "chaincode stream terminated" when iterate "AsyncIterable<Iterators.KV>" returned by 
"ctx.stub.getQueryResult".

This is a normal error considering that the returned results payload will be a very large json?

Queries with less information are returned ok.

Paginated queries using ctx.stub.getQueryResultWithPagination works ok if the page size is set to a normal number (20, 25, 50).

Thank you in advance.


--