orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

.OConcurrentModificationException: Cannot UPDATE the record #0:1 because the version is not the latest.

Open Vannav opened this issue 10 years ago • 13 comments

Expected behavior and actual behavior

Creating a new class in Orient Studio does fail Screenshot

Runninng Mode

  • [ ] Embedded, using PLOCAL access mode
  • [ ] Embedded, using MEMORY access mode
  • [x] Remote

Misc

  • [ ] I have a distributed setup with multiple servers. How many?
  • [ ] I'm using the Enterprise Edition

OrientDB Version

  • [ ] v2.0.x - Please specify last number:
  • [ ] v2.1.x - Please specify last number:
  • [x] v2.2.x - Please specify last number:

Operating System

  • [x] Linux (Server)
  • [ ] MacOSX
  • [x] Windows (Client)
  • [ ] Other Unix
  • [ ] Other, name?

Java Version

  • [ ] 6
  • [ ] 7
  • [x] 8

Vannav avatar Jun 10 '16 10:06 Vannav

hi @Vannav with 2.2.0 GA?

Is the db old or freshly created?

wolf4ood avatar Jun 10 '16 10:06 wolf4ood

Hi @maggiolo00 yep, 2.2.0 from maven repository and its a old db

Vannav avatar Jun 10 '16 11:06 Vannav

hi @Vannav

do you do schema modification in concurrency?

wolf4ood avatar Jun 10 '16 11:06 wolf4ood

Sorry closed by mistake :D

wolf4ood avatar Jun 10 '16 11:06 wolf4ood

Nothing is running concurrently right now. I just wanted to test if studio works because I'm failing on the same exception with either on dropProperty or createProperty

           if( documentClass.existsProperty( propertyName ) )
           {
              documentClass.dropProperty( propertyName );

             // Adding this to force reload of schema
              db.reload();
              documentClass = schema.getClass( className );
           }

           OProperty property = documentClass.createProperty( propertyName,
                 propertyType );

Vannav avatar Jun 10 '16 11:06 Vannav

Do you have a test case to reproduce this issue?

wolf4ood avatar Jun 10 '16 11:06 wolf4ood

I think a testcase wouldn't suffice. I tried it now on a fresh db and works as expected. I think the old db didn't survive the upgrade to 2.2

Vannav avatar Jun 10 '16 11:06 Vannav

Hi @Vannav

Does that db contain sensitive data? Is there any chance to have it for debugging?

Thanks

Luigi

luigidellaquila avatar Jun 10 '16 11:06 luigidellaquila

Hi @luigidellaquila

unfortunately it has alot sensitive data. I'm going to migrate it to a fresh database and report back.

Thanks for your input guys and keep up the good work!

Vannav avatar Jun 10 '16 13:06 Vannav

Hi @Vannav

Ok, no problem, thank you anyway.

Luigi

luigidellaquila avatar Jun 10 '16 13:06 luigidellaquila

hi @Vannav,

Any news on this issue ? where you able to replicate it with a more recent version of orient?

Bye

tglman avatar Sep 30 '16 16:09 tglman

Hi @tglman,

this issue does not occur anymore and I didn't investigate further.

Greetings

Vannav avatar Sep 30 '16 20:09 Vannav

Ok, thank you, closing this.

tglman avatar Oct 11 '16 12:10 tglman