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

feat(mysql): tendbcluster、mysql支持记录级闪回 #8225 #8351

Open
wants to merge 1 commit into
base: v1.5.0
Choose a base branch
from

Conversation

peterxucai
Copy link
Collaborator

No description provided.

@peterxucai peterxucai self-assigned this Dec 2, 2024
@peterxucai peterxucai added the testing 正在测试验收中 label Dec 2, 2024
@peterxucai peterxucai force-pushed the feat/mysql_flashback/#8225 branch 2 times, most recently from 9470336 to fbb2c57 Compare December 6, 2024 03:22
@peterxucai peterxucai force-pushed the feat/mysql_flashback/#8225 branch from fbb2c57 to ee5428d Compare December 9, 2024 08:42
except csv.Error:
raise serializers.ValidationError(_("输入内容不符合csv格式"))

def validate_table_fields(self, info, input_fild_names):
Copy link
Collaborator

Choose a reason for hiding this comment

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

可以考虑把这个方法放到RemoteServiceHandler中,作为校验库表字段是否存在的通用方法

@@ -31,6 +31,10 @@ def validate(self, attrs):
super(TendbBaseOperateDetailSerializer, self).validate_cluster_can_access(attrs)
# 校验flash的库表选择器
RemoteServiceHandler(bk_biz_id=self.context["bk_biz_id"]).check_flashback_database(attrs["infos"])
# 库表校验结果判断
self.check_flashback_database_result(attrs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

把前面的

RemoteServiceHandler(bk_biz_id=self.context["bk_biz_id"]).check_flashback_database(attrs["infos"])

放到check_flashback_database_result这个方法里面吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing 正在测试验收中
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants