Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Defaults hygiene: logs out of the working directory, XML limits on by default, vector default docs, JPype floor - #407

Merged
tae898 merged 3 commits into
mainfrom
defaults-hygiene
Oct 21, 2026
Merged

tae898 merged 3 commits into
mainfrom
defaults-hygiene

Conversation

@tae898

@tae898 tae898 commented Oct 21, 2026

Copy link
Copy Markdown

Closes #406

S4: the engine log (arcadedb.log.*), the JVM crash log and a generated logging.properties now go to a per-user directory instead of ./log in the working directory. The jar's arcadedb-log.properties hard-codes ./log/arcadedb.log, so start_jvm renders a copy whose file log uses ${arcadedb.server.logsDirectory} and passes -Darcadedb.server.logsDirectory, -Djava.util.logging.config.file and -XX:ErrorFile unless jvm_args or the environment set them. ARCADEDB_LOG_DIR picks another directory. If the directory cannot be created, a directory under the system temp directory is used with a warning. Server event logs are unchanged.

S7: behaviour change. start_jvm(disable_xml_limits=...) defaults to False, so the JDK's XML entity limits stay on. Database.import_documents(..., disable_xml_limits=True) sets the three jdk.xml.* properties around that call (the parser factory reads them when the importer creates it, which I checked with a 1,000,000 character text node) and restores the previous values. An import that fails with JAXP00010001, 3 or 4 raises an ArcadeDBError whose message names the option. SQL IMPORT DATABASE cannot be scoped from Python, so it still needs start_jvm(disable_xml_limits=True). The engine's own graph XML source (XmlRowSource) sets the same properties globally; that is upstream code and unchanged.

S3: docs and tests only. The vector guide, the API pages and the SQL quick start now say that create_vector_index() defaults to INT8 and the hierarchy while a SQL CREATE INDEX gets the engine's NONE and addHierarchy false unless METADATA sets them. The quick start sets both. No timing claim.

S6: the dependency-floors job only audits the floors for advisories. I ran the JPype-heavy test files (test_log_dir, test_xml_limits, test_jvm, test_jvm_args, test_vector_sql, test_importer_api, test_import_database, test_core, test_type_conversion, test_async_executor, test_vector) with uv run --with jpype1==1.5.0: 227 passed, the same as at 1.7.1, on Python 3.12. The floor stays, with the reason in a comment beside it. JPype 1.5.0 has no wheel for Python 3.13 or 3.14, where pip picks a newer release. There is still no CI job that runs the suite at the floor.

Tests: tests/test_log_dir.py starts a child JVM from an empty read-only working directory and checks that the directory stays empty and the log lands in the state directory, the env var, a jvm_args override or the temp fallback. tests/test_xml_limits.py checks the default, the error message, and that the per-call option lifts and restores the limits. test_vector_sql.py now asserts the quantization defaults of both paths. Pre-commit and mkdocs build --strict pass locally.

🤖 Generated with Claude Code

@tae898 tae898 changed the title Defaults hygiene: logs out of the working directory, XML limits off by default, vector default docs, JPype floor Defaults hygiene: logs out of the working directory, XML limits on by default, vector default docs, JPype floor Oct 21, 2026
tae898 and others added 3 commits October 22, 2026 04:06
…or default docs, JPype floor (#406)

Engine log, crash log and a rendered logging.properties go to a per-user log directory (ARCADEDB_LOG_DIR, jvm_args and ARCADEDB_JVM_ERROR_FILE override), never the working directory. start_jvm(disable_xml_limits) defaults to False; import_documents(disable_xml_limits=True) lifts the JDK entity limits for one call and a limit error names the option. Docs say which path gives INT8 and the hierarchy. The jpype1 floor stays with a written reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The unit tests clear the environment, and Path.home() raises on Windows without USERPROFILE, even though the Windows branch only needs LOCALAPPDATA. The home directory is now read only where needed and falls back to the temp directory; tests cover the Windows branch with a patched platform.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s the args (Windows has LOCALAPPDATA outside it) (#406)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Defaults hygiene: logs out of the working directory, XML limits on by default, vector default docs, JPype floor evidence

1 participant