You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2012/05/03 00:58:45 UTC

[jira] [Created] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Jonathan Ellis created CASSANDRA-4212:
-----------------------------------------

             Summary: COMPACT STORAGE should not require a value to be aliased
                 Key: CASSANDRA-4212
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.0
            Reporter: Jonathan Ellis
             Fix For: 1.1.1


It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-4212:
--------------------------------------

    Fix Version/s:     (was: 1.1.1)
                   1.1.2
    
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>              Labels: cql3
>             Fix For: 1.1.2
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267355#comment-13267355 ] 

Sylvain Lebresne commented on CASSANDRA-4212:
---------------------------------------------

First, I'm slightly confused by the patch with respect to the description of this ticket. Are we talking about aliasing the underlying column "name" or "value". The description does suggest the value (for which validation has been added by the 2nd patch of CASSANDRA-4185) but the patch remove the validation for the name.

That being said, I'll assume you mean that the "value" shouldn't be required to be aliased, because I can't make sense of it for the column name. And I'll also suspect you're talking of the case where you're not interested by the column values and want them to always be empty. If so, I could agree it may be worth supporting that, but we'd need to at least modify the insertion to automatically use an EMPTY_BYTE_BUFFER for the value in that case, otherwise there will be no way to insert data on such column family.

But the last thing adding to my confusion is that system.NodeIdInfo does store information in the column values, so I'm not totally sure I understand the suggestion here.
                
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>              Labels: cql3
>             Fix For: 1.1.1
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sylvain Lebresne resolved CASSANDRA-4212.
-----------------------------------------

    Resolution: Duplicate

This is not directly related to CASSANDRA-4329 but I've created CASSANDRA-4361 that does need CASSANDRA-4329 and is a generalization of that. So closing as duplicate of CASSANDRA-4361.
                
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>              Labels: cql3
>             Fix For: 1.1.2
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267518#comment-13267518 ] 

Sylvain Lebresne commented on CASSANDRA-4212:
---------------------------------------------

bq. apparently we write a copy of broadcast address as the value, but it is never read. Curious now if that means there's a bug here.

No, adding the IP was some kind of anticipation that NodeId may be gossiped at some point for the purpose of trying to shrink more aggressively counter context when they mention multiple "old" nodeId. I figured if we did so we may end up storing id for other nodes and so the IP was there to distinguish. But the idea I had at the time don't really work, so it ends up being more or less useless information. In fact when I referred to having information in the column I though (by looking to quickly) that this was the timestamp of when the nodeId was created that we were storing (which is slightly more useful). But, that info is kept in the timestamp in fact. Could be worth it to change that code to 1) start writing the IP as it's unlikely we'll ever use it and 2) maybe it could be useful to add a simple way to query the timestamp of columns in CQL, like say {{SELECT foo, timestamp(foo) ...}}.

Anyway, back on the issue, if we want to allow not defining a column alias for a system CF, we can do. If we want to allow it to users, we'd need a little more code to allow insertion in such CFs as said above.
                
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>              Labels: cql3
>             Fix For: 1.1.1
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267470#comment-13267470 ] 

Jonathan Ellis commented on CASSANDRA-4212:
-------------------------------------------

bq. I'll assume you mean that the "value" shouldn't be required to be aliased, because I can't make sense of it for the column name

Yes.  Isn't that what the ticket title says?

bq. system.NodeIdInfo does store information in the column values

Hmm.  I was looking at the read side; apparently we write a copy of broadcast address as the value, but it is never read.  Curious now if that means there's a bug here. :)
                
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>              Labels: cql3
>             Fix For: 1.1.1
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-4212:
--------------------------------------

    Reviewer: jbellis  (was: slebresne)
    Assignee: Sylvain Lebresne  (was: Jonathan Ellis)

bq. Could be worth it to change that code to 1) [stop] writing the IP as it's unlikely we'll ever use it 

Will address in CASSANDRA-4018.

bq. if we want to allow not defining a column alias for a system CF, we can do. If we want to allow it to users, we'd need a little more code to allow insertion in such CFs as said above

Sounds good, I'll put that on your plate since it sounds like you have a pretty good handle on it.
                
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>              Labels: cql3
>             Fix For: 1.1.1
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396028#comment-13396028 ] 

Jonathan Ellis commented on CASSANDRA-4212:
-------------------------------------------

Is this now redundant wrt CASSANDRA-4329 ?
                
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>              Labels: cql3
>             Fix For: 1.1.2
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-4212) COMPACT STORAGE should not require a value to be aliased

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-4212:
--------------------------------------

    Attachment: 4212.txt
    
> COMPACT STORAGE should not require a value to be aliased
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4212
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4212
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Jonathan Ellis
>              Labels: cql3
>             Fix For: 1.1.1
>
>         Attachments: 4212.txt
>
>
> It's legitimate to only need the column name in a schema, e.g., system.NodeIdInfo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira