You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is curious that Onboarding requires time in hours, but updating a bucket retention policy in the C# client is given in seconds.
The text was updated successfully, but these errors were encountered:
jeremy-prater
changed the title
Onboarding failes with non-zero retention policy time in hours
Onboarding fails with non-zero retention policy time in hours
Jan 5, 2021
@jeremy-prater thanks for the report, this is unfortunate...
The onboarding implementation is using the specified retention policy as a raw duration (nanoseconds), so if you scale up your argument to match then things should work. The retentionPeriodHrs JSON key is a major misnomer, I'm guessing a spot was missed during a refactor. We'll need to figure out what to do on our end to deal with it now that versions 2.0+ of the influx CLI expect the current implementation.
The good news is: the setup API is explicitly not supported by Cloud, so we don't need to coordinate cross-product API changes. Bad news: Cloud uses the same OnboardingRequest schema in their /setup/user API, but their impl actually treats the value as hours.
danxmoran
changed the title
Onboarding fails with non-zero retention policy time in hours
retentionPeriodHrs key in onboarding requests is misleading
Jan 29, 2021
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
Expected behavior:
Successful onboarding response
Actual behavior:
Onboarding fails with
Message: retention policy duration must be at least 1h0m0s
Environment info:
Config:
Config is default
Code:
Logs:
Workaround:
Onboard influx with no retention policy and then update the default bucket's retention policy after creation
It is curious that Onboarding requires time in hours, but updating a bucket retention policy in the C# client is given in seconds.
The text was updated successfully, but these errors were encountered: