Skip to content

Commit 73072cb

Browse files
committed
fix:fix tsf lossless not working bug.
1 parent 463efae commit 73072cb

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
- [fix: fix loadbalancer metadata type.](https://github.com/Tencent/spring-cloud-tencent/pull/1626)
1313
- [feat:support polaris server nearby backup LB.](https://github.com/Tencent/spring-cloud-tencent/pull/1630)
1414
- fix:fix ipv6 instance not found bug.
15+
- fix:fix tsf lossless not working bug.

spring-cloud-tencent-examples/tsf-example/consumer-demo/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,10 @@
2626
<groupId>org.springframework.cloud</groupId>
2727
<artifactId>spring-cloud-starter-openfeign</artifactId>
2828
</dependency>
29+
30+
<dependency>
31+
<groupId>org.springframework.cloud</groupId>
32+
<artifactId>spring-cloud-starter-bootstrap</artifactId>
33+
</dependency>
2934
</dependencies>
3035
</project>

spring-cloud-tencent-polaris-context/src/main/java/com/tencent/cloud/polaris/context/config/extend/tsf/TsfCoreEnvironmentPostProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
7272
String polarisAdminPort = environment.getProperty("polaris_admin_port");
7373
if (StringUtils.isNotBlank(polarisAdminPort)) {
7474
defaultProperties.put("spring.cloud.polaris.lossless.enabled", environment.getProperty("spring.cloud.polaris.lossless.enabled", "true"));
75+
// for tsf health check.
76+
defaultProperties.put("spring.cloud.polaris.stat.enabled", environment.getProperty("spring.cloud.polaris.stat.enabled", "true"));
7577
}
7678

7779
String tsfPreferIpv6 = environment.getProperty("tsf_prefer_ipv6");

0 commit comments

Comments
 (0)