GeezerVison is showing github.com — Investigate flaky DNS integration test · Issue #808 · googleapis/google-cloud-java
Investigate flaky DNS integration test #808Labels api: dnsIssues related to the Cloud DNS API. DescriptionThis build saw the integration test pass in two modules and fail in the third with the following issue:
Running com.google.gcloud.dns.it.ITDnsTest
Tests run: 12, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 114.627 sec <<< FAILURE! - in com.google.gcloud.dns.it.ITDnsTest
testInvalidChangeRequest(com.google.gcloud.dns.it.ITDnsTest) Time elapsed: 24.69 sec <<< ERROR!
com.google.gcloud.dns.DnsException: The 'entity.change.deletions[0]' resource named 'subdomain.gcldjvit-65ccc5a3-5403-47f3-94ee.com. (A)' does not exist.
at com.google.gcloud.dns.it.ITDnsTest.testInvalidChangeRequest(ITDnsTest.java:652)
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException:
404 Not Found
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "The 'entity.change.deletions[0]' resource named 'subdomain.gcldjvit-65ccc5a3-5403-47f3-94ee.com. (A)' does not exist.",
"reason" : "notFound"
} ],
"message" : "The 'entity.change.deletions[0]' resource named 'subdomain.gcldjvit-65ccc5a3-5403-47f3-94ee.com. (A)' does not exist."
}
at com.google.gcloud.dns.it.ITDnsTest.testInvalidChangeRequest(ITDnsTest.java:652)
testListZones(com.google.gcloud.dns.it.ITDnsTest) Time elapsed: 0.686 sec <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<1>
at com.google.gcloud.dns.it.ITDnsTest.testListZones(ITDnsTest.java:379)
Results :
Failed tests:
ITDnsTest.testListZones:379 expected:<0> but was:<1>
Tests in error:
ITDnsTest.testInvalidChangeRequest:652 » Dns The 'entity.change.deletions[0]' ...
Tests run: 12, Failures: 1, Errors: 1, Skipped: 0
Activityajkannan commented on Mar 29, 2016 After discussing with @aozarov, it seems like the most probable cause for this is sending a delete request, getting some sort of timeout, and then trying to delete again even though the first request went through. Alternatively, the record was never added. I will send a PR to verify that this isn't the case.
To fix the problem of sending the delete request twice, we should probably have two different types of retry handlers, one that retries on all exceptions (including socket timeouts) and another that doesn't retry on socket timeouts.
MetadataMetadataapi: dnsIssues related to the Cloud DNS API. DevelopmentNo branches or pull requestsIssue actions
|