db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eranda Sooriyabandara (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-1958) improve XSDG3 error to print container, actual i/o operation, and file name.
Date Thu, 22 Jul 2010 08:44:49 GMT

    [ https://issues.apache.org/jira/browse/DERBY-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891065#action_12891065

Eranda Sooriyabandara commented on DERBY-1958:

Hi Mike,
getIdentity() method only print "Container(0, 161)" for me. Other than that we can over right
the toString() to print all stuff as Bryan mentioned.
Here is a sample I made,
public String toString(){
            String str = this.identity+" Version="+this.containerVersion+
                                " estRows="+this.estimatedRowCount+" inBackup="+this.inBackup+
                                " inRemove="+this.inRemove+" isDirty="+this.isDirty+
                                " pageSize="+this.pageSize+" fileData="+this.fileData+
                                " actionCode="+this.actionCode;

            return str;      

and its results,

ERROR XSDG3: Meta-data for Container(0, 161) Version=0 estRows=149 inBackup=false inRemove=false
isDirty=false pageSize=4096 fileData=org.apache.derby.impl.io.DirRandomAccessFile4@1690ab
actionCode=1 could not be accessed to read /home/eranda/Desktop/DERBY/Derby-1958/trunk/test/MyDB/seg0/ca1.dat

Also I did not find a variable called FileContainer.estimatedPageCount. So I miss it in the
toString method.

> improve XSDG3 error to print container, actual i/o operation, and file name.
> ----------------------------------------------------------------------------
>                 Key: DERBY-1958
>                 URL: https://issues.apache.org/jira/browse/DERBY-1958
>             Project: Derby
>          Issue Type: Improvement
>          Components: Store
>    Affects Versions:,,
>            Reporter: Mike Matrigali
>            Priority: Trivial
>         Attachments: Derby-1958.diff
> The current error does not give enough information to know what container is the problem:
> ERROR XSDG3: Meta-data for Container
> org.apache.derby.impl.store.raw.data.RAFContainer@10632cd could not be
> accessed 

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

View raw message