Skip to content

Commit

Permalink
1.6.2 <=> Bumped timeout for native SQLite binary to avoid false alarms
Browse files Browse the repository at this point in the history
  • Loading branch information
mynttt committed Sep 21, 2021
1 parent 2884e3a commit d2cb622
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.6.2
- Bumped Plex SQLite native binary abortion timeout to avoid false alarms on weaker systems

## 1.6.1
- Added capability `DONT_THROW_ON_ENCODING_ERROR` that can be used to prevent forced shutdown if extra data of an item causes decoding errors.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.1
1.6.2
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'com.github.spotbugs' version '2.0.1'
}

version = '1.6.1'
version = '1.6.2'
sourceCompatibility = '11'

new File(projectDir, "VERSION").text = version;
Expand Down
11 changes: 7 additions & 4 deletions src/main/java/updatetool/imdb/ImdbDatabaseSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@ private void testPlexSqliteBinaryVersion() {
});


var result = proc.waitFor(1, TimeUnit.SECONDS);
var result = proc.waitFor(10, TimeUnit.SECONDS);
if(!result) {
Logger.error("Checking Plex SQLite version took more than 1s... Likely invalid binary supplied @ {}. Exiting tool...", config.executeUpdatesOverPlexSqliteVersion);
Logger.error("Checking Plex SQLite version took more than 10s... Likely invalid binary supplied @ {}. Exiting tool...", config.executeUpdatesOverPlexSqliteVersion);
Logger.error("====== Dumping STD::OUT ======");
Logger.error(sb.toString());
Logger.error("============");
System.exit(-1);
} else {
if(!sb.toString().startsWith("3.")) {
Expand Down Expand Up @@ -274,9 +277,9 @@ private void internalBatchUpdateOverPlexSqliteBinary(List<ImdbMetadataResult> it
}
});

var result = proc.waitFor(30, TimeUnit.SECONDS);
var result = proc.waitFor(60, TimeUnit.SECONDS);
if(!result) {
Logger.error("Executing updates for {} item(s) took longer than 30s... Something bad happened... @ {}. Exiting tool...", config.executeUpdatesOverPlexSqliteVersion);
Logger.error("Executing updates for {} item(s) took longer than 60s... Something bad happened... @ {}. Exiting tool...", config.executeUpdatesOverPlexSqliteVersion);
Logger.error("Dumping SQlite 3 STD::OUT");
Logger.error("===================");
Logger.error(sb2.toString());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.1
1.6.2

0 comments on commit d2cb622

Please sign in to comment.