Closed adrianlzt closed 3 years ago
The problem is triggered by an update to the node.
Once the node is working correctly, if we do (the ID is a others
Software node):
skydive client node update 3a90f19b-1981-4c0b-42f6-a48b4bc57f8c --add 'foo=bar'
Then, next data reaching proccon will produce the error:
Unable to convert map[192.168.1.35:22:map[CreatedAt:1.62246082e+12 Revision:9 UpdatedAt:1.62246086e+12] [2a01:e0a:234:3830:f88:a851:a16a:6bef]:22:map[CreatedAt:1.62246082e+12 Revision:9 UpdatedAt:1.62246086e+12]] (map[string]interface {}) to *NetworkInfo
Error comes from function patchMethod
in graffiti/api/server/server.go
.
To apply a JSON patch, that function marshal the Metadata to JSON, apply the patch and then unmarshal to go data types, but loosing in the way all original go data types.
Investigating the excesive consmuption of memory of probe proccon, I have seen also an increasing number of errors like:
The data types used:
The code generating that error:
field
interface comes from: