You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2011/07/18 10:18:59 UTC

[jira] [Created] (JENA-81) Partial failure to see prefixes in persistent storage

Partial failure to see prefixes in persistent storage
-----------------------------------------------------

                 Key: JENA-81
                 URL: https://issues.apache.org/jira/browse/JENA-81
             Project: Jena
          Issue Type: Bug
          Components: Jena, TDB
            Reporter: Andy Seaborne


PrefixMappingImpl only looks in its local data structures to service findMapping. findMapping is private.

But calls to get() are used to cache prefixes from persistent store so a findmMappign call before touching a prefix wil casuse findMapping not to find it.

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

        

[jira] [Resolved] (JENA-81) Partial failure to see prefixes in persistent storage

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

Andy Seaborne resolved JENA-81.
-------------------------------

    Resolution: Fixed
      Assignee: Andy Seaborne

The workaround seems satisfactory - it merely does the caching easily.  But the caching is likely to happen anyway so any risk of very, very large prefix maps using too much memory is not increased significantly.

> Partial failure to see prefixes in persistent storage
> -----------------------------------------------------
>
>                 Key: JENA-81
>                 URL: https://issues.apache.org/jira/browse/JENA-81
>             Project: Jena
>          Issue Type: Bug
>          Components: Jena, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>         Attachments: Report_Prefixes.java
>
>
> PrefixMappingImpl only looks in its local data structures to service findMapping. findMapping is private.
> But calls to get() are used to cache prefixes from persistent store so a findmMappign call before touching a prefix wil casuse findMapping not to find it.

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

        

[jira] [Commented] (JENA-81) Partial failure to see prefixes in persistent storage

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066850#comment-13066850 ] 

Andy Seaborne commented on JENA-81:
-----------------------------------

Possible fixes:
1/ Write a PrefixMapping implementation that is persistent storage friendly.

2/ When creating a graph object in TDB, flush all prefixes in the PrefixMappingImpl cache.  

(2) is a TDB-specific and has been applied to DatasetPrefixesTDB.  However, it is potential unnecessary work.


> Partial failure to see prefixes in persistent storage
> -----------------------------------------------------
>
>                 Key: JENA-81
>                 URL: https://issues.apache.org/jira/browse/JENA-81
>             Project: Jena
>          Issue Type: Bug
>          Components: Jena, TDB
>            Reporter: Andy Seaborne
>         Attachments: Report_Prefixes.java
>
>
> PrefixMappingImpl only looks in its local data structures to service findMapping. findMapping is private.
> But calls to get() are used to cache prefixes from persistent store so a findmMappign call before touching a prefix wil casuse findMapping not to find it.

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

        

[jira] [Closed] (JENA-81) Partial failure to see prefixes in persistent storage

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

Andy Seaborne closed JENA-81.
-----------------------------


> Partial failure to see prefixes in persistent storage
> -----------------------------------------------------
>
>                 Key: JENA-81
>                 URL: https://issues.apache.org/jira/browse/JENA-81
>             Project: Jena
>          Issue Type: Bug
>          Components: Jena, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>         Attachments: Report_Prefixes.java
>
>
> PrefixMappingImpl only looks in its local data structures to service findMapping. findMapping is private.
> But calls to get() are used to cache prefixes from persistent store so a findmMappign call before touching a prefix wil casuse findMapping not to find it.

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

        

[jira] [Updated] (JENA-81) Partial failure to see prefixes in persistent storage

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

Andy Seaborne updated JENA-81:
------------------------------

    Attachment: Report_Prefixes.java

Test case - active the m.getNsPrefixMap() call to see the difference (TDB 0.8.10).

> Partial failure to see prefixes in persistent storage
> -----------------------------------------------------
>
>                 Key: JENA-81
>                 URL: https://issues.apache.org/jira/browse/JENA-81
>             Project: Jena
>          Issue Type: Bug
>          Components: Jena, TDB
>            Reporter: Andy Seaborne
>         Attachments: Report_Prefixes.java
>
>
> PrefixMappingImpl only looks in its local data structures to service findMapping. findMapping is private.
> But calls to get() are used to cache prefixes from persistent store so a findmMappign call before touching a prefix wil casuse findMapping not to find it.

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

        

[jira] [Updated] (JENA-81) Partial failure to see prefixes in persistent storage

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

Andy Seaborne updated JENA-81:
------------------------------

    Priority: Minor  (was: Major)

Priority "minor" because a workaround has been applied.

> Partial failure to see prefixes in persistent storage
> -----------------------------------------------------
>
>                 Key: JENA-81
>                 URL: https://issues.apache.org/jira/browse/JENA-81
>             Project: Jena
>          Issue Type: Bug
>          Components: Jena, TDB
>            Reporter: Andy Seaborne
>            Priority: Minor
>         Attachments: Report_Prefixes.java
>
>
> PrefixMappingImpl only looks in its local data structures to service findMapping. findMapping is private.
> But calls to get() are used to cache prefixes from persistent store so a findmMappign call before touching a prefix wil casuse findMapping not to find it.

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