[ 
https://issues.apache.org/jira/browse/FLINK-8174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16275886#comment-16275886
 ] 

ASF GitHub Bot commented on FLINK-8174:
---------------------------------------

GitHub user EronWright opened a pull request:

    https://github.com/apache/flink/pull/5114

    [FLINK-8174] [mesos] Mesos RM unable to accept offers for unreserved 
resources

    ## What is the purpose of the change
    This PR improves the Mesos RM to work correctly with both reserved and 
unreserved resources.
    
    ## Brief change log
    - Introduce `MesosResourceAllocation` to allocate offered resources to task 
resources.
    - Introduce `Offer` to replace Fenzo's `VMLeaseObject` with proper 
accumulation across reserved and unreserved resources.
    
    ## Verifying this change
    
    This change added tests and can be verified as follows:
    - Unit tests:
      - `MesosResourceAllocationTest`
    - Manual tests:
      - Launch with unreserved resources
      - Launch with a static reservation
      - Launch with a dynamic reservation
      - Launch with a mix of reserved and unreserved resources
      - Launch numerous tasks from a single offer
    
    ## Does this pull request potentially affect one of the following parts:
    
      - Dependencies (does it add or upgrade a dependency): no
      - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
      - The serializers: no
      - The runtime per-record code paths (performance sensitive): no
      - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
      - The S3 file system connector: no
    
    ## Documentation
    
      - Does this pull request introduce a new feature? no
      - If yes, how is the feature documented? not applicable


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

    $ git pull https://github.com/EronWright/flink FLINK-8174-2

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

    https://github.com/apache/flink/pull/5114.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 #5114
    
----
commit 66d885b14ba9cd823489e6f61665459b6af45fbd
Author: Eron Wright <[email protected]>
Date:   2017-12-03T11:14:41Z

    [FLINK-8174] Mesos RM unable to accept offers for unreserved resources

----


> Mesos RM unable to accept offers for unreserved resources
> ---------------------------------------------------------
>
>                 Key: FLINK-8174
>                 URL: https://issues.apache.org/jira/browse/FLINK-8174
>             Project: Flink
>          Issue Type: Bug
>          Components: Mesos
>    Affects Versions: 1.4.0, 1.3.3
>            Reporter: Eron Wright 
>            Assignee: Eron Wright 
>            Priority: Blocker
>             Fix For: 1.4.0
>
>
> Flink has suffered a regression due to FLINK-7294.   Any attempt to accept a 
> resource offer that is based on unreserved resources will fail, because Flink 
> (as of FLINK-7294) erroneously insists that the resource come from a prior 
> reservation.
> Looking at the original issue, the problem may have been misdiagnosed.  
> Ideally Flink should work with both reserved and unreserved resources, but 
> the latter is a more common situation that is now broken.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to