Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Zeta] Support delete logs regularly #7787

Open
wants to merge 26 commits into
base: dev
Choose a base branch
from

Conversation

corgy-w
Copy link
Contributor

@corgy-w corgy-w commented Oct 7, 2024

Purpose of this pull request

Delete logs regularly

For details, see logging.md

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@github-actions github-actions bot added document Zeta e2e dependencies Pull requests that update a dependency file labels Oct 7, 2024
config/seatunnel.yaml Outdated Show resolved Hide resolved
@hailin0 hailin0 linked an issue Oct 11, 2024 that may be closed by this pull request
3 tasks
@hailin0
Copy link
Member

hailin0 commented Oct 11, 2024

link #7712

@dailai
Copy link
Contributor

dailai commented Oct 14, 2024

Thinks @corgy-w. Please fix the ci.

@corgy-w
Copy link
Contributor Author

corgy-w commented Oct 14, 2024

Thinks @corgy-w. Please fix the ci.

In progress, but I don't know what went wrong. I've been looking for it.

@corgy-w
Copy link
Contributor Author

corgy-w commented Oct 23, 2024

@dailai @hailin0 @Hisoka-X PTAL

@github-actions github-actions bot removed the dependencies Pull requests that update a dependency file label Oct 23, 2024
# Conflicts:
#	seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/rest/RestHttpGetCommandProcessor.java
#	seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/rest/servlet/BaseServlet.java
#	seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/rest/servlet/LogBaseServlet.java
@corgy-w corgy-w requested a review from Hisoka-X October 29, 2024 07:10
Comment on lines 408 to 418
for (Map.Entry<TaskGroupLocation, CompletableFuture<SlotProfile>> entry :
preApplyResourceFutures.entrySet()) {
try {
Address worker = entry.getValue().get().getWorker();
historyExecutionPlan.add(
new ExecutionAddress(worker.getHost(), worker.getPort()));

} catch (Exception e) {
LOGGER.warning("history execution plan add worker failed", e);
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @zhangshenghang for a look.

log.warn(String.format("Log file path is empty, get logRef : %s", logRef));
return null;
}
return LogUtil.getLogPath();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs/en/seatunnel-engine/logging.md Outdated Show resolved Hide resolved
Hisoka-X
Hisoka-X previously approved these changes Oct 29, 2024
Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if ci passes. Thanks @corgy-w !

@corgy-w corgy-w requested a review from hailin0 October 30, 2024 10:45
@Hisoka-X Hisoka-X changed the title [Improve][Zeta] Delete logs regularly [Feature][Zeta] Support delete logs regularly Oct 30, 2024
history-job-expire-minutes: 1440
telemetry:
logs:
scheduled-deletion-enable: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this configuration be deleted? Keeping it as part of the job history information may cause disk accumulation.

cc @Hisoka-X

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.

[Feature][Zeta] Support automatic delete of completed task log files
4 participants