<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:16:16 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-1836] Unexpected totalRecords number when using &quot;limit&quot; parameter</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-1836</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;There may be a bug or unexpected result when retrieving loans using a range of values for the &quot;limit&quot; parameter.&lt;/p&gt;

&lt;p&gt;Test code:&lt;br/&gt;
&lt;a href=&quot;https://github.com/nassibnassar/folio-loan-test&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/nassibnassar/folio-loan-test&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Data:&lt;br/&gt;
The tests were run using the performance test data set.&lt;/p&gt;

&lt;p&gt;Test output:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;folio-loan-test$ go run testloans.go 10000 | tail
      &quot;createdDate&quot; : &quot;2018-12-20T05:05:59.392+0000&quot;,
      &quot;createdByUserId&quot; : &quot;0f8c723d-1791-4b98-9a48-fc4a54aebc91&quot;,
      &quot;updatedDate&quot; : &quot;2018-12-20T05:05:59.392+0000&quot;,
      &quot;updatedByUserId&quot; : &quot;0f8c723d-1791-4b98-9a48-fc4a54aebc91&quot;
    }
  } ],
  &quot;totalRecords&quot; : 71070
}
URL: http://localhost:9130/loan-storage/loans?limit=10000&amp;amp;offset=0
Status code: 200 OK
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;folio-loan-test$ go run testloans.go 50000 | tail

URL: http://localhost:9130/loan-storage/loans?limit=50000&amp;amp;offset=0
Status code: 200 OK
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;folio-loan-test$ go run testloans.go 100000 | tail
GC overhead limit exceeded
URL: http://localhost:9130/loan-storage/loans?limit=100000&amp;amp;offset=0
Status code: 500 Internal Server Error
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The middle test may be of interest because it returned status code 200 but appeared to return no records.&lt;/p&gt;</description>
                <environment></environment>
        <key id="81018">FOLIO-1836</key>
            <summary>Unexpected totalRecords number when using &quot;limit&quot; parameter</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Won&apos;t Do</resolution>
                                                        <assignee accountid="-1">Unassigned</assignee>
                                                                <reporter accountid="70121:8d96963c-ce4c-478d-9023-2de35bc14b67">Nassib Nassar</reporter>
                                    <labels>
                    </labels>
                <created>Fri, 1 Mar 2019 22:39:15 +0000</created>
                <updated>Fri, 26 Jun 2020 12:09:33 +0000</updated>
                            <resolved>Fri, 26 Jun 2020 12:08:27 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="192236" author="5ee89462f7aa140abd82d11d" created="Fri, 26 Jun 2020 12:08:27 +0000"  >&lt;p&gt;The bug report is about a dataset where less than 50000 records exist and &lt;tt&gt;&quot;totalRecords&quot; : 71070&lt;/tt&gt; is returned.&lt;/p&gt;

&lt;p&gt;This is as documented because totalRecords is an estimation. For details see &lt;a href=&quot;https://github.com/folio-org/raml-module-builder#estimated-totalrecords&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/raml-module-builder#estimated-totalrecords&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See also related issues:&lt;br/&gt;

    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;UXPROD-2369&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/UXPROD-2369&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Wait for POC of Elastic Search - Implement exact hit count (when using PostgreSql) &quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            UXPROD-2369
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
&lt;br/&gt;

    &lt;span class=&quot;jira-issue-macro&quot; data-jira-key=&quot;RMB-578&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/RMB-578&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Inform whether totalRecords is exact or an estimate&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            RMB-578
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-complete jira-macro-single-issue-export-pdf&quot;&gt;Blocked&lt;/span&gt;
            &lt;/span&gt;
&lt;br/&gt;

    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;RMB-579&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/RMB-579&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;In a GET request, control whether the server may estimate the hit count&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            RMB-579
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
&lt;br/&gt;

    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;UXPROD-2623&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/UXPROD-2623&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Wait for POC of Elastic Search - Round estimated search result hit count (totalRecords)&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            UXPROD-2623
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10144"><![CDATA[Core: Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzzh9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 26 Jun 2020 12:08:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>