-
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: 容器执行支持 label selector 表达式 #2858 #2864
Conversation
wangyu096
commented
Apr 1, 2024
•
edited
Loading
edited
- 实现 label selector 解析
- 修复通过分页查询方式获取容器,因为原始数据变更导致多次分页结果数据重复/遗漏的问题
@@ -239,6 +239,9 @@ public static <T, R> PageData<R> copyPageWithNewData(PageData<T> srcPageData, Li | |||
|
|||
/** | |||
* 查询全量 - 通过循环分页查询 | |||
* <p> | |||
* 注意:如果多次分页查询期间元升数据发生变化,使用该方法可能出现数据重复/遗漏的情况。该方法仅使用于对数据准确度要求不高的场景!!! |
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.
fixed
} catch (Throwable t) { | ||
httpStatus = "error"; | ||
httpStatus = HttpStatus.SC_INTERNAL_SERVER_ERROR; |
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.
值不准确,此处异常可能并非由服务端500导致
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.
fixed. 这个时候 http status 设置为 UNKNOWN。参考 spring actuator 的 http_server_requests 实现
* @param request 保存日志请求 | ||
*/ | ||
@PostMapping("/batch") | ||
InternalResponse<?> tmpSaveLogs( |
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.
这个版本就可以删除了。原始的就是 /service/log/batch, 后面不小心改成了 /batch 导致发布报错 NOT_FOUND. 后续又改回了 /service/log/batch. 引入这个方法只是为了保证 bkop 环境再次发布不会出异常的规避方案
相当于做了一次 A->B->A的修改。
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.
几个小问题需处理