in src/main/java/com/microsoft/azure/datalake/store/ADLStoreClient.java [60:87]
static {
InputStream is = ADLStoreClient.class.getResourceAsStream("/adlsdkversion.properties");
if (is == null) {
sdkVersion = "SDKVersionNotKnown";
} else {
Properties prop = new Properties();
try {
prop.load(is);
} catch (IOException ex) {
sdkVersion = "SDKVersionUnknown";
}
try {
is.close();
} catch (IOException ex) {
// swallow
}
if (sdkVersion == null) sdkVersion = prop.getProperty("sdkversion", "SDKVersionMissing");
}
// This stinks to set this system-wide property from within SDK. However, Oracle JDK has a flaw in that
// HttpURLConnection automatically and silently retries POST requests, which is clearly against HTTP semantics.
// See details here:
// http://koenserneels.blogspot.com/2016/01/pola-and-httpurlconnection.html
// http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6382788
System.setProperty("sun.net.http.retryPost", "false");
}