getappmap / getappmap/appmap-java
Illformed appmaps get generated
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 88
- 派生
- 17
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 1
描述
There are circumstances where the events section of an appmap created by appmap-java is not created correctly.
For example, the appmap for org.elasticsearch.search.aggregations.bucket.terms.BytesKeyedBucketOrdsTests contains the sequences 74},,{" and $"},]}:
Alans-MacBook-Pro org.elasticsearch.search.aggregations$ tail -c+470630560 testExplicitCollectsFromSingleBucket.appmap.json | head -100
tic":false,"thread_id":74},,{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},{"$ref":"$"},]}
The appmap for org.elasticsearch.search.aggregations.metrics.HyperLogLogPlusPlusTests.testMerge contains the sequence ":[,{":
Alans-MacBook-Pro org.elasticsearch.search.aggregations$ tail -c+$(expr 427988011 - 50) testMerge.appmap.json | head -c+200 | less
"lineno":72,"method_id":"readIntLE","parameters":[,{"defined_class":"org.elasticsearch.common.util.AbstractBigArray","event":"return","id":1159599,"lineno":81,"method_id":"size","path":"src/main/java/
The appmap for org.elasticsearch.search.aggregations.metrics.MedianAbsoluteDeviationAggregatorTests contains the sequence main/java,{"defined_class":":
Alans-MacBook-Pro org.elasticsearch.search.aggregations$ tail -c+$(expr 4692538 - 100) testSomeMatchesSortedNumericDocValues.appmap.json | head -c+150
"object_id":719878273,"value":"[Ljava.lang.String;@2ae87881"}],"path":"src/main/java,{"defined_class":"org.elasticsearch.common.settings.AbstractScope
It's possible that there were errors generated during the execution of these tests.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用列出的 Elasticsearch 测试复现 appmap 生成,包括 BytesKeyedBucketOrdsTests、HyperLogLogPlusPlusTests.testMerge 和 MedianAbsoluteDeviationAggregatorTests。检查报告的字节序列附近的生成事件部分,并将其与有效的 JSON 结构进行比较。当这些测试不再生成格式错误的 appmap 文件时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100