googleapis/java-datastore

datastore.testing.ITLocalDatastoreHelperTest: testStartStopReset failed

flaky-bot opened this issue · 2 comments

Note: #597 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 917e7c8
buildURL: Build Status, Sponge
status: failed

Test output
java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:607)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:848)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1595)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1500)
	at com.google.cloud.testing.BaseEmulatorHelper.sendPostRequest(BaseEmulatorHelper.java:199)
	at com.google.cloud.datastore.testing.LocalDatastoreHelper.stop(LocalDatastoreHelper.java:323)
	at com.google.cloud.datastore.testing.ITLocalDatastoreHelperTest.testStartStopReset(ITLocalDatastoreHelperTest.java:181)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:49)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:120)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:95)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:69)
	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (917e7c8), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

I see the similar behavior in tests which use datastore emulator. Tests are failing for the during Cloud Build pipeline run.

Step #4 - "mvn_test": SEVERE: Could not reset LocalDatastoreHelper.
Step #4 - "mvn_test": java.net.ConnectException: Connection refused (Connection refused)
Step #4 - "mvn_test": 	at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
Step #4 - "mvn_test": 	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
Step #4 - "mvn_test": 	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
Step #4 - "mvn_test": 	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
Step #4 - "mvn_test": 	at java.base/java.net.Socket.connect(Socket.java:609)
Step #4 - "mvn_test": 	at java.base/java.net.Socket.connect(Socket.java:558)
Step #4 - "mvn_test": 	at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
Step #4 - "mvn_test": 	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
Step #4 - "mvn_test": 	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:604)
Step #4 - "mvn_test": 	at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
Step #4 - "mvn_test": 	at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:376)
Step #4 - "mvn_test": 	at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:397)
Step #4 - "mvn_test": 	at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1253)
Step #4 - "mvn_test": 	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
Step #4 - "mvn_test": 	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
Step #4 - "mvn_test": 	at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015)
Step #4 - "mvn_test": 	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1367)
Step #4 - "mvn_test": 	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1342)
Step #4 - "mvn_test": 	at com.google.cloud.testing.BaseEmulatorHelper.sendPostRequest(BaseEmulatorHelper.java:195)
Step #4 - "mvn_test": 	at com.google.cloud.datastore.testing.LocalDatastoreHelper.reset(LocalDatastoreHelper.java:302)

Environment details:

gcloud version
Google Cloud SDK 440.0.0
alpha 2023.07.21
app-engine-go 1.9.75
app-engine-java 2.0.16
app-engine-python 1.9.105
app-engine-python-extras 1.9.101
beta 2023.07.21
bigtable 
bq 2.0.94
bundled-python3-unix 3.9.16
cbt 0.16.1
cloud-datastore-emulator 2.3.1
cloud-firestore-emulator 1.18.1
core 2023.07.21
docker-credential-gcr 1.5.0
gcloud-crc32c 1.0.0
gke-gcloud-auth-plugin 0.5.4
gsutil 5.25
kpt 1.0.0-beta.37
kubectl 1.25.11
kustomize 4.4.0
local-extract 1.5.8
package-go-module 0.4.0
pubsub-emulator 0.8.5
skaffold 2.6.0