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: 容器执行支持 label selector 表达式 #2858 #2864

Merged
merged 11 commits into from
Apr 8, 2024

Conversation

wangyu096
Copy link
Collaborator

@wangyu096 wangyu096 commented Apr 1, 2024

  1. 实现 label selector 解析
  2. 修复通过分页查询方式获取容器,因为原始数据变更导致多次分页结果数据重复/遗漏的问题

@wangyu096 wangyu096 requested a review from jsonwan April 1, 2024 07:38
@@ -239,6 +239,9 @@ public static <T, R> PageData<R> copyPageWithNewData(PageData<T> srcPageData, Li

/**
* 查询全量 - 通过循环分页查询
* <p>
* 注意:如果多次分页查询期间元升数据发生变化,使用该方法可能出现数据重复/遗漏的情况。该方法仅使用于对数据准确度要求不高的场景!!!
Copy link
Collaborator

Choose a reason for hiding this comment

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

错别字,“元升”->?,仅使用于->仅适用于

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

} catch (Throwable t) {
httpStatus = "error";
httpStatus = HttpStatus.SC_INTERNAL_SERVER_ERROR;
Copy link
Collaborator

Choose a reason for hiding this comment

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

值不准确,此处异常可能并非由服务端500导致

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed. 这个时候 http status 设置为 UNKNOWN。参考 spring actuator 的 http_server_requests 实现

* @param request 保存日志请求
*/
@PostMapping("/batch")
InternalResponse<?> tmpSaveLogs(
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议在下个大版本删除

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个版本就可以删除了。原始的就是 /service/log/batch, 后面不小心改成了 /batch 导致发布报错 NOT_FOUND. 后续又改回了 /service/log/batch. 引入这个方法只是为了保证 bkop 环境再次发布不会出异常的规避方案

相当于做了一次 A->B->A的修改。

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK

Copy link
Collaborator

@jsonwan jsonwan left a comment

Choose a reason for hiding this comment

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

几个小问题需处理

@jsonwan jsonwan merged commit e569f28 into TencentBlueKing:master Apr 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants