-
Notifications
You must be signed in to change notification settings - Fork 67
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
fix bug:There is a memory leak in this part of the code #89
base: main
Are you sure you want to change the base?
Conversation
Welcome @orsline! It looks like this is your first PR to kubeedge/mappers-go 🎉 |
please recommit it with |
renew the PR |
it is still not signed properly. please |
The image cache is applied in the lib library for transferring images, which needs to be released, otherwise there will be a memory leak 2.Modify data update strategy When the device's desire value is inconsistent with the report value, edgecore will re-deliver the desire value. This judgment will cause the desire value to fail to be delivered, because the desire value saved by the mapper has not changed. Signed-off-by: zhangyanhua <[email protected]>
please approve running workflows @fisherxu . thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/assign @RyanZhaoXB
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fisherxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -43,10 +43,6 @@ func SyncInfo(dic *di.Container, message mqtt.Message) { | |||
if i == len(deviceInstances[instanceID].Twins) { | |||
continue | |||
} | |||
// Desired value is not changed. | |||
if deviceInstances[instanceID].Twins[i].Desired.Value == twinValue { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why delete this line?
if the desired value is not changed, we should set the value to device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic processing in this place is not suitable for control message processing, such as controlling the camera to take pictures, one shot is fine, but two shots are not.
Currently, kubeedge does not support independent control messages, so the limitation of this place is removed first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If removed, whether it will affect the original processing logic? Can we add some new logic to handle the situation you mentioned?
The image cache is applied in the lib library for transferring images, which needs to be released, otherwise there will be a memory leak