You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2017/05/27 02:19:58 UTC

[kudu-CR] [client-test] fixed flakiness in TestWriteTimeout

Alexey Serbin has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/7006

Change subject: [client-test] fixed flakiness in TestWriteTimeout
......................................................................

[client-test] fixed flakiness in TestWriteTimeout

In case of sanitizer builds, running the test along with other
concurrent activity could lead to errors like

ClientTest.TestWriteTimeout: client-test.cc:2130: Failure
Value of: error->status().ToString()
Expected: has substring "Write RPC to 127.0.0.1:"
  Actual: "Timed out: Failed to write batch of 1 ops to tablet \
    feb544f396a94a94bfb832b7785376e5 after 2 attempt(s): \
    Failed to write to server: (no server available): \
    Write(tablet: feb544f396a94a94bfb832b7785376e5, num_ops: 1, \
      num_attempts: 2) passed its deadline: \
    Timed out: connection negotiation to 127.0.0.1:33093 for RPC Write \
      timed out after 0.096s (ON_OUTBOUND_QUEUE)"

because it takes too long to negotiate a connection to the server.

This patch increases the operation timeout so now the test passes
for 1K+ runs without any errors.

I also increased session timeout for non-sanitizer builds from 100ms
to 200ms to have make the test more stable in other builds as well.

Change-Id: I2ced444038e721def7212dc8133318d5542c661f
---
M src/kudu/client/client-test.cc
1 file changed, 19 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/06/7006/1
-- 
To view, visit http://gerrit.cloudera.org:8080/7006
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ced444038e721def7212dc8133318d5542c661f
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [client-test] fixed flakiness in TestWriteTimeout

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has posted comments on this change.

Change subject: [client-test] fixed flakiness in TestWriteTimeout
......................................................................


Patch Set 1: Code-Review+2

-- 
To view, visit http://gerrit.cloudera.org:8080/7006
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I2ced444038e721def7212dc8133318d5542c661f
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <da...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-HasComments: No

[kudu-CR] [client-test] fixed flakiness in TestWriteTimeout

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged.

Change subject: [client-test] fixed flakiness in TestWriteTimeout
......................................................................


[client-test] fixed flakiness in TestWriteTimeout

In case of sanitizer builds, running the test along with other
concurrent activity could lead to errors like

ClientTest.TestWriteTimeout: client-test.cc:2130: Failure
Value of: error->status().ToString()
Expected: has substring "Write RPC to 127.0.0.1:"
  Actual: "Timed out: Failed to write batch of 1 ops to tablet \
    feb544f396a94a94bfb832b7785376e5 after 2 attempt(s): \
    Failed to write to server: (no server available): \
    Write(tablet: feb544f396a94a94bfb832b7785376e5, num_ops: 1, \
      num_attempts: 2) passed its deadline: \
    Timed out: connection negotiation to 127.0.0.1:33093 for RPC Write \
      timed out after 0.096s (ON_OUTBOUND_QUEUE)"

because it takes too long to negotiate a connection to the server.

This patch increases the operation timeout so now the test passes
for 1K+ runs without any errors.

I also increased session timeout for non-sanitizer builds from 100ms
to 200ms to have make the test more stable in other builds as well.

Change-Id: I2ced444038e721def7212dc8133318d5542c661f
Reviewed-on: http://gerrit.cloudera.org:8080/7006
Reviewed-by: Mike Percy <mp...@apache.org>
Tested-by: Kudu Jenkins
---
M src/kudu/client/client-test.cc
1 file changed, 19 insertions(+), 11 deletions(-)

Approvals:
  Mike Percy: Looks good to me, approved
  Kudu Jenkins: Verified



-- 
To view, visit http://gerrit.cloudera.org:8080/7006
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2ced444038e721def7212dc8133318d5542c661f
Gerrit-PatchSet: 2
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <da...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>