Github user aarondav commented on a diff in the pull request:
https://github.com/apache/spark/pull/5743#discussion_r29510128
--- Diff:
network/common/src/main/java/org/apache/spark/network/server/OneForOneStreamManager.java
---
@@ -42,11 +46,15 @@
private static class StreamState {
final Iterator<ManagedBuffer> buffers;
+ // The channel associated to the stream
+ Channel associatedChannel = null;
+
// Used to keep track of the index of the buffer that the user has
retrieved, just to ensure
// that the caller only requests each chunk one at a time, in order.
int curChunk = 0;
StreamState(Iterator<ManagedBuffer> buffers) {
+ Preconditions.checkNotNull(buffers);
this.buffers = buffers;
--- End diff --
nit: `this.buffers = Preconditions.checkNotNull(buffers)`
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]