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

KAFKA-3673: Connect tests don't handle concurrent config changes #1340

Closed
wants to merge 3 commits into from

Conversation

Ishiihara
Copy link
Contributor

No description provided.

@Ishiihara
Copy link
Contributor Author

@ewencp @hachikuji Ready for review. Thanks!

@@ -65,7 +66,9 @@ def test_rest_api(self):
sink_connector_props = self.render("connect-file-sink.properties")
for connector_props in [source_connector_props, sink_connector_props]:
connector_config = self._config_dict_from_props(connector_props)
self.cc.create_connector(connector_config)
wait_until(lambda: self.not_throw_rest_error(lambda: self.cc.create_connector(connector_config)), timeout_sec=120, err_msg="Create connectors throws exception.")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we might need to address the problem more generally. Technically you can get 409 errors on pretty much any call due to rebalances, right? Or did you choose to protect the specific API calls you did for a reason? Are there only certain cases that can trigger rebalances in this test given that we aren't bouncing any workers and therefore only protecting a subset of them is safe?

I'm wondering if the approach to retrying should be flipped around, where every API call has something like a retries parameter. That would allow for easily indicating you expect immediate success (retries=0) or that you want to account for possible rebalances (retries=some larger number).

@Ishiihara
Copy link
Contributor Author

@ewencp Addressed review comments. PTAL.

@ewencp
Copy link
Contributor

ewencp commented May 9, 2016

LGTM, w/ relevant system test passing here: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/439/console

@asfgit asfgit closed this in dbafc63 May 9, 2016
asfgit pushed a commit that referenced this pull request May 9, 2016
Author: Liquan Pei <liquanpei@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #1340 from Ishiihara/connect-test-failure

(cherry picked from commit dbafc63)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
@Ishiihara Ishiihara deleted the connect-test-failure branch May 9, 2016 23:08
gfodor pushed a commit to AltspaceVR/kafka that referenced this pull request Jun 3, 2016
Author: Liquan Pei <liquanpei@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes apache#1340 from Ishiihara/connect-test-failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants