GitHub user keypointt opened a pull request:

    https://github.com/apache/spark/pull/14609

    [MINOR][Core] fix warnings on depreciated methods in 
MesosClusterSchedulerSuite and DiskBlockObjectWriterSuite

    ## What changes were proposed in this pull request?
    
    Fixed warnings below after scanning through warnings during build:
    
    ```
    [warn] 
/home/jenkins/workspace/SparkPullRequestBuilder/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosClusterSchedulerSuite.scala:34:
 imported `Utils' is permanently hidden by definition of object Utils in 
package mesos
    [warn] import org.apache.spark.scheduler.cluster.mesos.Utils
    [warn]                                                 ^
    ```
    
    and
    ```
    [warn] 
/home/jenkins/workspace/SparkPullRequestBuilder/core/src/test/scala/org/apache/spark/storage/DiskBlockObjectWriterSuite.scala:113:
 method shuffleBytesWritten in class ShuffleWriteMetrics is deprecated: use 
bytesWritten instead
    [warn]     assert(writeMetrics.shuffleBytesWritten === file.length())
    [warn]                         ^
    [warn] 
/home/jenkins/workspace/SparkPullRequestBuilder/core/src/test/scala/org/apache/spark/storage/DiskBlockObjectWriterSuite.scala:119:
 method shuffleBytesWritten in class ShuffleWriteMetrics is deprecated: use 
bytesWritten instead
    [warn]     assert(writeMetrics.shuffleBytesWritten === file.length())
    [warn]                         ^
    [warn] 
/home/jenkins/workspace/SparkPullRequestBuilder/core/src/test/scala/org/apache/spark/storage/DiskBlockObjectWriterSuite.scala:131:
 method shuffleBytesWritten in class ShuffleWriteMetrics is deprecated: use 
bytesWritten instead
    [warn]     assert(writeMetrics.shuffleBytesWritten === file.length())
    [warn]                         ^
    [warn] 
/home/jenkins/workspace/SparkPullRequestBuilder/core/src/test/scala/org/apache/spark/storage/DiskBlockObjectWriterSuite.scala:135:
 method shuffleBytesWritten in class ShuffleWriteMetrics is deprecated: use 
bytesWritten instead
    [warn]     assert(writeMetrics.shuffleBytesWritten === file.length())
    [warn]                         ^
    ```
    
    ## How was this patch tested?
    
    Tested manually on local laptop.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/keypointt/spark suiteWarnings

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14609.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14609
    
----
commit 9aeadebc6969f0bfabbefcfc472da3923e85d18f
Author: Xin Ren <[email protected]>
Date:   2016-08-11T20:57:22Z

    update depreciated methods in testing

----


---
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]

Reply via email to