Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RID screwed up after select random RID #2083

Closed
henryzhao81 opened this issue Feb 28, 2014 · 4 comments
Closed

RID screwed up after select random RID #2083

henryzhao81 opened this issue Feb 28, 2014 · 4 comments
Assignees
Milestone

Comments

@henryzhao81
Copy link
Contributor

  1. Create plocal database demo
    orientdb> create database plocal:/demo admin admin plocal
  2. Start database server and remote connect database
    orientdb> connect remote:localhost/demo admin admin
    Connecting to database [remote:localhost/demo] with user 'admin'...OK
  3. Select from OUser class, 3 record found Export of database [moved] #5:0 admin Export of database [moved] #5:1 reader and Export of database [moved] #5:2 writer
    orientdb {demo}> select from OUser
----+----+------+-------------------------------------------------------------------------+------+-----
#   |@RID|name  |password                                                                 |status|roles
----+----+------+-------------------------------------------------------------------------+------+-----
0   |#5:0|admin |{SHA-256}8C6976E5B5410415BDE908BD4DEE15DFB167A9C873FC4BB8A81F6F2AB448A918|ACTIVE|[1]  
1   |#5:1|reader|{SHA-256}3D0941964AA3EBDCB00CCEF58B1BB399F9F898465E9886D5AEC7F31090A0FB30|ACTIVE|[1]  
2   |#5:2|writer|{SHA-256}B93006774CBDD4B299389A03AC3D88C3A76B460D538795BC12718011A909FBA5|ACTIVE|[1]  
----+----+------+-------------------------------------------------------------------------+------+-----

4.Select by random RID, return 0 record

orientdb {demo}> select from #5:1232323
0 item(s) found. Query executed in 0.001 sec(s).

5.insert new record to OUser

orientdb {demo}> insert into OUser (name, password, status) values ('test','test','ACTIVE')
Inserted record 'OUser#5:1229272{name:test,password:{SHA-256}9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08,status:ACTIVE} v1' in 0.015000 sec(s).

new record created in database but right now the RID jump to #5:1229272. 

Issue found on 1.6.x to 1.7.2-rc2,

@henryzhao81
Copy link
Contributor Author

Same issue to #2082

@mattaylor
Copy link
Contributor

this is a deeply annoying bug, (our QA processes do exactly this kind of thing)
Any chance of a fix for 1.7?

@lvca lvca added this to the 1.7rc2 milestone Mar 1, 2014
@lvca lvca added the bug label Mar 1, 2014
andrii0lomakin added a commit that referenced this issue Mar 4, 2014
@lvca lvca removed the In progress label Mar 4, 2014
@mattaylor
Copy link
Contributor

ta

@andrii0lomakin
Copy link
Member

???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants