You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ public class Item {
60
60
61
61
// Init a database instance and choose the binding (builtin). Configure connection pool size and connection
62
62
// timeout. Database should be created explicitly via reindexer_tool.
63
+
// To connect to Reindexer with TLS, use cprotos:// protocol with default port 6535.
64
+
// Use ReindexerConfiguration#sslSocketFactory to provide a custom SSLSocketFactory.
63
65
Reindexer db =ReindexerConfiguration.builder()
64
66
.url("cproto://localhost:6534/testdb")
65
67
.connectionPoolSize(1)
@@ -354,3 +356,21 @@ Depends on amount changes in transaction there are 2 possible Commit strategies:
354
356
2. Transaction object holds Reindexer's resources, therefore application should explicitly call `tx.rollback` or `tx.commit`, otherwise resources will leak.
355
357
3. It is safe to call `tx.rollback` after `tx.commit`.
356
358
4. It is possible to call Query from transaction by call `tx.query().execute(); ...`. Only read-committed isolation is available. Changes made in active transaction is invisible to current and another transactions.
359
+
360
+
### Development notes
361
+
362
+
To run tests locally, you need to install Reindexer using a package manager for your OS.
363
+
Cprotos protocol tests require Reindexer to be built with TLS support, and ssl certificate and key must be placed in
364
+
src/test/resources, to generate a new valid certificate run the following commands:
365
+
366
+
```bash
367
+
cd src/test/resources
368
+
# Generates a certificate key (not needed if you already have one).
369
+
openssl genrsa -out builtin-server.key 2048
370
+
# Generates a self-signed certificate using the provided key;
371
+
# Prompts to fill certificate information e.g. CN=localhost;
0 commit comments