• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Lock testing UB

 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I've made my Data-class and my locking is done. I also have multithreadtest-class that generates requests. I have a problem. How to verify that everything is going like it should be?
I outputs all locks, unlocks, create...

Any ideas?

I've run it with 100 clients, 10 records, 400 hits per client and everything is going smoothly. (no deadlocks, no exceptions)
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, partner!!!

Have you tried this already?!
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also try my UB test, but from what I understand you already have something that outputs every step, so this is maybe quite similar. What you can do is run it with a big amount of threads and records and see if the database is still valid at the end.

I think there are also some other multithreaded tests around, so try a search and see what you can find.
 
Jari Timonen
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, i've seen all of those links. I've used some parts from them and written my own version, since none of them was using my DBMain iface. (Or they were too strongly coupled)

The main issue still is in every single test: How to verify that the final result is valid?

I need some kind of tracker of what's been done and how many times and in which order. Then crossreference to actual db-file... (sounding too superstitious?)


Now running 200 threads, 30 varitaty records x 300 hits per thread. all ok.
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic