Skip to content

Commit

Permalink
Version 7.0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahmud committed Oct 25, 2019
1 parent 3bc4727 commit 8ccf7c9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Version 7.0

### Version 7.0.8.2 - 2019-10-25

#### Fixed
- Multi-head insertion high-availability failover issue when retryCount > 0

### Version 7.0.8.1 - 2019-10-21

#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAJOR = 7
MINOR = 0
REVISION = 8
ABI_VERSION = 1
ABI_VERSION = 2
4 changes: 2 additions & 2 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gpudb</groupId>
<artifactId>gpudb-api</artifactId>
<version>7.0.8.1</version>
<version>7.0.8.2</version>
<packaging>jar</packaging>
<name>Kinetica Java API</name>
<distributionManagement>
Expand Down Expand Up @@ -49,7 +49,7 @@
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gpudb-api.version>7.0.8.1</gpudb-api.version>
<gpudb-api.version>7.0.8.2</gpudb-api.version>
</properties>
<profiles>
<profile>
Expand Down
20 changes: 10 additions & 10 deletions api/src/main/java/com/gpudb/BulkInserter.java
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ public long getCountUpdated() {
return countUpdated.get();
}


/**
* Ensures that any queued records are inserted into GPUdb. If an error
* occurs while inserting the records from any queue, the records will no
Expand All @@ -797,11 +798,10 @@ public void flush() throws InsertException {
queue = workerQueue.flush();
}

flush(queue, workerQueue.getUrl(), true);
flush( queue, workerQueue.getUrl(), true );
}
}


@SuppressWarnings("unchecked")
private void flush(List<T> queue, URL url, boolean forcedFlush) throws InsertException {
if (queue.isEmpty()) {
Expand Down Expand Up @@ -858,14 +858,12 @@ private void flush(List<T> queue, URL url, boolean forcedFlush) throws InsertExc
// Switch to a different cluster in the HA ring, if any
forceHAFailover( currURL, currentCountClusterSwitches );
} catch (GPUdbException ex2) {
if (retries <= 0) {
// We've now tried all the HA clusters and circled back;
// propagate the error to the user, but only there
// are no more retries left
String originalCause = (ex.getCause() == null) ? ex.toString() : ex.getCause().toString();
throw new GPUdbException( originalCause
+ ex2.getMessage(), true );
}
// We've now tried all the HA clusters and circled back;
// propagate the error to the user, but only there
// are no more retries left
String originalCause = (ex.getCause() == null) ? ex.toString() : ex.getCause().toString();
throw new GPUdbException( originalCause
+ ex2.getMessage(), true );
}
}

Expand Down Expand Up @@ -961,6 +959,8 @@ private void flush(List<T> queue, URL url, boolean forcedFlush) throws InsertExc
}
}



/**
* Queues a record for insertion into GPUdb. If the queue reaches the
* {@link #getBatchSize batch size}, all records in the queue will be
Expand Down

0 comments on commit 8ccf7c9

Please sign in to comment.