-
Notifications
You must be signed in to change notification settings - Fork 203
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
feat: 执行历史归档新增模式-只备份不删除 #3037 #3043
Conversation
wangyu096
commented
Jun 5, 2024
•
edited
Loading
edited
- 该模式当前仅设计为归档功能测试&性能测试使用,保证归档测试过程中不会删除原始数据。
- 不对用户开放,文档暂时无需补充相关说明
- 优化日志
- 优化归档任务的执行结果输出详情
havingValue = ArchiveModeEnum.Constants.BACKUP_THEN_DELETE) | ||
class ArchiveModeBackupThenDeleteCondition { | ||
@Conditional(JobExecuteBackupCondition.class) | ||
static class BackupCondition { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里添加的BackupCondition看起来并没有被引用,不对任何Bean产生影响,需要确认下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是 spring condition AllNestedConditional 的写法,内部定义的静态类会被作为判断条件。这个是框架使用的,业务代码本身不会处理这个逻辑。具体可以在代码中,看下 spring 框架继承 AllNestedConditions 的一些写法,跟此处类似。
该条件的生效,已经在我们内部环境在不同的归档模式 backupOnly/deleteOnly/backupThenDelete 下都有验证,符合预期。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1个问题需确认