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

CLI was caching db/rp for insert into statements #7698

Merged
merged 1 commit into from Dec 7, 2016

Conversation

corylanou
Copy link
Contributor

@corylanou corylanou commented Dec 7, 2016

Before:

> create database foo
> use foo
Using database foo
> insert cpu value=1
> insert into badrp mem value=100
Using retention policy badrp
ERR: {"error":"retention policy not found: badrp"}

> insert cpu value=2
ERR: {"error":"retention policy not found: badrp"}

After:

> create database foo
> use foo
Using database foo
> insert cpu value=1
> insert into badrp mem value=100
ERR: {"error":"retention policy not found: badrp"}

> insert cpu value=2
> insert into autogen mem value=100
> select * from cpu
name: cpu
time                value
----                -----
1481123342516456239 1
1481123351091949866 2

> select * from mem
name: mem
time                value
----                -----
1481123368541597661 100
Required for all non-trivial PRs

@corylanou corylanou self-assigned this Dec 7, 2016
@corylanou corylanou added this to the 1.2.0 milestone Dec 7, 2016
@joelegasse
Copy link
Contributor

Have you filed a docs issue to remove the note at the end of the insert section on the CLI page?

https://docs.influxdata.com/influxdb/v1.1/tools/shell/#write-data-to-influxdb-with-insert

@corylanou corylanou merged commit 29a4a16 into master Dec 7, 2016
@corylanou corylanou deleted the cjl-fix-cli-into-rp-cache branch December 7, 2016 17:19
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.

None yet

2 participants