NullPointerException when the Fluentd server is down
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- java
调研方向
从 RawSocketSender.java 开始,重点查看第 152 行和第 158 行附近的 flushBuffer,并跟踪到达 socket 访问的服务器宕机路径。在 Fluentd 服务器不可用时复现该故障;当该路径不再抛出 NullPointerException,而是报告发送失败时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
When We try to use the Fluentd java logger it throws the fellowing NullPointerException when the Fluentd server is down:
An exception occurred processing Appender fluentd java.lang.NullPointerException
at org.fluentd.logger.sender.RawSocketSender.flushBuffer(RawSocketSender.java:158)
at org.fluentd.logger.sender.RawSocketSender.send(RawSocketSender.java:168)
at org.fluentd.logger.sender.RawSocketSender.emit(RawSocketSender.java:149)
at org.fluentd.logger.sender.RawSocketSender.emit(RawSocketSender.java:131)
at org.fluentd.logger.sender.RawSocketSender.emit(RawSocketSender.java:126)
at org.fluentd.logger.FluentLogger.log(FluentLogger.java:101)
at org.fluentd.logger.FluentLogger.log(FluentLogger.java:86)
The source of the problem is that when the Fluentd server is down the socket in the RawSocketSender object is null so the call to the method RawSocketSender.flushBuffer#Line:152 throws the null pointer exception when executing the fellowing instruction (RawSocketSender.flushBuffer#Line:158):
LOG.error("Cannot send logs to " + socket.getInetAddress().toString());
- 主要语言
- Java
- 星标
- 210
- 派生
- 86
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fluent/fluent-logger-java 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
fluent/fluent-logger-java#100 ·
-
难度 4/5 3-5 天 新手友好度 15/100
fluent/fluent-logger-java#99 · 1 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
fluent/fluent-logger-java#98 · 1 条评论 ·
-
Null Pointer Exception with slf4j-log4j12-1.7.30 (Fluent-logger incompatible with the new version)未关闭
难度 3/5 1-2 天 新手友好度 42/100
fluent/fluent-logger-java#89 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
fluent/fluent-logger-java#88 · 1 条评论 ·
查看 fluent/fluent-logger-java 的全部 Issue
相似的 Issue
-
[destination-snowflake] Custom domains rejected unlike source connections可能已有人在做 @kuza55 今天认领。 未关闭autoteam community connectors/destination/snowflake team/use
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area-dashboard
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
component/operate kind/feature-request
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
Forge coverage prompts carry text the agent cannot act on可能已有人在做 @graalvmbot 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
oracle/graalvm-reachability-metadata#10572 ·
维护者通常 1 天内回复
-
[CI] Core CI doesn't run for changes to amoro-format-lance (and amoro-web)可能已有人在做 @MarkAlex1234 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 2 天内回复