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

Improvements to importer tools #720

Merged
merged 13 commits into from
Sep 5, 2017
Merged

Improvements to importer tools #720

merged 13 commits into from
Sep 5, 2017

Conversation

replay
Copy link
Contributor

@replay replay commented Sep 4, 2017

  • Makes the reader retry failed posts and the writer retry failed writes
  • Better logging
  • Optionally use IF NOT EXISTS (off by default)
  • Ensure that we don't send more points than we need to

@replay replay changed the title Optionally overwrite Improvements to importer tools Sep 4, 2017
pre := time.Now()
resp, err := client.Do(req)
passed := time.Now().Sub(pre).Seconds()
if err != nil || resp.StatusCode-(resp.StatusCode%100) != 200 {
Copy link
Member

Choose a reason for hiding this comment

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

i think just || resp.StatusCode >= 300 is clearer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member

@woodsaj woodsaj left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me.

@replay replay merged commit 5d6b129 into master Sep 5, 2017
@Dieterbe Dieterbe deleted the optionally_overwrite branch September 18, 2018 08:59
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.

2 participants