diff --git a/.github/workflows/ci-mapped.yml b/.github/workflows/ci-mapped.yml new file mode 100644 index 0000000000..891ad8fe61 --- /dev/null +++ b/.github/workflows/ci-mapped.yml @@ -0,0 +1,43 @@ +# Copyright 2021 JanusGraph Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Publish package to GitHub Packages +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + + - name: Setup unique version + run: mvn versions:set -DnewVersion=$(date +%s) -DgenerateBackupPoms=false + + - name: Compile and prepare release + run: mvn clean install -Pjanusgraph-release -Dgpg.skip=true -DskipTests=true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Deploy release + run: mvn deploy -Pjanusgraph-release -Dgpg.skip=true -DskipTests=true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/configs/janusgraph-cfg.md b/docs/configs/janusgraph-cfg.md index 3401fa1ccf..442775b0a9 100644 --- a/docs/configs/janusgraph-cfg.md +++ b/docs/configs/janusgraph-cfg.md @@ -19,9 +19,9 @@ Configuration options that modify JanusGraph's caching behavior | Name | Description | Datatype | Default Value | Mutability | | ---- | ---- | ---- | ---- | ---- | | cache.db-cache | Whether to enable JanusGraph's database-level cache, which is shared across all transactions. Enabling this option speeds up traversals by holding hot graph elements in memory, but also increases the likelihood of reading stale data. Disabling it forces each transaction to independently fetch graph elements from storage before reading/writing them. | Boolean | false | MASKABLE | -| cache.db-cache-clean-wait | How long, in milliseconds, database-level cache will keep entries after flushing them. This option is only useful on distributed storage backends that are capable of acknowledging writes without necessarily making them immediately visible. | Integer | 50 | GLOBAL_OFFLINE | +| cache.db-cache-clean-wait | How long, in milliseconds, database-level cache will keep entries after flushing them. This option is only useful on distributed storage backends that are capable of acknowledging writes without necessarily making them immediately visible. | Integer | 50 | MASKABLE | | cache.db-cache-size | Size of JanusGraph's database level cache. Values between 0 and 1 are interpreted as a percentage of VM heap, while larger values are interpreted as an absolute size in bytes. | Double | 0.3 | MASKABLE | -| cache.db-cache-time | Default expiration time, in milliseconds, for entries in the database-level cache. Entries are evicted when they reach this age even if the cache has room to spare. Set to 0 to disable expiration (cache entries live forever or until memory pressure triggers eviction when set to 0). | Long | 10000 | GLOBAL_OFFLINE | +| cache.db-cache-time | Default expiration time, in milliseconds, for entries in the database-level cache. Entries are evicted when they reach this age even if the cache has room to spare. Set to 0 to disable expiration (cache entries live forever or until memory pressure triggers eviction when set to 0). | Long | 10000 | MASKABLE | | cache.tx-cache-size | Maximum size of the transaction-level cache of recently-used vertices. | Integer | 20000 | MASKABLE | | cache.tx-dirty-size | Initial size of the transaction-level cache of uncommitted dirty vertices. This is a performance hint for write-heavy, performance-sensitive transactional workloads. If set, it should roughly match the median vertices modified per transaction. | Integer | (no default value) | MASKABLE | diff --git a/janusgraph-core/src/main/java/org/janusgraph/graphdb/configuration/GraphDatabaseConfiguration.java b/janusgraph-core/src/main/java/org/janusgraph/graphdb/configuration/GraphDatabaseConfiguration.java index 3bd1867338..b5b0fd1b37 100644 --- a/janusgraph-core/src/main/java/org/janusgraph/graphdb/configuration/GraphDatabaseConfiguration.java +++ b/janusgraph-core/src/main/java/org/janusgraph/graphdb/configuration/GraphDatabaseConfiguration.java @@ -376,7 +376,7 @@ public boolean apply(@Nullable String s) { "How long, in milliseconds, database-level cache will keep entries after flushing them. " + "This option is only useful on distributed storage backends that are capable of acknowledging writes " + "without necessarily making them immediately visible.", - ConfigOption.Type.GLOBAL_OFFLINE, 50); + ConfigOption.Type.MASKABLE, 50); /** * The default expiration time for elements held in the database level cache. This is the time period before @@ -389,7 +389,7 @@ public boolean apply(@Nullable String s) { "Entries are evicted when they reach this age even if the cache has room to spare. " + "Set to 0 to disable expiration (cache entries live forever or until memory pressure " + "triggers eviction when set to 0).", - ConfigOption.Type.GLOBAL_OFFLINE, 10000L); + ConfigOption.Type.MASKABLE, 10000L); /** * Configures the maximum number of recently-used vertices cached by a transaction. The smaller the cache size, the diff --git a/pom.xml b/pom.xml index 47382ea7eb..18ca2089ea 100644 --- a/pom.xml +++ b/pom.xml @@ -61,12 +61,14 @@ - ossrh - https://oss.sonatype.org/content/repositories/snapshots + github + GitHub Packages + https://maven.pkg.github.com/mapped/janusgraph - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + github + GitHub Packages + https://maven.pkg.github.com/mapped/janusgraph diff --git a/requirements.txt b/requirements.txt index 5df3687afb..e8550f1b58 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ mkdocs==1.1.2 mkdocs-material==6.2.3 -Pygments==2.6.1 +Pygments==2.7.4 pymdown-extensions==7.1 markdown==3.2.2 mkdocs-markdownextradata-plugin==0.1.7