spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JoshRosen <>
Subject [GitHub] spark pull request: [SPARK-13308] ManagedBuffers passed to OneToOn...
Date Tue, 16 Feb 2016 04:15:57 GMT
Github user JoshRosen commented on the pull request:
    Thanks for the careful review, @zsxwing. I agree with your feedback and also think that
it makes a lot more sense to have `convertToNetty()` increment the reference count. I've gone
ahead and updated the patch to do this and have rolled back a confusing `retain()` call in
the test code (which you pointed out earlier).
    Take a look at the `refCnt()` assertions that I added in the test suites to see whether
they match up with what you had in mind.
    Note that as of today `convertToNetty` is only called in one place in `MessageEncoder`
and the result of this is passed to `MessageWithHeader` alongside the message that the buffer
came from, so it should be verify that `MessageWithHeader.deallocate()` will free all of the

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message