-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-14028][STREAMING][KINESIS][TESTS] Remove deprecated methods; fix two other warnings #11850
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
Conversation
"https://kinesis.us-west-2.amazonaws.com", new Duration(2000), | ||
InitialPositionInStream.LATEST, StorageLevel.MEMORY_AND_DISK_2()); | ||
String dummyEndpointUrl = KinesisTestUtils.defaultEndpointUrl(); | ||
String dummyRegionName = RegionUtils.getRegionByEndpoint(dummyEndpointUrl).getName(); | ||
|
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 JavaDStream
is created by the deprecated & removed createStream
method; so let's switch to another createStream
method.
OK by me |
@@ -40,7 +40,7 @@ trait KinesisFunSuite extends SparkFunSuite { | |||
if (shouldRunTests) { | |||
body | |||
} else { | |||
ignore(s"$message [enable by setting env var $envVarNameForEnablingTests=1]")() | |||
ignore(s"$message [enable by setting env var $envVarNameForEnablingTests=1]")(()) |
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.
Without the ()
, scalac will add this ()
implicitly and then complain that this is probably not we want
. So let's add this ()
explicitly to erase this warning.
Jenkins test this please |
Test build #53630 has finished for PR 11850 at commit
|
Merged to master |
@srowen thanks for the review! |
…ix two other warnings ## What changes were proposed in this pull request? - Removed two methods that has been deprecated since 1.4 - Fixed two other compilation warnings ## How was this patch tested? existing test suits Author: proflin <proflin.me@gmail.com> Closes apache#11850 from lw-lin/streaming-kinesis-deprecates-warnings.
What changes were proposed in this pull request?
How was this patch tested?
existing test suits