-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-12525] Fix fatal compiler warnings in Kinesis ASL due to @transient annotations #10479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
0b79c39
70e7032
afe11f2
0a3f671
422ef49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,12 +70,12 @@ class KinesisBackedBlockRDDPartition( | |
| */ | ||
| private[kinesis] | ||
| class KinesisBackedBlockRDD[T: ClassTag]( | ||
| @transient sc: SparkContext, | ||
| sc: SparkContext, | ||
| val regionName: String, | ||
| val endpointUrl: String, | ||
| @transient blockIds: Array[BlockId], | ||
| blockIds: Array[BlockId], | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @skyluc @rxin, according to #8433 "if the class parameter are used in methods, then fields are created." I'm not sure how this applies in this case, where |
||
| @transient val arrayOfseqNumberRanges: Array[SequenceNumberRanges], | ||
| @transient isBlockIdValid: Array[Boolean] = Array.empty, | ||
| @transient private val isBlockIdValid: Array[Boolean] = Array.empty, | ||
| val retryTimeoutMs: Int = 10000, | ||
| val messageHandler: Record => T = KinesisUtils.defaultMessageHandler _, | ||
| val awsCredentialsOption: Option[SerializableAWSCredentials] = None | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ import org.apache.spark.streaming.scheduler.ReceivedBlockInfo | |
| import org.apache.spark.streaming.{Duration, StreamingContext, Time} | ||
|
|
||
| private[kinesis] class KinesisInputDStream[T: ClassTag]( | ||
| @transient _ssc: StreamingContext, | ||
| _ssc: StreamingContext, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this matches the change that was made to FlumePollingInputDStream: c1bc4f4#diff-0a2347be859b78b562e3e8e8e17a1f1fL49 |
||
| streamName: String, | ||
| endpointUrl: String, | ||
| regionName: String, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches the change made to c1bc4f4#diff-3fdb38876be7c77f4568be49edba4c02L38