URL url = new URL("http://localhost:8080");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("DELETE");
conn.getResponseCode();
HttpURLConnection will silently retry
DELETErequests. This behavior is similar to other existing JDK bugs (JDK-6382788, JDK-6427251). google-http-java-client already contains a workaround (NetHttpRequest.java#L108-L112) for those requests which have a body, but does not account forDELETEwith an empty body.For Google Cloud Storage, while developing a conformance test suite for retry handling I ran into this bug and will submit a fix.
Environment details
1.40.0and olderSteps to reproduce
Code example
See rerpo step 3
Stack trace
No relevant stack trace
External references such as API reference guides