Skip to content

Commit 9913754

Browse files
committed
feat: raft Registry client is adapted to http2 watch
# Conflicts: # changes/en-us/2.x.md # changes/zh-cn/2.x.md
1 parent e006d10 commit 9913754

File tree

5 files changed

+503
-59
lines changed

5 files changed

+503
-59
lines changed

changes/en-us/2.x.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Add changes here for all PR submitted to the 2.x branch.
2525
- [[#7865](https://github.com/apache/incubator-seata/pull/7865)] add Benchmark CLI tool
2626
- [[#7903](https://github.com/apache/incubator-seata/pull/7903)] Support HTTP/2 stream push for the Watch API in Server Raft mode
2727
- [[#8002](https://github.com/apache/incubator-seata/pull/8002)] add Grafana dashboard JSON for NamingServer metrics
28+
- [[#7952](https://github.com/apache/incubator-seata/pull/7952)] Support runtime dynamic switching between HTTP/1.1 and HTTP/2 for Raft client watch, with a 2.7.0 version threshold and compatibility fallback
2829

2930
### bugfix:
3031

changes/zh-cn/2.x.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- [[#7865](https://github.com/apache/incubator-seata/pull/7865)] 新增 Benchmark 命令行工具
2727
- [[#7903](https://github.com/apache/incubator-seata/pull/7903)] 在Server Raft模式下支持Watch API的HTTP/2流推送
2828
- [[#8002](https://github.com/apache/incubator-seata/pull/8002)] 为namingserver指标增加Grafana dashboard JSON
29+
- [[#7952](https://github.com/apache/incubator-seata/pull/7952)] 在Raft客户端支持Watch在HTTP/1.1与HTTP/2之间运行时动态切换
2930

3031
### bugfix:
3132

discovery/seata-discovery-raft/pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
<artifactId>seata-discovery-core</artifactId>
3636
<version>${project.version}</version>
3737
</dependency>
38+
<dependency>
39+
<groupId>org.apache.seata</groupId>
40+
<artifactId>seata-core</artifactId>
41+
<version>${project.version}</version>
42+
</dependency>
3843
<dependency>
3944
<groupId>org.apache.httpcomponents</groupId>
4045
<artifactId>httpclient</artifactId>
@@ -43,9 +48,14 @@
4348
<groupId>com.squareup.okhttp3</groupId>
4449
<artifactId>okhttp</artifactId>
4550
</dependency>
51+
<dependency>
52+
<groupId>com.squareup.okhttp3</groupId>
53+
<artifactId>mockwebserver</artifactId>
54+
<scope>test</scope>
55+
</dependency>
4656
<dependency>
4757
<groupId>com.fasterxml.jackson.core</groupId>
4858
<artifactId>jackson-databind</artifactId>
4959
</dependency>
5060
</dependencies>
51-
</project>
61+
</project>

0 commit comments

Comments
 (0)