- Increase the "read-timeout" when searching for the host's machine public-IP.
- Update dependencies. - Code polishing.
This commit is contained in:
parent
0ab6bae93a
commit
5f75b48e95
10
build.gradle
10
build.gradle
|
@ -1,5 +1,5 @@
|
|||
plugins {
|
||||
id 'org.springframework.boot' version '2.7.11'
|
||||
id 'org.springframework.boot' version '2.7.12'
|
||||
id 'io.spring.dependency-management' version '1.1.0'
|
||||
id 'java'
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ dependencies {
|
|||
// https://mvnrepository.com/artifact/org.apache.commons/commons-compress
|
||||
implementation 'org.apache.commons:commons-compress:1.23.0'
|
||||
|
||||
implementation 'io.minio:minio:8.5.2'
|
||||
implementation 'io.minio:minio:8.5.3'
|
||||
|
||||
// https://mvnrepository.com/artifact/com.cloudera.impala/jdbc
|
||||
implementation("com.cloudera.impala:jdbc:2.5.31") {
|
||||
|
@ -74,7 +74,7 @@ dependencies {
|
|||
}
|
||||
|
||||
// https://mvnrepository.com/artifact/org.apache.parquet/parquet-avro
|
||||
implementation('org.apache.parquet:parquet-avro:1.13.0')
|
||||
implementation('org.apache.parquet:parquet-avro:1.13.1')
|
||||
|
||||
// https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common
|
||||
implementation('org.apache.hadoop:hadoop-common:3.3.5') {
|
||||
|
@ -107,7 +107,7 @@ dependencies {
|
|||
|
||||
// Add back some updated version of the needed dependencies.
|
||||
implementation 'org.apache.thrift:libthrift:0.17.0' // Newer versions (>=0.18.X) are not compatible with JAVA 8.
|
||||
implementation 'com.fasterxml.woodstox:woodstox-core:6.5.0'
|
||||
implementation 'com.fasterxml.woodstox:woodstox-core:6.5.1'
|
||||
|
||||
// https://mvnrepository.com/artifact/org.json/json
|
||||
implementation 'org.json:json:20230227'
|
||||
|
@ -117,7 +117,7 @@ dependencies {
|
|||
|
||||
|
||||
// https://mvnrepository.com/artifact/io.micrometer/micrometer-registry-prometheus
|
||||
runtimeOnly 'io.micrometer:micrometer-registry-prometheus:1.10.6'
|
||||
runtimeOnly 'io.micrometer:micrometer-registry-prometheus:1.11.0'
|
||||
|
||||
testImplementation 'org.springframework.security:spring-security-test'
|
||||
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
||||
|
|
|
@ -16,9 +16,7 @@ public class GeneralController {
|
|||
|
||||
@GetMapping("isAlive")
|
||||
public ResponseEntity<?> isControllerAlive() {
|
||||
|
||||
logger.info("Received an \"isAlive\" request.");
|
||||
|
||||
return ResponseEntity.ok().build();
|
||||
}
|
||||
|
||||
|
|
|
@ -306,9 +306,8 @@ public class UrlsServiceImpl implements UrlsService {
|
|||
ImpalaConnector.databaseLock.lock();
|
||||
String assignmentErrorMsg = deleteWorkerAssignments(curWorkerId);
|
||||
ImpalaConnector.databaseLock.unlock();
|
||||
if ( assignmentErrorMsg != null ) {
|
||||
if ( assignmentErrorMsg != null )
|
||||
errorMsg += "\n" + assignmentErrorMsg;
|
||||
}
|
||||
logger.error(errorMsg);
|
||||
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorMsg);
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -58,8 +58,8 @@ public class UriBuilder {
|
|||
String urlString = "https://api.ipify.org/";
|
||||
try {
|
||||
conn = (HttpURLConnection) new URL(urlString).openConnection();
|
||||
conn.setConnectTimeout(60_000);
|
||||
conn.setReadTimeout(60_000);
|
||||
conn.setConnectTimeout(60_000); // 1 minute
|
||||
conn.setReadTimeout(120_000); // 2 minutes
|
||||
conn.setRequestMethod("GET");
|
||||
conn.connect();
|
||||
|
||||
|
|
Loading…
Reference in New Issue