Skip to content

chore(deps): bump github.com/polarismesh/polaris-go from 1.5.6 to 1.7.1 in /zrpc/registry/polaris - #360

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/zrpc/registry/polaris/github.com/polarismesh/polaris-go-1.7.1
Open

chore(deps): bump github.com/polarismesh/polaris-go from 1.5.6 to 1.7.1 in /zrpc/registry/polaris#360
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/zrpc/registry/polaris/github.com/polarismesh/polaris-go-1.7.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 20, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/polarismesh/polaris-go from 1.5.6 to 1.7.1.

Release notes

Sourced from github.com/polarismesh/polaris-go's releases.

v1.7.1

What's Changed

Full Changelog: polarismesh/polaris-go@v1.7.1-rc3...v1.7.1

v1.7.1-rc3

What's Changed

Full Changelog: polarismesh/polaris-go@v1.7.1-rc2...v1.7.1-rc3

v1.7.1-rc2

What's Changed

Full Changelog: polarismesh/polaris-go@v1.7.1-rc1...v1.7.1-rc2

v1.7.1-rc1

What's Changed

Full Changelog: polarismesh/polaris-go@v1.7.0...v1.7.1-rc1

v1.7.0

What's Changed

... (truncated)

Changelog

Sourced from github.com/polarismesh/polaris-go's changelog.

[v1.7.1] - 2026-07-15

添加的特性

熔断(Circuit Breaking)

  • 服务级 / 接口级熔断(plugin/circuitbreaker/compositecomposite 熔断器补齐服务(SERVICE)与接口(METHOD/INTERFACE)维度的规则匹配与状态 机,新增 rule_dictionary.go 规则字典按资源级别索引规则、default.go 默认熔断兜底,breaker.go / counter.go / checker.go 完成多级资源的 统计、半开探活与状态流转。
  • 熔断自定义降级响应(Fallback):规则命中 OPEN 时可按服务端配置注入 自定义降级响应(HTTP 状态码 / Header / Body)。counter.buildFallbackInfo 增加 GetEnable() 显式判断,避免 proto 零值 message 在 enable=false 时误注入降级响应。
  • 主动故障探测(Fault Detect):新增 ResourceHealthChecker 主动探测 能力,OPEN 状态下按 faultDetectConfig 周期性探活,探活成功后驱动 熔断器回到 CLOSE。支持 HTTP / TCP / UDP 三类探测器,并扩展协议 / 方法维度 匹配(targetService.api);探测上报走 record=false,避免探测流量自身 扩充探测目标形成自循环。探测日志按「状态变化立即 INFO、连续失败 30s 定时 INFO、连续成功静默」收敛,三类探测器 lastErr 加锁保证并发安全。
  • 熔断事件上报与监控指标:新增 pkg/model/event/circuitbreaker.go, 在熔断状态转换(Open / HalfOpen / Close)时构造 CircuitBreaker<Event> 事件上报到 EventReporter;event_type 采用 "CircuitBreaker"+EventName 组合格式以对齐服务端 pushgateway 仅保留 event_type 的约束,规则名 / 资源 类型 / 前后状态 / 错误率 / 慢调用阈值等打包进 labels。Prometheus Reporter 同步补齐熔断相关监控指标采集。
  • examples/circuitbreaker/:完整重构为端到端验证套件,覆盖 newCircuitBreakerCaller / invokeHandlerCaller 两种调用写法,含 10 个 熔断用例(verify_circuitbreaker.sh)与 6 个主动探测用例 (verify_faultdetect.sh),并提供 mock_event_server.py 校验事件上报、 test.md / fault-detect.md 详尽用例文档(带源码行号引用)。

修复的 BUG

  • ResourceHealthChecker 主动探测两处阻断checker.go 补全 executor 注入(修复 nil panic)与 instanceExpireIntervalMill 初始化;rule.go 主动探测启动门控从 fallbackConfig.enable 修正为 faultDetectConfig.enable, 并修复 sortFaultDetectRules 把规则 copy 到空 slice 导致丢数据的问题。
  • 探测器日志 nil panic:测试 / 未初始化场景下 GetDetectLogger() 返回 nil,经 ContextLogger fallback 后触发 nil.Logger.Debugf/Errorf 的 SIGSEGV。修复:HTTP / TCP / UDP 探测器统一加双层 nil guard。
  • cleanInstances 内存泄漏:清理实例时同步清理 detectLastResult / detectLastReportTime / lastDetectErr,避免残留。

兼容性说明

  • 熔断 SERVICE / METHOD 级规则、Fallback、主动探测、事件上报 均为增量能力, 规则 enable=false 或服务端无下发时行为不变,存量仅使用实例级熔断的用户 无感知。

... (truncated)

Commits
  • 0452ac2 release v1.7.1
  • aa56981 chore(ci): restructure workflows and add integration tests (#290)
  • f80df73 docs: update CHANGELOG for circuitbreaker releases and fix version dates
  • c88c8e1 feat: circuitbreaker events monitoring (#289)
  • 5259e3e feat: fault detect (#288)
  • f2f6a9d feat: 熔断支持自定义降级 (#287)
  • 5527927 feat: service-interface-circuitbreaker (#286)
  • 019bb62 chore: update demos
  • fb690d2 fix: 不在泳道组内的服务调用时不请求到带有lane标签的实例并且支持传递给下游路由插件(#285)
  • a82bb95 fix: 校验限流规则时忽略tsf类型的报错,因为当前并未实现tsf限流插件 (#284)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/polarismesh/polaris-go](https://github.com/polarismesh/polaris-go) from 1.5.6 to 1.7.1.
- [Release notes](https://github.com/polarismesh/polaris-go/releases)
- [Changelog](https://github.com/polarismesh/polaris-go/blob/main/CHANGELOG.md)
- [Commits](polarismesh/polaris-go@v1.5.6...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/polarismesh/polaris-go
  dependency-version: 1.7.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants