<div dir="ltr">Hi Vivek,<div><br></div><div>This certainly seems like a bug and is worth to report, and we should look into it in 1.1.1.</div><div><br></div><div>I know Sebastien did some work around categories optimizations that is likely related.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 21, 2016 at 8:11 AM, Vivek Pandey <span dir="ltr">&lt;<a href="mailto:vivek.pandey@pinelabs.com" target="_blank">vivek.pandey@pinelabs.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="color:#1f497d">We have been able to narrow down the issue to following scenario.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Suppose we insert an installation with following payload<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">{&quot;deviceToken&quot;:&quot;q1wS&quot;, &quot;alias&quot;:&quot;1@xyz&quot;, &quot;categories&quot;:[&quot;offer&quot;]}<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Later, when the installation is updated<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">{&quot;deviceToken&quot;:&quot;q1wS&quot;, &quot;alias&quot;:&quot;2@xyz&quot;, &quot;categories&quot;:[&quot;offer&quot;]}<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">We are seeing the exception mentioned below. This happens in 1.0.3 and 1.1.0 Final as well.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:aerogear-dev-bounces@lists.jboss.org" target="_blank">aerogear-dev-bounces@lists.jboss.org</a> [mailto:<a href="mailto:aerogear-dev-bounces@lists.jboss.org" target="_blank">aerogear-dev-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Vivek Pandey<br><b>Sent:</b> Wednesday, January 20, 2016 5:07 PM<br><b>To:</b> &#39;AeroGear Developer Mailing List&#39;<br><b>Subject:</b> [aerogear-dev] UPS : Errors in Category Insertion<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hello UPS Team,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am noticing a strange problem in UPS 1.0.3. The primary key of the table “category” is out of sync with the sequence “category_seq”.<u></u><u></u></p><p class="MsoNormal">The id column contains negative values too. We are seeing error messages like <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:8.0pt">        ... 76 more<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.0pt">Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint &quot;category_pkey&quot;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.0pt">  Detail: Key (id)=(192524) already exists.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.0pt">        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2157)<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have attached the complete log for reference.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">We are using Postgres 9.3 and wildfly 8.1.0.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is it a known issue which is fixed in 1.1.0 Final? <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am working to find the root cause and will communicate as soon as I have one.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Vivek<u></u><u></u></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><u></u> <u></u></span></p><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><hr size="2" width="100%" align="center"></span></div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">This message may contain privileged and confidential information and is solely for the use of intended recipient. The views expressed in this email are those of the sender and not of Pine Labs. The recipient should check this email and attachments for the presence of viruses / malwares etc. Pine Labs accepts no liability for any damage caused by any virus transmitted by this email. Pine Labs may monitor and record all emails.<u></u><u></u></span></p><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><hr size="2" width="100%" align="center"></span></div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><u></u> <u></u></span></p><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><hr size="2" width="100%" align="center"></span></div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">This message may contain privileged and confidential information and is solely for the use of intended recipient. The views expressed in this email are those of the sender and not of Pine Labs. The recipient should check this email and attachments for the presence of viruses / malwares etc. Pine Labs accepts no liability for any damage caused by any virus transmitted by this email. Pine Labs may monitor and record all emails.<u></u><u></u></span></p><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><hr size="2" width="100%" align="center"></span></div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><u></u> <u></u></span></p></div></div></div><div><div class="h5">
<br><hr>This message may contain privileged and confidential information and is solely for the use of intended recipient. The views expressed in this email are those of the sender and not of Pine Labs. The recipient should check this email and attachments for the presence of viruses / malwares etc. Pine Labs accepts no liability for any damage caused by any virus transmitted by this email. Pine Labs may monitor and record all emails.<hr>

<br></div></div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Lukáš Fryč</div><div>Software Engineer</div><div><span style="font-size:12.8000001907349px">Red Hat Mobile | AeroGear.org, </span><span style="font-size:12.8000001907349px">FeedHenry.org</span></div></div></div></div></div></div></div></div>
</div>