This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
Defaults hygiene: logs out of the working directory, XML limits on by default, vector default docs, JPype floor - #407
Merged
Merged
Conversation
tae898
force-pushed
the
defaults-hygiene
branch
from
October 21, 2026 12:22
4961175 to
a305fd2
Compare
…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]>
tae898
force-pushed
the
defaults-hygiene
branch
from
October 21, 2026 19:07
6bdc650 to
9fe203d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #406
S4: the engine log (
arcadedb.log.*), the JVM crash log and a generatedlogging.propertiesnow go to a per-user directory instead of./login the working directory. The jar'sarcadedb-log.propertieshard-codes./log/arcadedb.log, sostart_jvmrenders a copy whose file log uses${arcadedb.server.logsDirectory}and passes-Darcadedb.server.logsDirectory,-Djava.util.logging.config.fileand-XX:ErrorFileunlessjvm_argsor the environment set them.ARCADEDB_LOG_DIRpicks 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 threejdk.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 anArcadeDBErrorwhose message names the option. SQLIMPORT DATABASEcannot be scoped from Python, so it still needsstart_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 SQLCREATE INDEXgets the engine'sNONEandaddHierarchyfalse unlessMETADATAsets 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) withuv 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.pystarts 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, ajvm_argsoverride or the temp fallback.tests/test_xml_limits.pychecks the default, the error message, and that the per-call option lifts and restores the limits.test_vector_sql.pynow asserts the quantization defaults of both paths. Pre-commit andmkdocs build --strictpass locally.🤖 Generated with Claude Code