-
Notifications
You must be signed in to change notification settings - Fork 692
[vParquet5] Fix buffer reuse bug with event-level dedicated columns #6914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
3e96386
0d58ec8
98af431
42dc8a3
f89234b
702c097
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -225,26 +225,32 @@ func (t *TraceInfo) generateRandomBlob(size int) string { | |
|
|
||
| // generateFixedAttributesWithPrefix returns the fixed attributes with a prefix. Keys are lowercase with a hyphen before the numeric suffix (e.g. string-01, int-01, blob-01). | ||
| func (t *TraceInfo) generateFixedAttributesWithPrefix(prefix string) []*jaeger.Tag { | ||
| return []*jaeger.Tag{ | ||
| {Key: fmt.Sprintf("%s-string-01", prefix), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
| {Key: fmt.Sprintf("%s-string-02", prefix), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
| {Key: fmt.Sprintf("%s-string-03", prefix), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
| {Key: fmt.Sprintf("%s-string-04", prefix), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
| {Key: fmt.Sprintf("%s-string-05", prefix), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
| {Key: fmt.Sprintf("%s-blob-01", prefix), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomBlob(vultureBlobSize))}, | ||
| {Key: fmt.Sprintf("%s-int-01", prefix), VType: jaeger.TagType_LONG, VLong: int64Ptr(t.generateRandomInt(1, 1000000))}, | ||
| {Key: fmt.Sprintf("%s-int-02", prefix), VType: jaeger.TagType_LONG, VLong: int64Ptr(t.generateRandomInt(1, 1000000))}, | ||
| {Key: fmt.Sprintf("%s-int-03", prefix), VType: jaeger.TagType_LONG, VLong: int64Ptr(t.generateRandomInt(1, 1000000))}, | ||
| {Key: fmt.Sprintf("%s-int-04", prefix), VType: jaeger.TagType_LONG, VLong: int64Ptr(t.generateRandomInt(1, 1000000))}, | ||
| {Key: fmt.Sprintf("%s-int-05", prefix), VType: jaeger.TagType_LONG, VLong: int64Ptr(t.generateRandomInt(1, 1000000))}, | ||
| var ( | ||
| numStrings = t.r.Intn(6) | ||
| numBlobs = t.r.Intn(2) | ||
| numInts = t.r.Intn(6) | ||
| tags = make([]*jaeger.Tag, 0, numStrings+numBlobs+numInts) | ||
| ) | ||
|
Comment on lines
226
to
+233
|
||
| for i := 0; i < numStrings; i++ { | ||
| tags = append(tags, &jaeger.Tag{Key: fmt.Sprintf("%s-string-%02d", prefix, i+1), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}) | ||
| } | ||
| for i := 0; i < numBlobs; i++ { | ||
| tags = append(tags, &jaeger.Tag{Key: fmt.Sprintf("%s-blob-%02d", prefix, i+1), VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomBlob(vultureBlobSize))}) | ||
| } | ||
| for i := 0; i < numInts; i++ { | ||
| tags = append(tags, &jaeger.Tag{Key: fmt.Sprintf("%s-int-%02d", prefix, i+1), VType: jaeger.TagType_LONG, VLong: int64Ptr(t.generateRandomInt(1, 1000000))}) | ||
| } | ||
| return tags | ||
| } | ||
|
|
||
| func stringPtr(s string) *string { return &s } | ||
|
|
||
| func int64Ptr(n int64) *int64 { return &n } | ||
|
|
||
| func (t *TraceInfo) generateResourceWellKnownAttributes() []*jaeger.Tag { | ||
| if t.r.Intn(2) == 0 { | ||
| return nil | ||
| } | ||
| return []*jaeger.Tag{ | ||
| {Key: "cluster", VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
| {Key: "namespace", VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
|
|
@@ -258,6 +264,9 @@ func (t *TraceInfo) generateResourceWellKnownAttributes() []*jaeger.Tag { | |
| } | ||
|
|
||
| func (t *TraceInfo) generateSpanWellKnownAttributes() []*jaeger.Tag { | ||
| if t.r.Intn(2) == 0 { | ||
| return nil | ||
| } | ||
| return []*jaeger.Tag{ | ||
| {Key: "http.method", VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
| {Key: "http.url", VType: jaeger.TagType_STRING, VStr: stringPtr(t.generateRandomString())}, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.