On Wed, Dec 17, 2008 at 4:01 PM, Nigel Tao <[email protected]> wrote:
> This probably is just a bug. It sounds reasonable that a marshal should either
> completely succeed or completely fail.
>
> Out of curiousity, is there a specific real-world scenario that's motivating
> this?

This came out of fixing crashing bug http://b/issue?id=1523881 which
amounted to testing if NewObject and NewArray return null. This code
was right next to it so i noticed it.

I'm not certain of the exact circumstances that cause NewObject and
NewArray to fail. If it is sporadic, message recipients could receive
partial messages (malformed arrays/objects), which could cause bogus
data to be persisted in a database depending of what the recipient
does with the message.

>
> Can you add a test case to test/testcases/workerpool_message_body_tests.js?

I'm not sure how to induce this failure mode?

>
> --
> To respond, reply to this email or visit 
> http://mondrian.corp.google.com/9455628
>

Reply via email to