<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible that nuxeo generates duplicate uid with his UIDSequencer? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319483#M6484</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 13:20:50 GMT</pubDate>
    <dc:creator>Alice_J</dc:creator>
    <dc:date>2020-10-02T13:20:50Z</dc:date>
    <item>
      <title>Is it possible that nuxeo generates duplicate uid with his UIDSequencer?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319480#M6481</link>
      <description>&lt;P&gt;We use the extension poins "generators" to generate references stored in uid:uid ... Now we have documents that have the same references. After analyzing the creation timestamp, I would say that these are documents created simultaneously ...
When I look at the code, I would say it is possible: the last index is read in base, incremented by the code and persisted. If two accesses occur at the same time, it must result in duplicate uid right?&lt;/P&gt;
&lt;P&gt;(Obviously, this behavior is a bit problematic for us...)&lt;/P&gt;
&lt;P&gt;We use nuxeo 5.8.0-HF30...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 20:19:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319480#M6481</guid>
      <dc:creator>ftorchet_</dc:creator>
      <dc:date>2015-04-08T20:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible that nuxeo generates duplicate uid with his UIDSequencer?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319481#M6482</link>
      <description>&lt;P&gt;Yes, UIDSequencer has a flawed implementation that's not thread-safe, which is a problem in many situations. We don't recommend using it anymore.&lt;/P&gt;
&lt;P&gt;To generate truly unique sequential ids, we recommend using a SQL directory with &lt;CODE&gt;&amp;lt;autoincrementIdField&amp;gt;true&amp;lt;/autoincrementIdField&amp;gt;&lt;/CODE&gt; specified, and inserting new entries when needed. Although this makes the directory grow, which may or may not be a problem.&lt;/P&gt;
&lt;P&gt;Otherwise use an external mechanism to get incremental ids, like a Hibernate sequence, or a Redis INCR-based counter.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:24:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319481#M6482</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2015-04-09T14:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible that nuxeo generates duplicate uid with his UIDSequencer?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319482#M6483</link>
      <description>&lt;P&gt;Using SQL directory is not possible in my case, I choose to specialize postgreSQL dialect (add a function to get next value of a sequence with insertion BEFORE return) for nxuidsequencer... It's not easy to test (mandatory postgreSQL) but it works without external tool...&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 15:22:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319482#M6483</guid>
      <dc:creator>ftorchet_</dc:creator>
      <dc:date>2015-09-09T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible that nuxeo generates duplicate uid with his UIDSequencer?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319483#M6484</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 13:20:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-that-nuxeo-generates-duplicate-uid-with-his/m-p/319483#M6484</guid>
      <dc:creator>Alice_J</dc:creator>
      <dc:date>2020-10-02T13:20:50Z</dc:date>
    </item>
  </channel>
</rss>

