mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2016-04-19
This commit is contained in:
parent
7b749790d9
commit
835d25fbc5
@ -226,3 +226,27 @@ javax.ws.rs.WebApplicationException
|
|||||||
|
|
||||||
- Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)
|
- Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)
|
||||||
- After restarting Tomcat a few more of these errors were logged but the application was up
|
- After restarting Tomcat a few more of these errors were logged but the application was up
|
||||||
|
|
||||||
|
## 2016-04-19
|
||||||
|
|
||||||
|
- Get handles for items that are using a given metadata field, ie `dc.Species.animal` (105):
|
||||||
|
|
||||||
|
```
|
||||||
|
# select handle from item, handle where handle.resource_id = item.item_id AND item.item_id in (select resource_id from metadatavalue where resource_type_id=2 and metadata_field_id=105);
|
||||||
|
handle
|
||||||
|
-------------
|
||||||
|
10568/10298
|
||||||
|
10568/16413
|
||||||
|
10568/16774
|
||||||
|
10568/34487
|
||||||
|
```
|
||||||
|
|
||||||
|
- Delete metadata values for `dc.GRP` and `dc.icsubject.icrafsubject`:
|
||||||
|
|
||||||
|
```
|
||||||
|
# delete from metadatavalue where resource_type_id=2 and metadata_field_id=96;
|
||||||
|
# delete from metadatavalue where resource_type_id=2 and metadata_field_id=83;
|
||||||
|
```
|
||||||
|
|
||||||
|
- They are old ICRAF fields and we haven't used them since 2011 or so
|
||||||
|
- Also delete them from the metadata registry
|
||||||
|
@ -334,6 +334,34 @@ javax.ws.rs.WebApplicationException
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)</li>
|
<li>Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)</li>
|
||||||
<li>After restarting Tomcat a few more of these errors were logged but the application was up</li>
|
<li>After restarting Tomcat a few more of these errors were logged but the application was up</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="2016-04-19:c88be15f5b2f07c85f7742556a955e47">2016-04-19</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Get handles for items that are using a given metadata field, ie <code>dc.Species.animal</code> (105):</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code># select handle from item, handle where handle.resource_id = item.item_id AND item.item_id in (select resource_id from metadatavalue where resource_type_id=2 and metadata_field_id=105);
|
||||||
|
handle
|
||||||
|
-------------
|
||||||
|
10568/10298
|
||||||
|
10568/16413
|
||||||
|
10568/16774
|
||||||
|
10568/34487
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Delete metadata values for <code>dc.GRP</code> and <code>dc.icsubject.icrafsubject</code>:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code># delete from metadatavalue where resource_type_id=2 and metadata_field_id=96;
|
||||||
|
# delete from metadatavalue where resource_type_id=2 and metadata_field_id=83;
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>They are old ICRAF fields and we haven’t used them since 2011 or so</li>
|
||||||
|
<li>Also delete them from the metadata registry</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -273,6 +273,34 @@ javax.ws.rs.WebApplicationException
|
|||||||
<li>Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)</li>
|
<li>Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)</li>
|
||||||
<li>After restarting Tomcat a few more of these errors were logged but the application was up</li>
|
<li>After restarting Tomcat a few more of these errors were logged but the application was up</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="2016-04-19:c88be15f5b2f07c85f7742556a955e47">2016-04-19</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Get handles for items that are using a given metadata field, ie <code>dc.Species.animal</code> (105):</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code># select handle from item, handle where handle.resource_id = item.item_id AND item.item_id in (select resource_id from metadatavalue where resource_type_id=2 and metadata_field_id=105);
|
||||||
|
handle
|
||||||
|
-------------
|
||||||
|
10568/10298
|
||||||
|
10568/16413
|
||||||
|
10568/16774
|
||||||
|
10568/34487
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Delete metadata values for <code>dc.GRP</code> and <code>dc.icsubject.icrafsubject</code>:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code># delete from metadatavalue where resource_type_id=2 and metadata_field_id=96;
|
||||||
|
# delete from metadatavalue where resource_type_id=2 and metadata_field_id=83;
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>They are old ICRAF fields and we haven&rsquo;t used them since 2011 or so</li>
|
||||||
|
<li>Also delete them from the metadata registry</li>
|
||||||
|
</ul>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
@ -273,6 +273,34 @@ javax.ws.rs.WebApplicationException
|
|||||||
<li>Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)</li>
|
<li>Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)</li>
|
||||||
<li>After restarting Tomcat a few more of these errors were logged but the application was up</li>
|
<li>After restarting Tomcat a few more of these errors were logged but the application was up</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="2016-04-19:c88be15f5b2f07c85f7742556a955e47">2016-04-19</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Get handles for items that are using a given metadata field, ie <code>dc.Species.animal</code> (105):</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code># select handle from item, handle where handle.resource_id = item.item_id AND item.item_id in (select resource_id from metadatavalue where resource_type_id=2 and metadata_field_id=105);
|
||||||
|
handle
|
||||||
|
-------------
|
||||||
|
10568/10298
|
||||||
|
10568/16413
|
||||||
|
10568/16774
|
||||||
|
10568/34487
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Delete metadata values for <code>dc.GRP</code> and <code>dc.icsubject.icrafsubject</code>:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code># delete from metadatavalue where resource_type_id=2 and metadata_field_id=96;
|
||||||
|
# delete from metadatavalue where resource_type_id=2 and metadata_field_id=83;
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>They are old ICRAF fields and we haven&rsquo;t used them since 2011 or so</li>
|
||||||
|
<li>Also delete them from the metadata registry</li>
|
||||||
|
</ul>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user