Skip to content

Commit e29b8ad

Browse files
ckunkiredcatbearkaklakariada
authored
Updated dependencies and added documentation (#104)
* Updated dependencies and added documentation Co-authored-by: Sebastian Bär <[email protected]> Co-authored-by: Christoph Pirkl <[email protected]> Co-authored-by: Christoph Pirkl <[email protected]> * Fixed review findings enhanced unit tests * updated dependency documentation after adding org.junit-pioneer:junit-pioneer * fixed review findings. Co-authored-by: Sebastian Bär <[email protected]> Co-authored-by: Christoph Pirkl <[email protected]>
1 parent 8cad97f commit e29b8ad

File tree

13 files changed

+232
-100
lines changed

13 files changed

+232
-100
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pk_generated_parent.pom linguist-generated=true
2+
dependencies.md linguist-generated=true
3+
doc/changes/changelog.md linguist-generated=true
4+
.github/workflows/broken_links_checker.yml linguist-generated=true
5+
.github/workflows/ci-build-next-java.yml linguist-generated=true
6+
.github/workflows/ci-build.yml linguist-generated=true
7+
.github/workflows/dependencies_check.yml linguist-generated=true
8+
.github/workflows/release_droid_prepare_original_checksum.yml linguist-generated=true
9+
.github/workflows/release_droid_print_quick_checksum.yml linguist-generated=true
10+
.github/workflows/release_droid_upload_github_release_assets.yml linguist-generated=true

.github/workflows/release_droid_upload_github_release_assets.yml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ target
3333
*.md.html
3434
.project
3535
.classpath
36-
*.flattened-pom.xml
36+
*.flattened-pom.xml
37+
/.apt_generated/
38+
/.apt_generated_tests/

.project-keeper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sources:
55
- maven_central
66
- integration_tests
77
linkReplacements:
8-
- LICENSE-exasol-jdbc.txt|https://www.exasol.com/support/secure/attachment/155343/EXASOL_SDK-7.0.11.tar.gz
98
- https://www.mojohaus.org/flatten-maven-plugin/flatten-maven-plugin|https://www.mojohaus.org/flatten-maven-plugin
9+
- https://jdbc.postgresql.org/about/license.html|https://jdbc.postgresql.org/license/
1010
excludes:
1111
- "E-PK-CORE-18: Outdated content: '.github/workflows/release_droid_release_on_maven_central.yml'"

dependencies.md

Lines changed: 67 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/changelog.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/changes_3.4.0.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Test Database Builder for Java 3.4.0, released 2022-09-30
2+
3+
Code name: Support system properties to set DEBUG_ADDRESS and LOG_LEVEL.
4+
5+
## Summary
6+
7+
This release adds support to use properties to set `DEBUG_ADDRESS` and `LOG_LEVEL` for virtual schemas, please see the [User Guide](https://github.com/exasol/test-db-builder-java/blob/main/doc/user_guide/user_guide.md#debug-output) for details.
8+
9+
## Features
10+
11+
* #103: Enabled to set `DEBUG_ADDRESS` and `LOG_LEVEL` based on properties.
12+
13+
## Dependency Updates
14+
15+
### Test Dependency Updates
16+
17+
* Added `org.junit-pioneer:junit-pioneer:1.7.1`
18+
19+
### Plugin Dependency Updates
20+
21+
* Updated `com.exasol:error-code-crawler-maven-plugin:1.1.1` to `1.1.2`
22+
* Updated `com.exasol:project-keeper-maven-plugin:2.5.0` to `2.8.0`
23+
* Updated `org.apache.maven.plugins:maven-enforcer-plugin:3.0.0` to `3.1.0`

doc/user_guide/user_guide.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ final ExasolObjectFactory factory = new ExasolObjectFactory(connection,
277277
.withJvmOptions("-agentlib:jdwp=transport=dt_socket,server=n,address=<host>:<port>,suspend=y")
278278
.build()
279279
);
280-
```
280+
```
281281

282282
### Creating Virtual Schemas
283283

@@ -288,11 +288,36 @@ final VirtualSchema virtualSchema=factory.createVirtualSchemaBuilder("THE_VIRTUA
288288
.dialectName("Exasol")
289289
.adapterScript(adapterScript)
290290
.connectionDefinition(connectionDefinition)
291-
.properties(Map.of("IS_LOCAL","true"
292-
"LOG_LEVEL","ALL"))
291+
.properties(Map.of("IS_LOCAL", "true", "LOG_LEVEL", "ALL"))
293292
.build();
294293
```
295294
295+
#### Debug Output
296+
297+
For virtual schemas Test DB Builder supports three special system properties to enable debug output to a remote machine:
298+
299+
| System property | Sample value | Default value |
300+
|-----------------|--------------|---------------|
301+
| `com.exasol.virtualschema.debug.host` | `"192.168.1.2"` | (none) |
302+
| `com.exasol.virtualschema.debug.port` | `"3000"` | (none) |
303+
| `com.exasol.virtualschema.debug.level` | `"WARN"` | `"ALL"`, see explanation below |
304+
305+
You can set some or all of these properties, see topics [Logging](https://docs.exasol.com/db/latest/database_concepts/virtual_schema/logging.htm) and [Debug UDF Script Output](https://docs.exasol.com/db/latest/database_concepts/udf_scripts/debug_udf_script_output.htm?Highlight=script_output) in the Exasol documentation. If `com.exasol.virtualschema.debug.level` is not specified and either `-Dcom.exasol.virtualschema.debug.host` or `-Dcom.exasol.virtualschema.debug.port` is specified then Test DB Builder Java sets `com.exasol.virtualschema.debug.level` to `ALL`.
306+
307+
When running tests you can for example pass the following additional VM-arguments:
308+
```
309+
-Dcom.exasol.virtualschema.debug.host="127.0.0.1"
310+
-Dcom.exasol.virtualschema.debug.port="3000"
311+
-Dcom.exasol.virtualschema.debug.level="INFO"
312+
```
313+
314+
This activates debug output in your local development environment without modifying any code and thereby preventing to commit debug settings by accident to your source code repository.
315+
316+
You can use the following shell command to display the debug log, see [Logging](https://docs.exasol.com/db/latest/database_concepts/virtual_schema/logging.htm):
317+
```shell
318+
nc -lkp 3000
319+
```
320+
296321
## Running Executable Database Content
297322
298323
### Executing Exasol Scripts

0 commit comments

Comments
 (0)