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

Fix gob encoding of system/package struct data #18887

Merged

Conversation

andrewkroh
Copy link
Member

What does this PR do?

The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Why is it important?

The Auditbeat system module was emitting errors at runtime.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jun 1, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536
@andrewkroh andrewkroh force-pushed the bugfix/ab/system-package-gob-encoding branch from a86f59c to 8852d7c Compare June 1, 2020 18:37
@andrewkroh andrewkroh marked this pull request as ready for review June 1, 2020 18:39
@andrewkroh andrewkroh requested a review from a team as a code owner June 1, 2020 18:39
@andrewkroh andrewkroh added review needs_backport PR is waiting to be backported to other branches. labels Jun 1, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 1, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #18887 updated]

  • Start Time: 2020-06-02T13:58:40.105+0000

  • Duration: 115 min 56 sec

Test stats 🧪

Test Results
Failed 0
Passed 730
Skipped 176
Total 906

@andrewkroh andrewkroh merged commit cf7b643 into elastic:master Jun 3, 2020
andrewkroh added a commit to andrewkroh/beats that referenced this pull request Jun 8, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536

(cherry picked from commit cf7b643)
@andrewkroh andrewkroh added v7.9.0 and removed needs_backport PR is waiting to be backported to other branches. labels Jun 8, 2020
andrewkroh added a commit to andrewkroh/beats that referenced this pull request Jun 8, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536

(cherry picked from commit cf7b643)
andrewkroh added a commit that referenced this pull request Jun 8, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes #18536

(cherry picked from commit cf7b643)
andrewkroh added a commit that referenced this pull request Jun 9, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes #18536

(cherry picked from commit cf7b643)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Auditbeat] Error from system/package dataset on darwin at startup
3 participants