All of lore.kernel.org
 help / color / mirror / Atom feed
* OSD abstract class
@ 2013-04-25  8:17 Loic Dachary
  2013-04-25 16:45 ` Gregory Farnum
  0 siblings, 1 reply; 7+ messages in thread
From: Loic Dachary @ 2013-04-25  8:17 UTC (permalink / raw)
  To: Ceph Development

[-- Attachment #1: Type: text/plain, Size: 1117 bytes --]

Hi,

In the context of the implementation of

http://wiki.ceph.com/01Planning/02Blueprints/Dumpling/Erasure_encoding_as_a_storage_backend

I'm preparing tests to assert that the modifications that will be made to the existing PG and ReplicatedPG will not introduce regressions. Unless I'm mistaken, there are no unit tests or functional tests for PG or ReplicatedPG at the moment. I thought that it might be useful to add an abstract OSD class from which OSD is derived, to allow a test to derive from it to implement synthetic behavior. 


I gave it a try and it passes make check successfully. It is a little hairy because I commented out the code instead of removing it to help with rebasing. 

https://github.com/dachary/ceph/commit/a9eb690a3537c3f844b47e76cde048b084e314eb

I'll now try to use it to implement some tests for ReplicatedPG. 

I would very much appreciate if someone has an advice on the best way to proceed. Even if it's to say : "you're crazy, don't go there ! you're wasting your time, there is a much simpler way !" ;-)

Cheers
 
-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-04 23:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25  8:17 OSD abstract class Loic Dachary
2013-04-25 16:45 ` Gregory Farnum
2013-04-25 18:28   ` Loic Dachary
2013-04-25 19:47     ` Gregory Farnum
2013-04-25 20:20       ` Loic Dachary
2013-04-26  1:05         ` Samuel Just
2013-05-04 23:27           ` Loic Dachary

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.