Skip to content

Commit c8e1748

Browse files
committed
[FLINK-22536][runtime] Promote the critical log in FineGrainedSlotManager to INFO level
1 parent 5954122 commit c8e1748

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/DefaultSlotStatusSyncer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public CompletableFuture<Void> allocateSlot(
109109
taskManager.get().getTaskExecutorConnection().getTaskExecutorGateway();
110110
final ResourceID resourceId = taskManager.get().getTaskExecutorConnection().getResourceID();
111111

112-
LOG.debug(
112+
LOG.info(
113113
"Starting allocation of slot {} from {} for job {} with resource profile {}.",
114114
allocationId,
115115
resourceId,
@@ -198,7 +198,7 @@ public CompletableFuture<Void> allocateSlot(
198198
public void freeSlot(AllocationID allocationId) {
199199
Preconditions.checkNotNull(allocationId);
200200
checkStarted();
201-
LOG.debug("Freeing slot {}.", allocationId);
201+
LOG.info("Freeing slot {}.", allocationId);
202202

203203
final Optional<TaskManagerSlotInformation> slotOptional =
204204
taskManagerTracker.getAllocatedOrPendingSlot(allocationId);
@@ -250,6 +250,7 @@ public boolean reportSlotStatus(InstanceID instanceId, SlotReport slotReport) {
250250
// the next slot report or the acknowledgement of the allocation request.
251251
if (!reportedAllocationIds.contains(slot.getAllocationId())
252252
&& slot.getState() == SlotState.ALLOCATED) {
253+
LOG.info("Freeing slot {} by slot report.", slot.getAllocationId());
253254
taskManagerTracker.notifySlotStatus(
254255
slot.getAllocationId(),
255256
slot.getJobId(),

flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/FineGrainedSlotManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public boolean registerTaskManager(
303303
ResourceProfile totalResourceProfile,
304304
ResourceProfile defaultSlotResourceProfile) {
305305
checkInit();
306-
LOG.debug(
306+
LOG.info(
307307
"Registering task executor {} under {} at the slot manager.",
308308
taskExecutorConnection.getResourceID(),
309309
taskExecutorConnection.getInstanceID());
@@ -400,7 +400,7 @@ private Optional<PendingTaskManagerId> findMatchingPendingTaskManager(
400400
public boolean unregisterTaskManager(InstanceID instanceId, Exception cause) {
401401
checkInit();
402402

403-
LOG.debug("Unregistering task executor {} from the slot manager.", instanceId);
403+
LOG.info("Unregistering task executor {} from the slot manager.", instanceId);
404404

405405
if (taskManagerTracker.getRegisteredTaskManager(instanceId).isPresent()) {
406406
Set<AllocationID> allocatedSlots =
@@ -705,7 +705,7 @@ private void releaseIdleTaskExecutorIfPossible(TaskManagerInfo taskManagerInfo)
705705

706706
private void releaseIdleTaskExecutor(InstanceID timedOutTaskManagerId) {
707707
final FlinkException cause = new FlinkException("TaskManager exceeded the idle timeout.");
708-
LOG.debug(
708+
LOG.info(
709709
"Release TaskManager {} because it exceeded the idle timeout.",
710710
timedOutTaskManagerId);
711711
resourceActions.releaseResource(timedOutTaskManagerId, cause);

0 commit comments

Comments
 (0)