perf: avoid creating exceptions when no hook implements the error stage
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
When no provider is set (or the provider is NOT_READY/FATAL), evaluateFlag throws an exception internally to reach its catch block. Similarly, for provider-returned errors, we create an exception to pass to error hooks, even if no hook implements error.
The ProviderNotReadyError stack trace is suppressed, but APM agents that instrument exceptions can still capture their own, which adds overhead to every evaluation.
Proposal:
- don't throw for
NOT_READY/FATAL; build the error details directly - only create the exception if an attached hook actually overrides
error(detected once per hook class)
Results (callers see the same errorCode, reason and value) are unchanged. If any attached hook implements error, all hooks' error stages run as before.
- 主要语言
- Java
- 星标
- 129
- 派生
- 60
- 平均合并
- 19 小时 11 分钟
- 30 天内合并 PR
- 19
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
open-feature/java-sdk 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
open-feature/java-sdk#2019 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
open-feature/java-sdk#2053 ·
维护者通常 1 天内回复
-
v0.9.0
难度 5/5 一周以上 新手友好度 35/100
open-feature/java-sdk#1999 ·
维护者通常 1 天内回复
-
on setProvider call, shutting down the previous provider should happen before creating the new one未关闭
难度 3/5 1-2 天 新手友好度 50/100
open-feature/java-sdk#1934 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Multi-provider] Gaps identified relative to js-sdk reference implementation可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭multi-provider
难度 5/5 一周以上 新手友好度 35/100
open-feature/java-sdk#1882 ·
维护者通常 1 天内回复
查看 open-feature/java-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
apache/rocketmq-dashboard#6716 ·
维护者通常 3 天内回复
-
DefaultRedisList.get(int) does not reject an index equal to the list size可能已有人在做 @ryujungkyun 今天认领。 未关闭status: waiting-for-triage
难度 1/5 1 小时以内 新手友好度 68/100
spring-projects/spring-data-redis#3471 ·
维护者通常 5 天内回复
-
:maddi-inspection-kotlin:test runs out of heap in a full maddi test run; exit 1 with no failing test未关闭build/ci front-end:kotlin
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
uwolfer/gerrit-intellij-plugin#768 ·
维护者通常 1 天内回复