getappmap / getappmap/appmap-java
Illformed appmaps get generated
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 88
- Fork
- 17
- Merge medio
- 2g 2h
- PR unite (30g)
- 1
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo la generazione di appmap con i test Elasticsearch elencati, inclusi BytesKeyedBucketOrdsTests, HyperLogLogPlusPlusTests.testMerge e MedianAbsoluteDeviationAggregatorTests. Ispeziona le sezioni degli eventi generati attorno alle sequenze di byte segnalate e confrontale con una struttura JSON valida. Il lavoro è completato quando questi test non producono più file appmap malformati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100