<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:20:42 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-2447] Remove gen_random_uuid(), it fails in pgpool native replication</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-2447</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;gen_random_uuid() creates a different UUID in each node of a replicated PostgreSQL environment when Pgpool-II is used in native replication mode.&lt;br/&gt;
 This has been reported for mod-configuration and Pgpool-II replication in #sys-ops on Slack. From the Pgpool-II manual:&lt;br/&gt;
 &lt;a href=&quot;https://www.pgpool.net/docs/latest/en/html/restrictions.html&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.pgpool.net/docs/latest/en/html/restrictions.html&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;There is no guarantee that any data provided using a context-dependent mechanism (e.g. random number, transaction ID, OID, SERIAL, sequence), will be replicated correctly on multiple backends.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;RMB documentation mentions it in the &lt;a href=&quot;https://github.com/folio-org/raml-module-builder/blob/master/doc/upgrading.md#version-25&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;upgrading guide for RMB 25&lt;/a&gt; and in connection with &quot;generateId&quot;: &lt;a href=&quot;https://github.com/folio-org/raml-module-builder/#the-post-tenant-api&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/raml-module-builder/#the-post-tenant-api&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tasks:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Create an issue for each module that still uses gen_random_uuid from pgcrypto:
	&lt;ul&gt;
		&lt;li&gt;&lt;a href=&quot;https://github.com/search?q=org%3Afolio-org+gen_random_uuid&amp;amp;type=Code&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/search?q=org%3Afolio-org+gen_random_uuid&amp;amp;type=Code&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;https://github.com/search?q=org%3Afolio-org+pgcrypto&amp;amp;type=Code&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/search?q=org%3Afolio-org+pgcrypto&amp;amp;type=Code&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Remove gen_random_uuid and &quot;CREATE EXTENSION pgcrypto&quot;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;After all modules have removed gen_random_uuid RMB and Spring base should add this function that takes precedence over the function from pgcrypto:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
CREATE OR REPLACE FUNCTION &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;.gen_random_uuid() RETURNS uuid
language plpgsql as $$
BEGIN
  RAISE &lt;span class=&quot;code-quote&quot;&gt;&apos;FOLIO doesn&apos;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&apos;t allow gen_random_uuid() because it doesn&apos;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&apos;t work with a replicated database like Pgpool-II&apos;&lt;/span&gt;
    USING ERRCODE = &lt;span class=&quot;code-quote&quot;&gt;&apos;feature_not_supported&apos;&lt;/span&gt;;
END;
$$;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Note:&lt;/p&gt;

&lt;p&gt;Pgpool-II streaming replication mode is NOT affected by this issue, only Pgpool-II native replication mode.&lt;/p&gt;</description>
                <environment></environment>
        <key id="79638">FOLIO-2447</key>
            <summary>Remove gen_random_uuid(), it fails in pgpool native replication</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="10003" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p4.svg">P4</priority>
                        <status id="1" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                                        <assignee accountid="5ee89462f7aa140abd82d11d">Julian Ladisch</assignee>
                                                                <reporter accountid="5ee89462f7aa140abd82d11d">Julian Ladisch</reporter>
                                    <labels>
                            <label>keep-bug</label>
                            <label>platform-backlog</label>
                    </labels>
                <created>Wed, 5 Feb 2020 17:35:34 +0000</created>
                <updated>Mon, 16 Aug 2021 14:28:05 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="189443" author="5f8314dfbdef80006f6f572d" created="Fri, 13 Aug 2021 05:27:58 +0000"  >&lt;p&gt;Can&apos;t we close this &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5ee89462f7aa140abd82d11d&quot; class=&quot;user-hover&quot; rel=&quot;5ee89462f7aa140abd82d11d&quot; data-account-id=&quot;5ee89462f7aa140abd82d11d&quot; accountid=&quot;5ee89462f7aa140abd82d11d&quot; rel=&quot;noreferrer&quot;&gt;Julian Ladisch&lt;/a&gt;?&lt;/p&gt;</comment>
                                                            <comment id="189445" author="5ee89462f7aa140abd82d11d" created="Fri, 13 Aug 2021 06:40:22 +0000"  >&lt;p&gt;No, this hasn&apos;t been fixed, see &lt;a href=&quot;https://github.com/search?q=org%3Afolio-org+gen_random_uuid&amp;amp;type=Code&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/search?q=org%3Afolio-org+gen_random_uuid&amp;amp;type=Code&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;This issue is the umbrella for all these subtasks.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="56986">RMB-347</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="56134">MODINVSTOR-483</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="34303">MODPERMS-75</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10008">
                    <name>Defines</name>
                                                                <inwardlinks description="is defined by ">
                                        <issuelink>
            <issuekey id="34440">MODEXPS-21</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="79762">FOLIO-2978</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|i01zn1:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1423">CP: Non-roadmap backlog</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 13 Aug 2021 05:27:58 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>