[jira] [Created] (FLINK-20980) ResourceCounter#withResources accepts negative count

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-20980) ResourceCounter#withResources accepts negative count

Shang Yuanchun (Jira)
Chesnay Schepler created FLINK-20980:
----------------------------------------

             Summary: ResourceCounter#withResources accepts negative count
                 Key: FLINK-20980
                 URL: https://issues.apache.org/jira/browse/FLINK-20980
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Coordination
    Affects Versions: 1.13.0
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.13.0


{{ResourceCounter}} enforces that the count of resources never dips below 0, but the withResource factory method does not verify whether the count is >= 0.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)