Skip to content
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

Panic while saving service store: encodeReflectValue: nil element #20

Closed
geertw opened this issue May 19, 2019 · 1 comment
Closed

Panic while saving service store: encodeReflectValue: nil element #20

geertw opened this issue May 19, 2019 · 1 comment
Labels

Comments

@geertw
Copy link
Member

geertw commented May 19, 2019

Occasionally, the following error is returned while saving stores during shutdown

ERRO[671056] Error while saving stores   error="gob: encodeReflectValue: nil element"

This can be traced down to a panic while saving the service store. There appears to be a nil reference somewhere in the store. It is yet unknown whether this is in the store itself, or in the underlying service models.

Steps taken so far:

  • Removed all nil references which still existed
  • Wrote a specific unit test where services were deleted from the store
  • Return a copy of store.services when saving

This issue is meant to track any additional findings.

@geertw geertw added the bug label May 19, 2019
geertw added a commit that referenced this issue May 19, 2019
@geertw
Copy link
Member Author

geertw commented Jul 13, 2019

Auto-saving has been enabled since May, and this problem doesn't seem to occur anymore. Will close this issue soon if the problem doesn't manifest itself soon.

@geertw geertw closed this as completed Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant