smalljunHw

Results issues of smalljunHw

I use PosixViewAttribute to set file permission ```xml ``` When I start my project in Windows (like in Intellij IDEA), I got the following error info. ```bash main ERROR Null...

bug
runtime
Stale

分析ServiceComb 的源码(1.3.8),发现实例查找存在并发问题,导致出现先查询的实例状态后更新的问题。 触发实例查找和更新主要有两个触发源 1)周期查询更新 2)watch触发 不同的来源会在Service Center Task线程池提交查询更新任务,且可能在不同线程中并发执行,主要步骤为: ```bash 触发源(周期/watch) ---> 注册中心查询实例信息 ---> 实例状态更新到本地缓存 ``` 从代码看,只有更新本地实例状态时才会有锁同步操作,查询实例则可能并发执行。由于线程调度切换问题,因此即使是先查询到的实例状态结果,也有可能被后更新,导致以上结果。 此问题在注册中心实例watch模式下,多个实例同时下线时容易复现,请求会发到已下线的节点而失败。

The document says > We are still improving our protocols, binary compatibility are not ensured between fury releases for now. Please shade fury if you will upgrade fury in the...

enhancement

The image from this link https://pinpoint-apm.github.io/pinpoint/2.2.2/plugindevguide.html#22-top-level-method-of-a-node has a problem that confuses me a lot. I think the NextSpanID in the message should be the same with the spanId in the...

bug
document

ServiceComb 1.3.8 注册中心实例watch模式下,微服务的每一个实例状态出现变化,就会导致CSE重新从注册中心查询实例列表。设被调用方微服务有m个实例,则n个被调用方的微服务同时发生变化,就会触发 m * n次实例查询,对注册中心冲击会较大。若能合并短时间内的查询请求,这样查询次数可以由 m * n 变为m * 1次。 建议实现:watch事件通知后,delay一段时间(如200ms,可通过配置设置),在此期间若有其他查询(来自watch或周期查询)请求,则合并为1次。

enhancement
2.x

是否涉及Netty CVE-2023-34462漏洞

见 DefaultHttpClientFilter的异常处理 ```java try { result = produceProcessor.decodeResponse(responseEx.getBodyBuffer(), responseType); Response response = Response.create(responseEx.getStatusType(), result); if (response.isFailed()) { LOGGER.warn("invoke operation [{}] failed, status={}, msg={}", invocation.getMicroserviceQualifiedName(), responseEx.getStatusType().getStatusCode(), result == null ? ""...

enhancement
2.x

如题,我们碰到有些业务需要在启动过程中需要调用别的CSE微服务来做一些初始化的工作,这个时候需要监听AFTER_REGISTRY事件,但是自定义的BootListener在监听AFTER_REGISTRY事件如果抛异常,会有2个问题 1)不会像别的监听事件一样,listener抛异常会让启动失败 2)会造成后续监听此事件的listener不执行 最后,仅是打些报错日志。 从实现看,是因为微服务实例注册事件是在Service Center线程执行的,而不是在main线程,故listener抛异常不会导致启动失败。

enhancement

2.8.10版本 将OperationInstancesDiscoveryFilter默认禁能了,并且还说可能后面不会保留该功能,但该Filter功能比较重要。如果consumer和producer同时存在新老版本实例时,OperationInstancesDiscoveryFilter可以确保新的consumer不会把新增请求发给不能响应的旧的producer实例上

查看修改 https://github.com/apache/servicecomb-java-chassis/pull/3927 客户端keep-alive超时会设置比idle超时 -1, 这能确保keep-alive超时比idle超时小 ```java public static int getConnectionKeepAliveTimeoutInSeconds() { if (result >= 0) { return result; } result = getConnectionIdleTimeoutInSeconds(); if (result > 1) { // a bit...