Thesharing commented on a change in pull request #12917:
URL: https://github.com/apache/flink/pull/12917#discussion_r462825355
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/slotpool/TestingSlotPoolImpl.java
##########
@@ -83,4 +93,52 @@ boolean isBatchSlotRequestTimeoutCheckEnabled() {
public ResourceProfile getLastRequestedSlotResourceProfile() {
return lastRequestedSlotResourceProfile;
}
+
+ public void setReleaseSlotConsumer(Consumer<SlotRequestId>
releaseSlotConsumer) {
+ this.releaseSlotConsumer =
Preconditions.checkNotNull(releaseSlotConsumer);
+ }
+
+ public void
setTimeoutPendingSlotRequestConsumer(Consumer<SlotRequestId>
timeoutPendingSlotRequestConsumer) {
+ this.timeoutPendingSlotRequestConsumer =
Preconditions.checkNotNull(timeoutPendingSlotRequestConsumer);
+ }
+
+ @Override
+ public void releaseSlot(
+ @Nonnull SlotRequestId slotRequestId,
Review comment:
I forget this. I have removed it.
----------------------------------------------------------------
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:
[email protected]