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

Add support for reliable acks based on configuration #167

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

agbpatro
Copy link
Collaborator

@agbpatro agbpatro commented Apr 22, 2024

Description

Implement reliable acks in fleet telemetry which will allow to signal back to the vehicle that the request was processed successfully

Type of change

Please select all options that apply to this change:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist:

Confirm you have completed the following steps:

  • My code follows the style of this project.
  • I have performed a self-review of my code.
  • I have made corresponding updates to the documentation.
  • I have added/updated unit tests to cover my changes.
  • I have added/updated integration tests to cover my changes.

@agbpatro agbpatro force-pushed the implement_reliable_acks branch 12 times, most recently from 96d46e5 to 067a332 Compare April 23, 2024 19:12
@agbpatro agbpatro marked this pull request as ready for review April 23, 2024 19:13
@agbpatro agbpatro force-pushed the implement_reliable_acks branch 5 times, most recently from 6731126 to e9ebd90 Compare April 23, 2024 19:39
airbrakeHandler *airbrake.AirbrakeHandler
deliveryChan chan kafka.Event
ackChan chan (*telemetry.Record)
reliableAckTxTypes []string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: could make this a map instead of a slice and it would improve code readability in ProcessReliableAck, probably no performance improvement.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought about that but didn't implement it since there was no performance improvement. From readability POV, it makes sense. Updated!

Expect(err).NotTo(HaveOccurred())
actualTxType := string(streamMessage.MessageTopic)
Expect(actualTxType).To(Equal(expectedTxType))
Expect(streamMessage.TXID).To(Equal([]byte("integration-test-txid")))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Implement reliable acks in fleet telemetry which
will allow to signal back to the vehicle that
the request was processed successfully
@agbpatro agbpatro merged commit be065fb into main Apr 23, 2024
5 checks passed
@agbpatro agbpatro deleted the implement_reliable_acks branch April 23, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants