zhuzhurk commented on a change in pull request #12278:
URL: https://github.com/apache/flink/pull/12278#discussion_r441400235



##########
File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/slotpool/SlotPoolPendingRequestFailureTest.java
##########
@@ -99,6 +105,40 @@ public void testFailingAllocationFailsPendingSlotRequests() 
throws Exception {
                }
        }
 
+       @Test
+       public void testFailingAllocationFailsRemappedPendingSlotRequests() 
throws Exception {
+               final List<AllocationID> allocations = new ArrayList<>();
+               resourceManagerGateway.setRequestSlotConsumer(slotRequest -> 
allocations.add(slotRequest.getAllocationId()));
+
+               try (SlotPoolImpl slotPool = setUpSlotPool()) {

Review comment:
       It's possible but unrelated. I do not feel like we should cleanup the 
tests here. 
   Like you said, the scheduler might also be not needed. I think it can be a 
larger task and would be better to be a separate task to fully rework the 
`SlotPoolImpl` tests, including those in `SlotPoolImplTest`, 
`SlotPoolInteractionsTest`, `SlotPoolSlotSharingTest`. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to