Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lock testing UB

 
Jari Timonen
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)
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, partner!!!

Have you tried this already?!
 
Alecsandru Cocarla
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic