You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Rick Hillegas (JIRA)" <ji...@apache.org> on 2011/04/27 15:34:03 UTC

[jira] [Created] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Fix the description of Derby's stored page format, found on the web site.
-------------------------------------------------------------------------

                 Key: DERBY-5207
                 URL: https://issues.apache.org/jira/browse/DERBY-5207
             Project: Derby
          Issue Type: Improvement
          Components: Web Site
    Affects Versions: 10.9.0.0
            Reporter: Rick Hillegas


I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):

1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.

2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.

3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.

4) There is no RECORD_INITIAL bit in the record header status field.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Posted by "Kathey Marsden (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kathey Marsden reassigned DERBY-5207:
-------------------------------------

    Assignee: Mohamed Nufail

Assigning to Mohamed
                
> Fix the description of Derby's stored page format, found on the web site.
> -------------------------------------------------------------------------
>
>                 Key: DERBY-5207
>                 URL: https://issues.apache.org/jira/browse/DERBY-5207
>             Project: Derby
>          Issue Type: Improvement
>          Components: Web Site
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>            Assignee: Mohamed Nufail
>         Attachments: DERBY-5207.patch
>
>
> I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):
> 1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.
> 2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.
> 3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.
> 4) There is no RECORD_INITIAL bit in the record header status field.

--
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] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Posted by "Dag H. Wanvik (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245676#comment-13245676 ] 

Dag H. Wanvik commented on DERBY-5207:
--------------------------------------

Looks like the patch carries the corrections specified by Rick. +1

                
> Fix the description of Derby's stored page format, found on the web site.
> -------------------------------------------------------------------------
>
>                 Key: DERBY-5207
>                 URL: https://issues.apache.org/jira/browse/DERBY-5207
>             Project: Derby
>          Issue Type: Improvement
>          Components: Web Site
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>         Attachments: DERBY-5207.patch
>
>
> I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):
> 1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.
> 2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.
> 3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.
> 4) There is no RECORD_INITIAL bit in the record header status field.

--
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] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Posted by "Rick Hillegas (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas resolved DERBY-5207.
----------------------------------

    Resolution: Fixed

Changes have appeared on the website. Resolving this issue. Thanks again, Mohamed.
                
> Fix the description of Derby's stored page format, found on the web site.
> -------------------------------------------------------------------------
>
>                 Key: DERBY-5207
>                 URL: https://issues.apache.org/jira/browse/DERBY-5207
>             Project: Derby
>          Issue Type: Improvement
>          Components: Web Site
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>            Assignee: Mohamed Nufail
>         Attachments: DERBY-5207.patch
>
>
> I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):
> 1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.
> 2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.
> 3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.
> 4) There is no RECORD_INITIAL bit in the record header status field.

--
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] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Posted by "Rick Hillegas (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253492#comment-13253492 ] 

Rick Hillegas commented on DERBY-5207:
--------------------------------------

Thanks for the patch, Mohamed. Looks good to me. I have committed the patch at subversion revision 1325815 and updated the website. Once the changes appear (in an hour maybe?), I should be able to close this issue. Thanks again.
                
> Fix the description of Derby's stored page format, found on the web site.
> -------------------------------------------------------------------------
>
>                 Key: DERBY-5207
>                 URL: https://issues.apache.org/jira/browse/DERBY-5207
>             Project: Derby
>          Issue Type: Improvement
>          Components: Web Site
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>            Assignee: Mohamed Nufail
>         Attachments: DERBY-5207.patch
>
>
> I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):
> 1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.
> 2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.
> 3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.
> 4) There is no RECORD_INITIAL bit in the record header status field.

--
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] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Posted by "Mohamed Nufail (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mohamed Nufail updated DERBY-5207:
----------------------------------

    Attachment: DERBY-5207.patch

Attached a patch containing the suggested modifications.
                
> Fix the description of Derby's stored page format, found on the web site.
> -------------------------------------------------------------------------
>
>                 Key: DERBY-5207
>                 URL: https://issues.apache.org/jira/browse/DERBY-5207
>             Project: Derby
>          Issue Type: Improvement
>          Components: Web Site
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>         Attachments: DERBY-5207.patch
>
>
> I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):
> 1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.
> 2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.
> 3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.
> 4) There is no RECORD_INITIAL bit in the record header status field.

--
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] [Closed] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Posted by "Rick Hillegas (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas closed DERBY-5207.
--------------------------------

    
> Fix the description of Derby's stored page format, found on the web site.
> -------------------------------------------------------------------------
>
>                 Key: DERBY-5207
>                 URL: https://issues.apache.org/jira/browse/DERBY-5207
>             Project: Derby
>          Issue Type: Improvement
>          Components: Web Site
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>            Assignee: Mohamed Nufail
>         Attachments: DERBY-5207.patch
>
>
> I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):
> 1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.
> 2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.
> 3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.
> 4) There is no RECORD_INITIAL bit in the record header status field.

--
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] (DERBY-5207) Fix the description of Derby's stored page format, found on the web site.

Posted by "Kathey Marsden (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kathey Marsden updated DERBY-5207:
----------------------------------

    Issue & fix info: Newcomer,Patch Available  (was: Newcomer)
    
> Fix the description of Derby's stored page format, found on the web site.
> -------------------------------------------------------------------------
>
>                 Key: DERBY-5207
>                 URL: https://issues.apache.org/jira/browse/DERBY-5207
>             Project: Derby
>          Issue Type: Improvement
>          Components: Web Site
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>            Assignee: Mohamed Nufail
>         Attachments: DERBY-5207.patch
>
>
> I have found some discrepancies between Derby code and the description of the stored page format found on our web site (http://db.apache.org/derby/papers/pageformats.html):
> 1) The website correctly says that the page header is 56 bytes long. However, you get 58 bytes if you add up the values in the left column of http://db.apache.org/derby/papers/pageformats.html#storedpage. The extra 2 bytes come from the inclusion of an unsigned short representing "% of the page to keep free for updates". That field does not appear in StoredPage.readPageHeader(). The field should be removed from the web site page.
> 2) That table has an additional problem: the "spare for future use (encryption uses to write random bytes here)" field is correctly listed as being 4 bytes long (in the left column) but the middle column says that it is a long. That middle column should say that the value is an integer.
> 3) Although the first 4 bytes of the AllocPage header are devoted to a Formatable ID, the actual Formatable ID only occupies the leading 2 bytes of the page. The next 2 bytes are unused. The first line of the "Format of Alloc Page" table should note this fact.
> 4) There is no RECORD_INITIAL bit in the record header status field.

--
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