When adding new documents into a table and using the auto UUID feature, manticore seems to be generating UUIDs that already exist in the table and is therefore rewriting documents.
I am unable to give an exact situation and MRE but I am noticing this in some of my tables.
For example, I wrote a list of all ids in a table named gnanetra into a txt file first. There are around 47050 ids. Here is a sample of those:
There are many more, but I have included 1677721600184 from the list because when I insert a new doc as below, the new doc gets 1677721600184 assigned as its id, and the original doc is replaced, though I have done an insert.
Also the id seems to start at 1677721600000 for any new index (irrespective of when the server started) and on different machines as well, which is a bit odd as I thought UUID uses the timestamp of server start as part of its string.
1677721600000 is the timestamp of 2 March 2023, which is pretty close to the release of version 6.0.2(??)
I used the auto-id feature for all documents. I did not specify my own id at any time.
FYI, I’ve been using Manticore 5.0.2 till recently and never seemed to face this issue. This seemed to popup after shifting to 6.3. While shifting from 5.0.2 to 6.3 I did a full re-index of my documents. I am not using the old index. While re-indexing, I made sure not to copy over the “id” field of each doc.
This is the result I get when I do Create and Drop table thrice
Interestingly, when I restart the server and do the same process, I get the same ids. In my understanding, the ids should be different as the server restart timestamp is involved?
Also I am using tables specified via a config file, if that matters.
Another question, as a temp work around, if I wish to generate my own ids for now, are negative integers ok as ids? Sometimes the uuid 64 bit to integer conversion generates negative integers.