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 "Dag H. Wanvik (JIRA)" <ji...@apache.org> on 2012/07/05 19:56:34 UTC

[jira] [Created] (DERBY-5849) Text for SQL state XSDG0: remove redundant "page"

Dag H. Wanvik created DERBY-5849:
------------------------------------

             Summary: Text for SQL state XSDG0: remove redundant "page"
                 Key: DERBY-5849
                 URL: https://issues.apache.org/jira/browse/DERBY-5849
             Project: Derby
          Issue Type: Improvement
          Components: Services, Store
            Reporter: Dag H. Wanvik


In the message text (English locale), we see this error being printed

Page Page(1,Container(0, 14929)) could not be read from disk. 

The text in messages.xml is:

<text>Page {0} could not be read from disk.</text>

The problem is that the argument used is a PageKey, which has a toString method thats prints:

Page(" + pageNumber + "," + container.toString() + ")";

so, we get two "page" string and it looks silly. 

--
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-5849) Text for SQL state XSDG0: remove redundant "page"

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

Dag H. Wanvik updated DERBY-5849:
---------------------------------

    Priority: Trivial  (was: Major)
    
> Text for SQL state XSDG0: remove redundant "page"
> -------------------------------------------------
>
>                 Key: DERBY-5849
>                 URL: https://issues.apache.org/jira/browse/DERBY-5849
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services, Store
>            Reporter: Dag H. Wanvik
>            Priority: Trivial
>
> In the message text (English locale), we see this error being printed for error state XSDG0:
>    Page Page(1,Container(0, 14929)) could not be read from disk. 
> The text in messages.xml is:
>    <text>Page {0} could not be read from disk.</text>
> The problem is that the argument used is a PageKey, which has a toString method thats prints:
>    "Page(" + pageNumber + "," + container.toString() + ")";
> so, we get two "page" string and it looks silly. 

--
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-5849) Text for SQL state XSDG0: remove redundant "page"

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

Rick Hillegas commented on DERBY-5849:
--------------------------------------

How about this: "Could not read page 1 from segment 0 of container 14929." Thanks.

                
> Text for SQL state XSDG0: remove redundant "page"
> -------------------------------------------------
>
>                 Key: DERBY-5849
>                 URL: https://issues.apache.org/jira/browse/DERBY-5849
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services, Store
>            Reporter: Dag H. Wanvik
>            Priority: Trivial
>
> In the message text (English locale), we see this error being printed for error state XSDG0:
>    Page Page(1,Container(0, 14929)) could not be read from disk. 
> The text in messages.xml is:
>    <text>Page {0} could not be read from disk.</text>
> The problem is that the argument used is a PageKey, which has a toString method thats prints:
>    "Page(" + pageNumber + "," + container.toString() + ")";
> so, we get two "page" string and it looks silly. 

--
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-5849) Text for SQL state XSDG0: remove redundant "page"

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

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

This issue is also present for XSDG1 ("could not be written to disk...") and possibly other messages with page arguments
                
> Text for SQL state XSDG0: remove redundant "page"
> -------------------------------------------------
>
>                 Key: DERBY-5849
>                 URL: https://issues.apache.org/jira/browse/DERBY-5849
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services, Store
>            Reporter: Dag H. Wanvik
>
> In the message text (English locale), we see this error being printed
> Page Page(1,Container(0, 14929)) could not be read from disk. 
> The text in messages.xml is:
> <text>Page {0} could not be read from disk.</text>
> The problem is that the argument used is a PageKey, which has a toString method thats prints:
> Page(" + pageNumber + "," + container.toString() + ")";
> so, we get two "page" string and it looks silly. 

--
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-5849) Text for SQL state XSDG0: remove redundant "page"

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

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

Would something like this look better:

The page with page key "Page(1,Container(0, 14929))" could not be read from disk.

We would then need to localize the text "The page with page key" for our supported languages. Page key is an implementation entity (class PageKey). Would it be beneficial to explain what the numbers mean in the error message? E.g. 

The page identified by page number 1 in the container identified by container id 14929, segment 0, could not be read from disk."

Opinions?

                
> Text for SQL state XSDG0: remove redundant "page"
> -------------------------------------------------
>
>                 Key: DERBY-5849
>                 URL: https://issues.apache.org/jira/browse/DERBY-5849
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services, Store
>            Reporter: Dag H. Wanvik
>            Priority: Trivial
>
> In the message text (English locale), we see this error being printed for error state XSDG0:
>    Page Page(1,Container(0, 14929)) could not be read from disk. 
> The text in messages.xml is:
>    <text>Page {0} could not be read from disk.</text>
> The problem is that the argument used is a PageKey, which has a toString method thats prints:
>    "Page(" + pageNumber + "," + container.toString() + ")";
> so, we get two "page" string and it looks silly. 

--
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-5849) Text for SQL state XSDG0: remove redundant "page"

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

Dag H. Wanvik updated DERBY-5849:
---------------------------------

    Description: 
In the message text (English locale), we see this error being printed for error state XSDG0:

   Page Page(1,Container(0, 14929)) could not be read from disk. 

The text in messages.xml is:

   <text>Page {0} could not be read from disk.</text>

The problem is that the argument used is a PageKey, which has a toString method thats prints:

   "Page(" + pageNumber + "," + container.toString() + ")";

so, we get two "page" string and it looks silly. 

  was:
In the message text (English locale), we see this error being printed for error state XSDG0:

Page Page(1,Container(0, 14929)) could not be read from disk. 

The text in messages.xml is:

<text>Page {0} could not be read from disk.</text>

The problem is that the argument used is a PageKey, which has a toString method thats prints:

Page(" + pageNumber + "," + container.toString() + ")";

so, we get two "page" string and it looks silly. 

    
> Text for SQL state XSDG0: remove redundant "page"
> -------------------------------------------------
>
>                 Key: DERBY-5849
>                 URL: https://issues.apache.org/jira/browse/DERBY-5849
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services, Store
>            Reporter: Dag H. Wanvik
>
> In the message text (English locale), we see this error being printed for error state XSDG0:
>    Page Page(1,Container(0, 14929)) could not be read from disk. 
> The text in messages.xml is:
>    <text>Page {0} could not be read from disk.</text>
> The problem is that the argument used is a PageKey, which has a toString method thats prints:
>    "Page(" + pageNumber + "," + container.toString() + ")";
> so, we get two "page" string and it looks silly. 

--
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-5849) Text for SQL state XSDG0: remove redundant "page"

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

Dag H. Wanvik updated DERBY-5849:
---------------------------------

    Issue & fix info: Newcomer
    
> Text for SQL state XSDG0: remove redundant "page"
> -------------------------------------------------
>
>                 Key: DERBY-5849
>                 URL: https://issues.apache.org/jira/browse/DERBY-5849
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services, Store
>            Reporter: Dag H. Wanvik
>            Priority: Trivial
>
> In the message text (English locale), we see this error being printed for error state XSDG0:
>    Page Page(1,Container(0, 14929)) could not be read from disk. 
> The text in messages.xml is:
>    <text>Page {0} could not be read from disk.</text>
> The problem is that the argument used is a PageKey, which has a toString method thats prints:
>    "Page(" + pageNumber + "," + container.toString() + ")";
> so, we get two "page" string and it looks silly. 

--
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-5849) Text for SQL state XSDG0: remove redundant "page"

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

Dag H. Wanvik updated DERBY-5849:
---------------------------------

    Description: 
In the message text (English locale), we see this error being printed for error state XSDG0:

Page Page(1,Container(0, 14929)) could not be read from disk. 

The text in messages.xml is:

<text>Page {0} could not be read from disk.</text>

The problem is that the argument used is a PageKey, which has a toString method thats prints:

Page(" + pageNumber + "," + container.toString() + ")";

so, we get two "page" string and it looks silly. 

  was:
In the message text (English locale), we see this error being printed

Page Page(1,Container(0, 14929)) could not be read from disk. 

The text in messages.xml is:

<text>Page {0} could not be read from disk.</text>

The problem is that the argument used is a PageKey, which has a toString method thats prints:

Page(" + pageNumber + "," + container.toString() + ")";

so, we get two "page" string and it looks silly. 

    
> Text for SQL state XSDG0: remove redundant "page"
> -------------------------------------------------
>
>                 Key: DERBY-5849
>                 URL: https://issues.apache.org/jira/browse/DERBY-5849
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services, Store
>            Reporter: Dag H. Wanvik
>
> In the message text (English locale), we see this error being printed for error state XSDG0:
> Page Page(1,Container(0, 14929)) could not be read from disk. 
> The text in messages.xml is:
> <text>Page {0} could not be read from disk.</text>
> The problem is that the argument used is a PageKey, which has a toString method thats prints:
> Page(" + pageNumber + "," + container.toString() + ")";
> so, we get two "page" string and it looks silly. 

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