This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch missing-details
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git
The following commit(s) were added to refs/heads/missing-details by this push:
new ba8566f tmp logs
ba8566f is described below
commit ba8566f6d571c5e6245900bdcba0f71be9281a18
Author: mrproliu <[email protected]>
AuthorDate: Thu Dec 12 15:59:37 2024 +0800
tmp logs
---
pkg/tools/buffer/buffer.go | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/pkg/tools/buffer/buffer.go b/pkg/tools/buffer/buffer.go
index 0402c92..35f99e4 100644
--- a/pkg/tools/buffer/buffer.go
+++ b/pkg/tools/buffer/buffer.go
@@ -320,9 +320,16 @@ func (r *Buffer) BuildDetails() *list.List {
}
}
if events.Len() == 0 {
- log.Infof("cannot found details from original buffer,
from data id: %d, end data id: %d, ref: %p",
- fromDataId, endDataId, r.originalBuffer)
+ dataIdList := make([]uint64, 0)
+ for e := r.detailEvents.Front(); e != nil; e = e.Next()
{
+ if e.Value != nil {
+ dataIdList = append(dataIdList,
e.Value.(SocketDataDetail).DataID())
+ }
+ }
+ log.Infof("cannot found details from original buffer,
from data id: %d, end data id: %d, ref: %p, existing details data id list: %v",
+ fromDataId, endDataId, r.originalBuffer,
dataIdList)
}
+
return events
}
return r.detailEvents
@@ -693,6 +700,15 @@ func (r *Buffer) removeElement0(element *list.Element)
*list.Element {
func (r *Buffer) AppendDetailEvent(event SocketDataDetail) {
r.eventLocker.Lock()
defer r.eventLocker.Unlock()
+ defer func() {
+ dataIdList := make([]uint64, 0)
+ for e := r.detailEvents.Front(); e != nil; e = e.Next() {
+ if e.Value != nil {
+ dataIdList = append(dataIdList,
e.Value.(SocketDataDetail).DataID())
+ }
+ }
+ log.Infof("after detail append, total detail events list: %v,
ref: %p", dataIdList, r)
+ }()
if r.detailEvents.Len() == 0 {
r.detailEvents.PushFront(event)