You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2023/11/22 03:59:00 UTC

[jira] [Assigned] (SPARK-45696) Fix `method tryCompleteWith in trait Promise is deprecated`

     [ https://issues.apache.org/jira/browse/SPARK-45696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Jie reassigned SPARK-45696:
--------------------------------

    Assignee: Yang Jie

> Fix `method tryCompleteWith in trait Promise is deprecated`
> -----------------------------------------------------------
>
>                 Key: SPARK-45696
>                 URL: https://issues.apache.org/jira/browse/SPARK-45696
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Yang Jie
>            Assignee: Yang Jie
>            Priority: Major
>              Labels: pull-request-available
>
> {code:java}
> [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/main/scala/org/apache/spark/FutureAction.scala:190:32: method tryCompleteWith in trait Promise is deprecated (since 2.13.0): Since this method is semantically equivalent to `completeWith`, use that instead.
> [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.ComplexFutureAction.p, origin=scala.concurrent.Promise.tryCompleteWith, version=2.13.0
> [warn]   private val p = Promise[T]().tryCompleteWith(run(jobSubmitter))
> [warn]                                ^ {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org