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

fix(backend): mysql 定点回档参数调整 #1666 #1667

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def query_backup_log_from_bklog(self, start_time: str, end_time: str) -> List[Di
collector="mysql_backup_result",
start_time=start_time,
end_time=end_time,
query_string=f'log: "cluster_address: \\"{cluster_domain}\\""',
query_string=f'log: "cluster_id: \\"{self.cluster.id}\\""',
)

if self.cluster.cluster_type == ClusterType.TenDBCluster:
Expand Down
2 changes: 1 addition & 1 deletion dbm-ui/backend/dbm_init/medium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FROM go-mod-builder as redis-medium-builder
## 构建redis介质
RUN set -ex && \
cd /blueking-dbm/dbm-services/redis/db-tools/dbactuator && make -j4 && \
cd /blueking-dbm/dbm-services/redis/db-tools/dbmon && sh package.sh
cd /blueking-dbm/dbm-services/redis/db-tools/dbmon && bash package.sh


FROM go-mod-builder as bigdata-medium-builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
)
from backend.flow.plugins.components.collections.mysql.mysql_rollback_data_download_binlog import (
MySQLRollbackDownloadBinlog,
MySQLRollbackDownloadBinlogComponent,
)
from backend.flow.plugins.components.collections.mysql.rollback_local_trans_flies import (
RollBackLocalTransFileComponent,
Expand Down Expand Up @@ -173,7 +174,7 @@ def rollback_local_and_time(root_id: str, ticket_data: dict, cluster_info: dict)
)
sub_pipeline.add_act(
act_name=_("下载定点恢复的binlog到{}").format(cluster_info["rollback_ip"]),
act_component_code=MySQLRollbackDownloadBinlog.code,
act_component_code=MySQLRollbackDownloadBinlogComponent.code,
kwargs=asdict(download_kwargs),
)

Expand Down Expand Up @@ -340,14 +341,13 @@ def rollback_local_and_backupid(root_id: str, ticket_data: dict, cluster_info: d

exec_act_kwargs.exec_ip = cluster_info["rollback_ip"]
exec_act_kwargs.cluster = cluster_info
task_ids = [i["task_id"] for i in backupinfo["file_list_details"]]
sub_pipeline.add_act(
act_name=_("传输文件{}").format(cluster_info["rollback_ip"]),
act_component_code=RollBackLocalTransFileComponent.code,
kwargs=asdict(
RollBackTransFileKwargs(
bk_cloud_id=cluster_info["bk_cloud_id"],
file_list=task_ids,
file_list=[],
file_target_path=cluster_info["file_target_path"],
source_ip_list=[],
exec_ip=cluster_info["rollback_ip"],
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/bk-dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ dependencies:
description: A Helm chart for bkdbm
name: bk-dbm
type: application
version: 1.2.0-alpha.77
appVersion: 1.2.0-alpha.77
version: 1.2.0-alpha.78
appVersion: 1.2.0-alpha.78
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/dbm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.2.0-alpha.444
appVersion: 1.2.0-alpha.449
description: A Helm chart for dbm
name: dbm
type: application
Expand Down
Loading