[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-03-18 Thread Benjamin Lerer (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17508799#comment-17508799
 ] 

Benjamin Lerer commented on CASSANDRA-15297:


Thanks [~maxwellguo], [~saranya_k] and [~frankgh] for the patch.

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-03-18 Thread Benjamin Lerer (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17508797#comment-17508797
 ] 

Benjamin Lerer commented on CASSANDRA-15297:


|| Branches || CI ||
|[4.0|https://github.com/frankgh/cassandra/commit/2e90cd45505d139ee2310069d845f6e4091f235f]
 | 
[j8|https://app.circleci.com/pipelines/github/frankgh/cassandra?branch=CASSANDRA-15297-trunk=all]
 |
|[trunk|https://github.com/frankgh/cassandra/commit/23c9550eac057eeab1e7e6b02c73ccd845618681]
 | 
[j8|https://app.circleci.com/pipelines/github/frankgh/cassandra?branch=CASSANDRA-15297-trunk=all]
 |

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-02-07 Thread Saranya Krishnakumar (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17488516#comment-17488516
 ] 

Saranya Krishnakumar commented on CASSANDRA-15297:
--

Thanks for pointing, made the change to use 
{code:java}
File.pathSeparator() {code}

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-02-01 Thread Benedict Elliott Smith (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17485293#comment-17485293
 ] 

Benedict Elliott Smith commented on CASSANDRA-15297:


There's {{File.pathSeparator()}} in the replacement for {{File}}

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-02-01 Thread Brandon Williams (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17485287#comment-17485287
 ] 

Brandon Williams commented on CASSANDRA-15297:
--

I think now that we don't use (and forbid via checkstyle) File and friends, we 
need to know what the usable equivalent is to File.separator.

I think now that we don't support windows this probably isn't even needed?

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-02-01 Thread Benedict Elliott Smith (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17485273#comment-17485273
 ] 

Benedict Elliott Smith commented on CASSANDRA-15297:


bq. the File import used for the File.separator 

Link?

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-02-01 Thread Benjamin Lerer (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17485244#comment-17485244
 ] 

Benjamin Lerer commented on CASSANDRA-15297:


[~saranya_k] on 4.0 some of the new tests are failing 
[here|https://app.circleci.com/pipelines/github/blerer/cassandra/257/workflows/4f2fec7f-41ed-4863-ae0a-e2c2404a38d1/jobs/2333]
 and the {{File}} import used for the {{File.separator}} is making the build 
fail. [~samt], [~benedict] do you know what should be use to avoid this problem 
?  

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-01-31 Thread Benjamin Lerer (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17484769#comment-17484769
 ] 

Benjamin Lerer commented on CASSANDRA-15297:


CI runs: 
[4.0|https://app.circleci.com/pipelines/github/blerer/cassandra/257/workflows/4f2fec7f-41ed-4863-ae0a-e2c2404a38d1]
 and 
[trunk|https://app.circleci.com/pipelines/github/blerer/cassandra/256/workflows/4d3cc691-b340-4bac-801a-4a760e7ca161]

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-01-31 Thread Benjamin Lerer (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17484749#comment-17484749
 ] 

Benjamin Lerer commented on CASSANDRA-15297:


[~saranya_k] Thanks for the test. It looks good :-)

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: Saranya Krishnakumar
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2022-01-21 Thread Saranya Krishnakumar (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17480263#comment-17480263
 ] 

Saranya Krishnakumar commented on CASSANDRA-15297:
--

[~blerer] I created a PR after adding unit test 
https://github.com/apache/cassandra/pull/1420

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2021-12-11 Thread Benjamin Lerer (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17457614#comment-17457614
 ] 

Benjamin Lerer commented on CASSANDRA-15297:


[~saranya_k] Yes. It just need some nodetool unit test.

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2021-12-10 Thread Saranya Krishnakumar (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17457492#comment-17457492
 ] 

Saranya Krishnakumar commented on CASSANDRA-15297:
--

[~blerer] I see this PR is still open, can I take it up?

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2021-08-20 Thread Benjamin Lerer (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17402259#comment-17402259
 ] 

Benjamin Lerer commented on CASSANDRA-15297:


[~maxwellguo] The fix look good but there is no test for it. Would you mind 
adding a nodetool test for that scenario?

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2019-09-06 Thread maxwellguo (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16924644#comment-16924644
 ] 

maxwellguo commented on CASSANDRA-15297:


thank you .

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2019-09-06 Thread Chris Lohfink (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16924563#comment-16924563
 ] 

Chris Lohfink commented on CASSANDRA-15297:
---

LGTM +1

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2019-09-05 Thread maxwellguo (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16923898#comment-16923898
 ] 

maxwellguo commented on CASSANDRA-15297:


[~cnlwsu] hi, i just modify the message and some space issue. For my local 
environment got some problem ,so i just made a new PR. url : 
https://github.com/apache/cassandra/pull/352


> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2019-09-05 Thread maxwellguo (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16923865#comment-16923865
 ] 

maxwellguo commented on CASSANDRA-15297:


Thank you for your advice, i will modify it .

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2019-09-05 Thread Chris Lohfink (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16923863#comment-16923863
 ] 

Chris Lohfink commented on CASSANDRA-15297:
---

Nitpicking there an extra trailing on string and since its just 
{{File.separator}} can probably just say in message {code}"Snapshot name cannot 
contain " +  File.separator{code}

With that it looks good to me.

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 4.x
>
> Attachments: after-fix.jpg, image.png, listsnapshots-p-s.jpg, 
> snapshot-listsnapshot-.jpg, snapshot-p-s.jpg
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
>   !snapshot-p-s.jpg! 
>  !listsnapshots-p-s.jpg! 
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
>  !snapshot-listsnapshot-.jpg! 
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15297) nodetool can not create snapshot with snapshot name that have special character

2019-09-02 Thread maxwellguo (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16920709#comment-16920709
 ] 

maxwellguo commented on CASSANDRA-15297:


after we fix the bug the resultt should be like this :  !after-fix.jpg! 

> nodetool can not create snapshot with snapshot name that have special 
> character
> ---
>
> Key: CASSANDRA-15297
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15297
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tool/nodetool
>Reporter: maxwellguo
>Assignee: maxwellguo
>Priority: Normal
> Attachments: after-fix.jpg, listsnapshots-p-s.jpg, snapshot-p-s.jpg, 
> snapshots-listsnapshot-.jpg.jpg
>
>
> we make snapshot through "nodetool snapshot -t snapshotname " , when 
> snapshotname contains special characters like "/", the make snapshot process 
> successfully , but the result 
> can be different ,when we check the data file directory or use "nodetool 
> listsnapshots".
> here is some case :
> 1. nodetool snapshot -t "p/s"
> the listsnapshot resturns snapshot  p for all table but actually the snapshot 
> name is "p/s";
> also the data directory is like the format : 
> datapath/snapshots/p/s/snapshot-datafile-link
> 2. nodetool snapshot -t "/"
> the listsnapshot resturns "there is not snapshot"; but the make snapshot 
> process return successfully and the data directory is like the format : 
> datapath/snapshots/snapshot-datafile-link
> the Attachements are the result under our environment.
> so for me , we suggest that the snapshot name should not contains special 
> character. just throw exception and told the user not to use  special 
> character.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org