You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2010/02/24 18:16:27 UTC

[jira] Created: (HADOOP-6596) Should a version to the serialization of DelegationToken

Should a version to the serialization of DelegationToken
--------------------------------------------------------

                 Key: HADOOP-6596
                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
             Project: Hadoop Common
          Issue Type: Improvement
          Components: security
            Reporter: Owen O'Malley
            Assignee: Owen O'Malley


Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-6596:
----------------------------------

    Status: Patch Available  (was: Open)

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-6596:
----------------------------------

    Attachment: c-6596.patch

Here is a trivial patch to add a version byte, which should be sufficient. The other option is if someone wants to show me how to convert the delegation tokens to Avro. *smile*

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-6596:
----------------------------------

    Attachment: c-6596.patch

Forgot to include --no-prefix on the patch

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837950#action_12837950 ] 

Hadoop QA commented on HADOOP-6596:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12436885/c-6596.patch
  against trunk revision 915168.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/378/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/378/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/378/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/378/console

This message is automatically generated.

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837901#action_12837901 ] 

Hadoop QA commented on HADOOP-6596:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12436866/c-6596.patch
  against trunk revision 915168.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    -1 patch.  The patch command could not apply the patch.

Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/377/console

This message is automatically generated.

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837895#action_12837895 ] 

Owen O'Malley commented on HADOOP-6596:
---------------------------------------

I should actually, further comment that for this use case, it would be awkward to use Avro, precisely because we don't have a metadata channel. In this case, having the metadata embedded in the object's serialization is right.

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-6596:
----------------------------------

    Status: Open  (was: Patch Available)

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838825#action_12838825 ] 

Hudson commented on HADOOP-6596:
--------------------------------

Integrated in Hadoop-Common-trunk #261 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/261/])
    . Add a version field to the AbstractDelegationTokenIdentifier's
serialized value. (omalley)


> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-6596:
----------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

Since this changes the serialization format of the type, there isn't a reasonable unit test.

I just committed this.

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-6596:
----------------------------------

    Status: Patch Available  (was: Open)

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840608#action_12840608 ] 

Hudson commented on HADOOP-6596:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #193 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/193/])
    . Add a version field to the AbstractDelegationTokenIdentifier's
serialized value. (omalley)


> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-6596:
----------------------------------

    Summary: Should add version to the serialization of DelegationToken  (was: Should a version to the serialization of DelegationToken)

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Jeff Hammerbacher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837948#action_12837948 ] 

Jeff Hammerbacher commented on HADOOP-6596:
-------------------------------------------

Hey Owen,

Could you describe to me what you mean by "metadata channel"? The Avro file object container has room in the header for extensible metadata, as does the Avro RPC handshake request.

Thanks,
Jeff

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Jeff Hammerbacher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839188#action_12839188 ] 

Jeff Hammerbacher commented on HADOOP-6596:
-------------------------------------------

Hey Owen,

Avro doesn't just perform serialization, it also defines an RPC protocol. There's currently versioned RPC over HTTP for Java in Avro 1.3. It seems like you're hand-coding a portion of the Avro RPC functionality--why not try out Avro here? My apologies if I don't understand your particular use case well enough to see the drawback.

Thanks,
Jeff

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Kan Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838123#action_12838123 ] 

Kan Zhang commented on HADOOP-6596:
-----------------------------------

Assuming we agree on the approach, +1 on the patch.

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6596) Should add version to the serialization of DelegationToken

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837980#action_12837980 ] 

Owen O'Malley commented on HADOOP-6596:
---------------------------------------

Jeff, my point was that I am trying to put a serialized copy of the delegation token in a http request. Including a full-blown avro schema in a http request would be overkill. The context here is that I'm trying to pass along a delegation token in a http request. Since this will be used for hftp, enabling compatibility between versions is required and therefore I need versioning support. Going to thrift or protobufs seems like overkill for this, so I'm proposing adding a version byte that will let us change the serialization later.

> Should add version to the serialization of DelegationToken
> ----------------------------------------------------------
>
>                 Key: HADOOP-6596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6596
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: c-6596.patch, c-6596.patch
>
>
> Now that we are adding the serialized form of delegation tokens into the http interfaces, we should include some version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.