Hi Miguel, On Mon, Apr 27, 2015 at 7:43 PM, Miguel Angel Fernandez < [email protected]> wrote:
> Thanks Patrik! It works! > > But now I have a new question: Is there any way to recover the object that > oversized the buffer? I get a message like "max allowed size 31457280 > bytes, actual size of encoded class QueryResult was 41402768 bytes" but I > would like to access to that QueryResult in order to get some information. > No, that is not possible. It gets dropped immediately. In general, it is not recommended to send such large messages, like 40MB. If you send such a large message it will block the TCP connection from sending other messages, for example heartbeats, and will make your system unstable. It is recommended to send QueryResultChunks instead, with smaller sizes each. -Endre > > Thanks in advance! > > On Sunday, April 26, 2015 at 7:34:04 PM UTC+2, Patrik Nordwall wrote: >> >> >> >> On Thu, Apr 23, 2015 at 6:01 PM, Miguel Angel Fernandez < >> [email protected]> wrote: >> >>> Hi everyone, >>> >>> I'm using the version 2.3.4 and I would like to know if there is a way >>> of subscribing or catching the event of a OversizedPayloadException. The >>> thing is that a node of the cluster performs an operation in a database and >>> the result is larger than the configured maximum size. A different node >>> from the cluster is waiting for the answer, both it's successful and an >>> error occurs, but it never gets an answer because akka discards the >>> message. I don't want to increase the maximum size and the idea here is >>> that I prefer to capture the event and send to the second node the >>> information of the execution. >>> >>> Any ideas? >>> >> >> You can subscribe to the eventStream >> <http://doc.akka.io/docs/akka/2.3.10/scala/event-bus.html#Event_Stream> >> of the ActorSystem to see when there is an akka.event.Logging.Error with a >> OversizedPayloadException as cause. >> >> /Patrik >> >>> >>> Thanks in advance >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: >>> http://doc.akka.io/docs/akka/current/additional/faq.html >>> >>>>>>>>>> Search the archives: >>> https://groups.google.com/group/akka-user >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Akka User List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> >> Patrik Nordwall >> Typesafe <http://typesafe.com/> - Reactive apps on the JVM >> Twitter: @patriknw >> >> -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
