<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:21:45 JST 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 append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[INSTRM-121] Archiver needs to handle database restarts</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-121</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;The archiver lost its connection to the database, due to a (security?) update made to the database server. I don&apos;t think it ever tried to reconnect, but kept caching new rows after the failure in the attached log segment.&lt;/p&gt;

&lt;p&gt;I don&apos;t think there is a trivial way to restart, but the hint at &lt;a href=&quot;https://github.com/psycopg/psycopg2/issues/419&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/psycopg/psycopg2/issues/419&lt;/a&gt; is probably good enough to implement from.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11641">INSTRM-121</key>
            <summary>Archiver needs to handle database restarts</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="1" iconUrl="https://pfspipe.ipmu.jp/jira/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 username="cloomis">cloomis</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Jun 2017 19:28:16 +0000</created>
                <updated>Tue, 9 Feb 2021 15:35:35 +0000</updated>
                                                                            <component>ics_archiver</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                            <comment id="12274" author="cloomis" created="Fri, 16 Jun 2017 20:50:47 +0000"  >&lt;p&gt;The archiver keeps files of unapplied updates in a /tmp/archiver-$PID/directory. With postgreql, those are suitable for &lt;tt&gt;COPY $table FROM &apos;$file&apos; CSV QUOTE  &apos;&apos;&apos;&apos;&lt;/tt&gt; commands, which are exactly what the archiver uses.&lt;/p&gt;

&lt;p&gt;Since the archiver was complaining about the lost connection, I assumed I would have to do that semi-manually. But when I killed the archiver it applied all the updates itself.&lt;/p&gt;

&lt;p&gt;So I think we just to make the reconnect logic a bit smarter, and/or add an interrupt handler to force reconnections and updates.&lt;/p&gt;</comment>
                            <comment id="18454" author="cloomis" created="Tue, 9 Feb 2021 15:35:35 +0000"  >&lt;p&gt;Bump. Recent database work caused reconnection and other issues.&lt;/p&gt;

&lt;p&gt;The archiver does respond well to SIGINTs: it unwedges itself and and flushes all pending transactions from the transaction log files. So it already knows how to to the right things.&lt;/p&gt;

&lt;p&gt;It just needs to do that automatically.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10603" name="postgres-bump.txt" size="2808" author="cloomis" created="Fri, 9 Jun 2017 19:28:12 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|08c000:</customfieldvalue>

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