The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/yy-audit-retention 
has failed.
Run started by GitHub user yyqdbngt (triggered by yyqdbngt).

Head commit for run:
944e3e75f7674f37616b0332b8814e349975c53a / yyqdbngt <[email protected]>
feat(audit): add scheduled audit-log retention sweep

The audit table was the only growing studio table without automatic
retention: AuditService.cleanupLogs was reachable only from the manual
POST /api/audit-logs/cleanup endpoint, so the table grew forever unless
an administrator remembered to click the cleanup.

Add an opt-in studio.audit.retention-days property (default 0 = keep
every row, so an upgrade never starts deleting compliance evidence)
driving an hourly @Scheduled purgeExpiredAuditLogs() that reuses the
same bounded 500x20 delete as the manual endpoint. Retention above the
manual 365-day maximum is clamped with a warning instead of failing
every hour, repository failures are logged and swallowed, and the
manual cleanup endpoint is unchanged.

Tests: AuditRetentionSweepTest covers the keep-forever default, the
bounded cutoff, the clamp, the swallowed repository failure and the
hourly schedule.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/36958975527

With regards,
GitHub Actions via GitBox

Reply via email to