Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add the necessary judgment #9694

Merged
merged 2 commits into from Aug 19, 2016

Conversation

renhwztetecs
Copy link
Contributor

@renhwztetecs renhwztetecs commented Jun 14, 2016

  1. test/librados: add ASSERT_EQ & ASSERT_NE judgment
  2. test/libcephfs: add the necessary judgment

Signed-off-by: huanwen ren ren.huanwen@zte.com.cn

add the necessary judgment in the access.cc

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
@renhwztetecs renhwztetecs force-pushed the renhw-wip-librados-iotest branch 3 times, most recently from 926e346 to 180f38a Compare June 14, 2016 15:11
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
@yuriw
Copy link
Contributor

yuriw commented Jul 19, 2016

@renhwztetecs this PR seems to be failing in "[ FAILED ] LibRadosIo.ReadTimeout" test
Run: http://pulpito.ceph.com/yuriw-2016-07-19_15:14:36-rados-wip-yuri-testing__2016_7_18-distro-basic-smithi/

jobs: 323179, 323216, 323239, 323243

One for example in http://qa-proxy.ceph.com/teuthology/yuriw-2016-07-19_15:14:36-rados-wip-yuri-testing__2016_7_18-distro-basic-smithi/323179/teuthology.log

2016-07-19T15:44:18.334 INFO:tasks.workunit.client.0.smithi019.stdout: api_io: /srv/autobuild-ceph/gitbuilder.git/build/rpmbuild/BUILD/ceph-11.0.0/src/test/librados/io.cc:57: Failure
2016-07-19T15:44:18.335 INFO:tasks.workunit.client.0.smithi019.stdout: api_io: Expected: (0) != (rados_connect(cluster)), actual: 0 vs 0
2016-07-19T15:44:18.335 INFO:tasks.workunit.client.0.smithi019.stdout: api_io: [ FAILED ] LibRadosIo.ReadTimeout (3165 ms)

ASSERT_EQ(0, rados_conf_read_file(cluster, NULL));
ASSERT_EQ(0, rados_conf_parse_env(cluster, NULL));
ASSERT_EQ(0, rados_conf_set(cluster, "rados_osd_op_timeout", "0.00001")); // use any small value that will result in a timeout
ASSERT_NE(0, rados_connect(cluster));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should succeed - rados_osd_op_timeout only applies to OSD ops (like the read checked below), not the initial connection

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks
I missing, change it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@renhwztetecs. seems we still have this change? see http://tracker.ceph.com/issues/17087

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed by #10806

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sure I modified it,I don't know what happened
But thank you to fixup it

@renhwztetecs
Copy link
Contributor Author

Done

@jdurgin
Copy link
Member

jdurgin commented Jul 20, 2016

thanks, looks good

@renhwztetecs
Copy link
Contributor Author

@yuriw
help me testing
thank you

@tchaikov
Copy link
Contributor

@tchaikov tchaikov merged commit 34a80e8 into ceph:master Aug 19, 2016
@renhwztetecs renhwztetecs deleted the renhw-wip-librados-iotest branch August 19, 2016 05:56
@renhwztetecs renhwztetecs restored the renhw-wip-librados-iotest branch August 22, 2016 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants