You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ga...@apache.org on 2019/09/27 12:39:29 UTC
[flink] 02/06: [hotfix][runtime] Set correct SlotSharingGroupId in
LogicalSlot returned by SimpleSlotProvider
This is an automated email from the ASF dual-hosted git repository.
gary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit e361fcb310705159decab2708063f80cd6d55f5c
Author: Gary Yao <ga...@apache.org>
AuthorDate: Mon Sep 9 11:15:20 2019 +0200
[hotfix][runtime] Set correct SlotSharingGroupId in LogicalSlot returned by SimpleSlotProvider
Set SlotSharingGroupId to the Task's SlotSharingGroupId in TestingLogicalSlot
returned by SimpleSlotProvider
---
.../apache/flink/runtime/executiongraph/utils/SimpleSlotProvider.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/utils/SimpleSlotProvider.java b/flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/utils/SimpleSlotProvider.java
index 15ec343..f0db357 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/utils/SimpleSlotProvider.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/utils/SimpleSlotProvider.java
@@ -106,6 +106,7 @@ public class SimpleSlotProvider implements SlotProvider, SlotOwner {
.setSlotNumber(slot.getPhysicalSlotNumber())
.setAllocationId(slot.getAllocationId())
.setSlotRequestId(slotRequestId)
+ .setSlotSharingGroupId(task.getSlotSharingGroupId())
.setSlotOwner(this)
.createTestingLogicalSlot();
allocatedSlots.put(slotRequestId, slot);