[jira] [Commented] (ASTERIXDB-1725) Root page location calculation does not account for multipages

2016-11-08 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15648824#comment-15648824
 ] 

ASF subversion and git services commented on ASTERIXDB-1725:


Commit 38845d54f1cd0d8b867bb3adfe0c8120cb94e167 in asterixdb's branch 
refs/heads/master from [~imaxon]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=38845d5 ]

Tests for ASTERIXDB-1725

Just inserts a really big record, stops, and starts again.
This should always work, but for the bug, it'd cause a nullpointer
upon querying the dataset.

Change-Id: I8b241acebbdcd658e734a43d03259a1ea24d8b57
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1344
Sonar-Qube: Jenkins 
Tested-by: Jenkins 
Integration-Tests: Jenkins 
Reviewed-by: Michael Blow 


> Root page location calculation does not account for multipages
> --
>
> Key: ASTERIXDB-1725
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1725
> Project: Apache AsterixDB
>  Issue Type: Bug
>Reporter: Ian Maxon
>Assignee: Ian Maxon
>
> The root page calculation is based on a fixed number of pages. This is 
> usually fine, unless the root page happens to be a leaf page. In this case it 
> may consist of any number of pages due to large object storage. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (ASTERIXDB-1725) Root page location calculation does not account for multipages

2016-11-04 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15635534#comment-15635534
 ] 

ASF subversion and git services commented on ASTERIXDB-1725:


Commit 15e49e0db5a40d68e6e6dbf60138d6ec61fd15b0 in asterixdb's branch 
refs/heads/master from [~imaxon]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=15e49e0 ]

Fix for ASTERIXDB-1725

This is tricky, the best method I could think to fix this involved simply
putting the root page number in the metadata page rather than trying to
calculate it somehow going backwards from the end of the file.

I also fixed a bug discovered by Mike B where getLSNOffset was not
taking into consideration page header sizes.

Change-Id: I9f21e96ab045d331e4fc1c77b5c73b975e6260fa
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1331
Sonar-Qube: Jenkins 
Tested-by: Jenkins 
Integration-Tests: Jenkins 
Reviewed-by: Michael Blow 


> Root page location calculation does not account for multipages
> --
>
> Key: ASTERIXDB-1725
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1725
> Project: Apache AsterixDB
>  Issue Type: Bug
>Reporter: Ian Maxon
>Assignee: Ian Maxon
>
> The root page calculation is based on a fixed number of pages. This is 
> usually fine, unless the root page happens to be a leaf page. In this case it 
> may consist of any number of pages due to large object storage. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)