-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-27404][CORE][SQL][STREAMING][YARN] Fix build warnings for 3.0: postfixOps edition #24314
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
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6f67c4d
Fix build warnings; remove use of postfix syntax where it causes warn…
srowen 54aac39
scalastyle
srowen 7e5988f
javadoc
srowen ac7bec7
Fix additional warnings and one error; more .millis -> .milliseconds
srowen bebd215
Fix bug in change
srowen aa61047
Improve kinesis test assertions to reveal UT failure?
srowen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,9 +46,9 @@ | |
| */ | ||
| public class RetryingBlockFetcherSuite { | ||
|
|
||
| ManagedBuffer block0 = new NioManagedBuffer(ByteBuffer.wrap(new byte[13])); | ||
| ManagedBuffer block1 = new NioManagedBuffer(ByteBuffer.wrap(new byte[7])); | ||
| ManagedBuffer block2 = new NioManagedBuffer(ByteBuffer.wrap(new byte[19])); | ||
| private final ManagedBuffer block0 = new NioManagedBuffer(ByteBuffer.wrap(new byte[13])); | ||
| private final ManagedBuffer block1 = new NioManagedBuffer(ByteBuffer.wrap(new byte[7])); | ||
| private final ManagedBuffer block2 = new NioManagedBuffer(ByteBuffer.wrap(new byte[19])); | ||
|
|
||
| @Test | ||
| public void testNoFailures() throws IOException, InterruptedException { | ||
|
|
@@ -291,7 +291,7 @@ private static void performInteractions(List<? extends Map<String, Object>> inte | |
| } | ||
|
|
||
| assertNotNull(stub); | ||
| stub.when(fetchStarter).createAndStart(any(), anyObject()); | ||
| stub.when(fetchStarter).createAndStart(any(), any()); | ||
|
Member
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. This was an avoidable deprecated method |
||
| String[] blockIdArray = blockIds.toArray(new String[blockIds.size()]); | ||
| new RetryingBlockFetcher(conf, fetchStarter, blockIdArray, listener).start(); | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,6 @@ package org.apache.spark | |
| import java.util.{Properties, Timer, TimerTask} | ||
|
|
||
| import scala.concurrent.duration._ | ||
| import scala.language.postfixOps | ||
|
|
||
| import org.apache.spark.annotation.{Experimental, Since} | ||
| import org.apache.spark.executor.TaskMetrics | ||
|
|
@@ -122,7 +121,7 @@ class BarrierTaskContext private[spark] ( | |
| barrierEpoch), | ||
| // Set a fixed timeout for RPC here, so users shall get a SparkException thrown by | ||
| // BarrierCoordinator on timeout, instead of RPCTimeoutException from the RPC framework. | ||
| timeout = new RpcTimeout(31536000 /* = 3600 * 24 * 365 */ seconds, "barrierTimeout")) | ||
| timeout = new RpcTimeout(365.days, "barrierTimeout")) | ||
|
Member
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. A good example of simplifying expressions while also removing postfixOps |
||
| barrierEpoch += 1 | ||
| logInfo(s"Task $taskAttemptId from Stage $stageId(Attempt $stageAttemptNumber) finished " + | ||
| "global sync successfully, waited for " + | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
OK, this is stuff I just cleaned up while touching this file.