Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

(VDB-570) Handle duplicate storage diffs #93

Merged
merged 1 commit into from
May 2, 2019

Conversation

rmulhol
Copy link
Contributor

@rmulhol rmulhol commented May 2, 2019

  • If processing a new diff for a row that already exists in the DB,
    ignore the error without logging or queueing
  • If processing a queued diff for a row that already exists, remove
    it from the queue

- If processing a new diff for a row that already exists in the DB,
  ignore the error without logging or queueing
- If processing a queued diff for a row that already exists, remove
  it from the queue
@rmulhol rmulhol force-pushed the vdb-570-storage-duplicates branch from 51daecb to 36c4da3 Compare May 2, 2019 16:39
Copy link
Contributor

@elizabethengelman elizabethengelman left a comment

Choose a reason for hiding this comment

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

🎉

@rmulhol rmulhol merged commit 3b53195 into staging May 2, 2019
@rmulhol rmulhol deleted the vdb-570-storage-duplicates branch May 2, 2019 18:40
@@ -193,5 +193,5 @@ func composeAndExecute() {
func init() {
rootCmd.AddCommand(composeAndExecuteCmd)
composeAndExecuteCmd.Flags().BoolVarP(&recheckHeadersArg, "recheck-headers", "r", false, "whether to re-check headers for watched events")
composeAndExecuteCmd.Flags().DurationVarP(&queueRecheckInterval, "queue-recheck-interval", "q", 5 * time.Minute, "how often to recheck queued storage diffs")
composeAndExecuteCmd.Flags().DurationVarP(&queueRecheckInterval, "queue-recheck-interval", "q", 5*time.Minute, "how often to recheck queued storage diffs")
Copy link
Contributor

Choose a reason for hiding this comment

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

@rmulhol The format/resolution to supply this parameter in is unclear. Seconds?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@m0ar duration takes a format like 5m30s - put some examples in the flags section of the composeAndExecute docs, but happy to augment/move that if you think that'd be helpful.

Copy link
Contributor

@m0ar m0ar May 6, 2019

Choose a reason for hiding this comment

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

Add it in the short-hand docs on this line as well? I'd never have guessed :D

@@ -139,7 +139,7 @@ func execute() {
func init() {
rootCmd.AddCommand(executeCmd)
executeCmd.Flags().BoolVarP(&recheckHeadersArg, "recheck-headers", "r", false, "whether to re-check headers for watched events")
executeCmd.Flags().DurationVarP(&queueRecheckInterval, "queue-recheck-interval", "q", 5 * time.Minute, "how often to recheck queued storage diffs")
executeCmd.Flags().DurationVarP(&queueRecheckInterval, "queue-recheck-interval", "q", 5*time.Minute, "how often to recheck queued storage diffs")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants