Github user dragos commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4984#discussion_r33791859
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala
 ---
    @@ -169,14 +190,15 @@ private[spark] class CoarseMesosSchedulerBackend(
        * unless we've already launched more than we wanted to.
        */
       override def resourceOffers(d: SchedulerDriver, offers: JList[Offer]) {
    -    synchronized {
    +    stateLock.synchronized {
           val filters = Filters.newBuilder().setRefuseSeconds(5).build()
     
           for (offer <- offers) {
    -        val slaveId = offer.getSlaveId.toString
    +        val slaveId = offer.getSlaveId.getValue
    --- End diff --
    
    If it even worked before, it did so by accident. You need the value of 
SlaveID, not some debug string that happens to be returned by `toString`


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