Cassandra和hector升级到1.0并进行单元测试

发布于 2024-12-15 09:48:40 字数 358 浏览 4 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

り繁华旳梦境 2024-12-22 09:48:40

有一个新的“测试”模块,其中包含 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文