Skip to content

Commit 9852ba8

Browse files
Merge branch 'osalvador:master' into master
2 parents 070ffed + d1928b3 commit 9852ba8

21 files changed

+25045
-20
lines changed

.github/workflows/CI_Release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
context: .
9393
file: Containerfile
9494
push: ${{ github.event_name != 'pull_request' }}
95-
tags: osalvador/replicadb:ubi8-${{ env.version }}, osalvador/replicadb:ubi8-latest
95+
tags: osalvador/replicadb:ubi9-${{ env.version }}, osalvador/replicadb:ubi9-latest
9696
build-args: REPLICADB_RELEASE_VERSION=${{ env.version }}
9797

9898

.github/workflows/CT_PushJDK11.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Only CI/CT JDK11
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
25+
settings-path: ${{ github.workspace }} # location for the settings.xml file
26+
27+
- name: Get version
28+
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) " >> $GITHUB_ENV
29+
30+
- name: Build and Integration Tests
31+
run: mvn -B package --file pom.xml
32+
33+
- name: Clean Install
34+
run: |
35+
export REPLICADB_RELEASE_VERSION=${{ env.version }}
36+
echo ${REPLICADB_RELEASE_VERSION}
37+
mvn clean install -Dmaven.javadoc.skip=true -DskipTests -B -V -P release
38+
cp ./target/ReplicaDB-*.jar .
39+
mkdir lib
40+
echo ${REPLICADB_RELEASE_VERSION}
41+
cp ./target/lib/* ./lib
42+
tar -zcvf ReplicaDB-v${REPLICADB_RELEASE_VERSION}.tar.gz ReplicaDB-*.jar README.md lib conf bin LICENSE
43+
zip -r -X ReplicaDB-v${REPLICADB_RELEASE_VERSION}.zip ReplicaDB-*.jar README.md lib conf bin LICENSE
44+
ls -lahtr
45+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ data/*
2020
create_db.log
2121
create_db_error.log
2222
.DS_Store
23+
.vscode

Containerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi8/openjdk-11-runtime
1+
FROM registry.access.redhat.com/ubi9/openjdk-11-runtime
22
LABEL maintainer Oscar Salvador Magallanes
33
LABEL maintainer Francesco Zanti <[email protected]>
44

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ Visit the [project homepage on Docker Hub](https://hub.docker.com/r/osalvador/re
9696

9797
## Podman
9898

99-
Based on Red Hat UBI 8
99+
Based on Red Hat UBI 9
100100

101101
```bash
102102
$ podman run \
103103
-v /tmp/replicadb.conf:/home/replicadb/conf/replicadb.conf:Z \
104-
osalvador/replicadb:ubi8-latest
104+
osalvador/replicadb:ubi9-latest
105105
```
106106

107107
# Full Documentation

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
<dependency>
167167
<groupId>org.postgresql</groupId>
168168
<artifactId>postgresql</artifactId>
169-
<version>42.3.7</version>
169+
<version>42.7.2</version>
170170
</dependency>
171171

172172
<dependency>
@@ -313,7 +313,7 @@
313313
<dependency>
314314
<groupId>com.google.guava</groupId>
315315
<artifactId>guava</artifactId>
316-
<version>[30.0-jre,)</version>
316+
<version>32.1.3-jre</version>
317317
</dependency>
318318

319319
<!-- <dependency>-->

src/main/java/org/replicadb/cli/ToolOptions.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class ToolOptions {
3232
private String sinkStagingTableAlias;
3333
private String sinkStagingSchema;
3434
private String sinkColumns;
35-
private String sinkFileformat;
35+
private String sinkFileFormat;
3636
private Boolean sinkDisableEscape = false;
3737
private Boolean sinkDisableIndex = false;
3838
private Boolean sinkDisableTruncate = false;
@@ -476,7 +476,7 @@ private void loadOptionsFile() throws IOException {
476476
setBandwidthThrottling(prop.getProperty("bandwidth.throttling"));
477477
setQuotedIdentifiers(Boolean.parseBoolean(prop.getProperty("quoted.identifiers")));
478478
setSourceFileFormat(prop.getProperty("source.file.format"));
479-
setSinkFileformat(prop.getProperty("sink.file.format"));
479+
setSinkFileFormat(prop.getProperty("sink.file.format"));
480480
setSentryDsn(prop.getProperty("sentry.dsn"));
481481

482482
// Connection params
@@ -891,7 +891,7 @@ public String toString() {
891891
",\n\tsourceConnectionParams=" + sourceConnectionParams +
892892
",\n\tsinkConnectionParams=" + sinkConnectionParams +
893893
",\n\tsourceFileFormat='" + sourceFileFormat + '\'' +
894-
",\n\tsinkFileformat='" + sinkFileformat + '\'' +
894+
",\n\tsinkFileformat='" + sinkFileFormat + '\'' +
895895
'}';
896896
}
897897

@@ -938,17 +938,17 @@ private void setSourceFileFormatNotNull(String fileFormat) {
938938
this.sourceFileFormat = fileFormat;
939939
}
940940

941-
public String getSinkFileformat() {
942-
return sinkFileformat;
941+
public String getSinkFileFormat() {
942+
return sinkFileFormat;
943943
}
944944

945-
public void setSinkFileformat(String sinkFileformat) {
946-
this.sinkFileformat = sinkFileformat;
945+
public void setSinkFileFormat(String sinkFileFormat) {
946+
this.sinkFileFormat = sinkFileFormat;
947947
}
948948

949949
private void setSinkFileFormatNotNull(String fileFormat) {
950950
if (fileFormat != null && !fileFormat.isEmpty())
951-
this.sinkFileformat = fileFormat;
951+
this.sinkFileFormat = fileFormat;
952952
}
953953

954954
public String getSentryDsn() {

src/main/java/org/replicadb/config/Sentry.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void SentryInit(ToolOptions options) {
5454
scope.setTag("source.connect", options.getSourceConnect());
5555
scope.setTag("sink.connect", options.getSinkConnect());
5656
if (options.getVersion() != null) scope.setTag("release.version", options.getVersion());
57-
if (options.getSinkFileformat() != null) scope.setTag("sink.file_format", options.getSinkFileformat());
57+
if (options.getSinkFileFormat() != null) scope.setTag("sink.file_format", options.getSinkFileFormat());
5858
if (options.getSourceFileFormat() != null)
5959
scope.setTag("source.file_format", options.getSourceFileFormat());
6060
});

src/main/java/org/replicadb/manager/file/FileManagerFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public FileManager accept(ToolOptions options, DataSourceType dsType) {
2323
if (dsType == DataSourceType.SOURCE) {
2424
fileFormat = options.getSourceFileFormat();
2525
} else if (dsType == DataSourceType.SINK) {
26-
fileFormat = options.getSinkFileformat();
26+
fileFormat = options.getSinkFileFormat();
2727
} else {
2828
LOG.error("DataSourceType must be Source or Sink");
2929
}

src/main/java/org/replicadb/rowset/StreamingRowSetImpl.java

+9-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
* questions.
2525
*/
2626

27+
import org.replicadb.rowset.sun.rowset.internal.BaseRow;
28+
import org.replicadb.rowset.sun.rowset.internal.CachedRowSetReader;
29+
import org.replicadb.rowset.sun.rowset.internal.InsertRow;
30+
import org.replicadb.rowset.sun.rowset.internal.Row;
31+
2732
import java.sql.*;
2833
import javax.sql.*;
2934
import java.io.*;
@@ -35,8 +40,8 @@
3540
import javax.sql.rowset.spi.*;
3641
import javax.sql.rowset.serial.*;
3742

38-
import com.sun.rowset.internal.*;
39-
import com.sun.rowset.providers.*;
43+
//import com.sun.rowset.internal.*;
44+
//import com.sun.rowset.providers.*;
4045

4146
/**
4247
* The standard implementation of the <code>CachedRowSet</code> interface.
@@ -343,9 +348,9 @@ public StreamingRowSetImpl () throws SQLException {
343348
// set the Reader, this maybe overridden latter
344349
provider = crs.getSyncProvider();
345350

346-
if (!(provider instanceof RIOptimisticProvider)) {
351+
/* if (!(provider instanceof RIOptimisticProvider)) {
347352
throw new SQLException(resBundle.handleGetObject("cachedrowsetimpl.invalidp").toString());
348-
}
353+
}*/
349354

350355
rowSetReader = provider.getRowSetReader();
351356
rowSetWriter = provider.getRowSetWriter();

0 commit comments

Comments
 (0)