Skip to content

HIVE-30262: LlapTaskSchedulerService writes 8 INFO lines per task attempt, a quarter of the Tez AM log on large DAGs - #6965

Open
abstractdog wants to merge 1 commit into
apache:masterfrom
abstractdog:llap-scheduler-per-task-logs
Open

abstractdog wants to merge 1 commit into
apache:masterfrom
abstractdog:llap-scheduler-per-task-logs

Conversation

@abstractdog

@abstractdog abstractdog commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Moves the 8 per-task-attempt INFO messages in LlapTaskSchedulerService to DEBUG: 5 on its own logger and 3 on the GuaranteedTasks logger.

  • Arguments that are computed eagerly (constructPendingTaskCountsLogMessage(), NodeInfo.toShortString()) are now behind isDebugEnabled() guards.
  • The string concatenations on GuaranteedTasks use parameterized logging.
  • The aggregate, preemption, node-state, WM summary, warning and error messages stay at INFO.

Why are the changes needed?

These 8 lines are written for every task attempt. In the Tez AM they came to 32 % of log lines and 25 % of bytes: 308 MB in 24 minutes for one 162k-attempt TPC-DS SF10000 run. Five of them are written under the scheduler's write lock. Details and measurements are in HIVE-30262.

Does this PR introduce any user-facing change?

Yes, only in the Tez AM log. At the default INFO level the per-attempt scheduler lines are no longer written. Setting org.apache.hadoop.hive.llap.tezplugins.LlapTaskSchedulerService and/or GuaranteedTasks to DEBUG brings them back.

How was this patch tested?

mvn test -pl llap-tez -Dtest=TestLlapTaskSchedulerService passes. The change only touches log levels, so no new tests were added.

…empt, a quarter of the Tez AM log on large DAGs
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants