Cassandra和hector升级到1.0并进行单元测试
我们一直使用Cassandra 0.7,由于cassandra 1.0.0的稳定版本已经发布,我们计划升级到它。由于我们尚未投入生产,因此风险较低。我们使用的是 hector 0.7-29,它有 testutils 包和一个 EmbeddedServerHelper 类,我们用它来在所有单元测试中启动嵌入式服务器。
然而,hector 1.0-1 的升级版本(适用于 cassandra 1.0.x)已从其核心发行版中删除了此软件包 (me.prettyprint.cassandra.testutils)。
我想知道使用新的 hector 1.0-1 api 客户端进行单元测试的计划。有没有办法再启动cassandra嵌入式服务器?
感谢您的帮助。
We have been using Cassandra 0.7 and since the stable version of cassandra 1.0.0 is out, we planned to upgrade to it. Its low risk since we are not in production yet. We were using hector 0.7-29 which had testutils package and a EmbeddedServerHelper class that we used to start a embedded server in all our unit tests.
However the upgraded version of hector 1.0-1 (which is for cassandra 1.0.x) has removed this package (me.prettyprint.cassandra.testutils) from its core distribution.
I would like to know the plan moving forward for unit testing using the new hector 1.0-1 api client. Is there a way to start cassandra embedded server any more?
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个新的“测试”模块,其中包含 EmbeddedSchemaLoader 和 EmbeddedServerHelper。我们将它们从核心中取出,以便它们可以在 Hector 之外使用(因为该模块现在不直接依赖于 hector)。
https://github.com/rantav/hector/tree/master/test
让我们知道一切进展如何。
There is a new 'test' module which holds EmbeddedSchemaLoader and EmbeddedServerHelper. We took them out of core so they could be used outside of Hector (as the module now has no direct dependency on hector).
https://github.com/rantav/hector/tree/master/test
Let us know how everything works out.