You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2020/10/21 20:53:47 UTC
[GitHub] [fluo] karthick-rn opened a new pull request #1108: Remove IF NOT EXISTS from create database command
karthick-rn opened a new pull request #1108:
URL: https://github.com/apache/fluo/pull/1108
The `IF NOT EXISTS` syntax has been removed from Influxdb v1.0.0 onwards.
Ref: https://github.com/influxdata/influxdb/issues/5707
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] ctubbsii commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509869269
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
What's the behavior if it exists now?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] ctubbsii commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509913570
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
sorry, I mean, after your change, what happens in this script if the database already exists? do the other lines work, or is the rest aborted? (previously, the other lines would still work, I'm just trying to determine if there's a behavior change in your patch)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] ctubbsii commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509913570
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
sorry, I mean, after your change, what happens in this script if the database already exists? do the other lines work, or is the rest aborted? (previously, the other lines would still work)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] karthick-rn commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
karthick-rn commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509937807
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
If the database already exists, the rest of the lines still get executed. To prove, I did a quick test by manually creating the `fluo_metrics` database using the CLI, ran the import script & could see the continuous queries show up under `fluo_metrics`. Therefore, I think there is no behavioural changes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] karthick-rn commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
karthick-rn commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509903449
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
If it exists, the database won't get created and manually running the `influx -import` on the metrics host throws the below error. Also, this doesn't fail the muchos setup because the import command still produces a return code of '0' despite the error.
```bash
error: error parsing query: found NOT, expected ; at line 1, char 20
error: database not found: fluo_metrics
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] ctubbsii merged pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
ctubbsii merged pull request #1108:
URL: https://github.com/apache/fluo/pull/1108
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] karthick-rn commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
karthick-rn commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509937807
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
If the database already exists, the rest of the lines still work. To prove, I did a quick test by manually creating the `fluo_metrics` database using the CLI, run the import script & could see it works.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] karthick-rn commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
karthick-rn commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509937807
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
If the database already exists, the rest of the lines still get executed. To prove, I did a quick test by manually creating the `fluo_metrics` database using the CLI, ran the import script & could see the continuous queries show up under `fluo_metrics`. Therefore, I don't see any behavioural change.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] ctubbsii commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r509913570
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
sorry, I mean, after your change, what happens in this script if the database already exists? do the other lines work, or is the rest aborted?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo] ctubbsii commented on a change in pull request #1108: Remove IF NOT EXISTS from create database command
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on a change in pull request #1108:
URL: https://github.com/apache/fluo/pull/1108#discussion_r510204814
##########
File path: contrib/influxdb/fluo_metrics_setup.txt
##########
@@ -13,7 +13,7 @@
# DDL
CREATE USER fluo WITH PASSWORD 'secret' WITH ALL PRIVILEGES
-CREATE DATABASE IF NOT EXISTS fluo_metrics
+CREATE DATABASE fluo_metrics
Review comment:
Cool. Thanks!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org