GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `CHECK DATABASE` idempotency · Issue #970 · ArcadeData/arcadedb

CHECK DATABASE idempotency #970

New issue
Copy link
New issue
Copy link
Closed
Closed
CHECK DATABASE idempotency#970
Copy link
Assignees
lvca
Labels
questionFurther information is requested
Milestone
23.3.1

Description

@gramian
gramian
opened on Mar 23, 2023
Issue body actions

ArcadeDB Version: 23.2.1 (build e8f512f/1677638572021/main)

JDK Version: openjdk 11.0.18 2023-01-17

OS: MacOS 12.6

Using CHECK DATABASE via a query results in an error, even though this command (without FIX) should just report and not change the database, right? Or not? Obviously, CHECK DATABASE FIX is not idempotent.

Expected behavior

{"user":"root","version":"23.2.1 (build e8f512fa466c4a32ef9d14d89af20e7ac2859c7e/1677638572021/main)","serverName":"ArcadeDB_0","result":[{"operation":"check database","avgPageUsed":0.15671158,"warnings":[],"totalErrors":0,"totalSurrogateRecords":0,"pageSize":5242880,"totalAllocatedDocuments":9,"totalDeletedRecords":0,"totalAllocatedRecords":10,"totalActiveDocuments":9,"deletedRecordsAfterFix":[],"totalActiveRecords":10,"totalActiveEdges":0,"totalMaxOffset":82162,"totalAllocatedVertices":1,"corruptedRecords":[],"totalPages":10,"totalPlaceholderRecords":0,"rebuiltIndexes":[],"totalAllocatedEdges":0,"invalidLinks":0,"autoFix":0,"totalActiveVertices":1}]}

Actual behavior

{"error":"Cannot execute command","detail":"Query \u0027CHECK DATABASE\u0027 is not idempotent","exception":"java.lang.IllegalArgumentException"}

Steps to reproduce

curl -X GET http://localhost:2480/api/v1/query/test/sql/CHECK%20DATABASE --user root:mypassword

Furthermore

CHECK DATABASE seems not be useable in a sub-query or inline LET; neither:

SELECT $a.warnings LET a = CHECK DATABASE;
SELECT coalesce((CHECK DATABASE)).warnings;
SELECT warnings FROM (CHECK DATABASE);

work.

Activity

  1. lvca
    self-assigned this
    on Mar 23, 2023
  2. lvca
    added
    questionFurther information is requested
    on Mar 23, 2023
  3. lvca commented on Mar 23, 2023

    @lvca
    lvca
    on Mar 23, 2023
    Member
    More actions

    The check database could have the -fix clause, so it has been excluded from the query command.

  4. lvca
    closed this as completedon Mar 23, 2023
  5. lvca
    added this to the 23.3.1 milestone on Mar 23, 2023
  6. gramian commented on Mar 23, 2023

    @gramian
    gramian
    on Mar 23, 2023
    CollaboratorAuthor
    More actions

    @lvca Got it, I thought CHECK DATABASE and CHECK DATABASE FIX were different commands. Thanks for clarifying.

    Just to make sure though, practically CHECK DATABASE (without FIX) is idempotent, right?

  7. lvca commented on Mar 23, 2023

    @lvca
    lvca
    on Mar 23, 2023
    Member
    More actions

    yes, it is.

  8. mergify
    added a commit that references this issue on Mar 29, 2026

    chore(deps): bump io.github.ascopes:protobuf-maven-plugin from 5.0.2 …

    f669b40
  9. mergify
    added a commit that references this issue on May 24, 2026

    chore(deps): bump the github-actions group with 5 updates [skip ci]

    e04b4c3
  10. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    chore(deps): bump io.github.ascopes:protobuf-maven-plugin from 5.0.2 …

    2ff96e5

    chore(deps): bump the github-actions group with 5 updates [skip ci]

    c51733f
  11. mergify
    added a commit that references this issue on Jul 19, 2026

    chore(deps-dev): bump org.apache.maven.plugins:maven-enforcer-plugin …

    4e63abe
  12. mergify
    added a commit that references this issue on Jul 26, 2026

    build(deps-dev): bump org.apache.maven.plugins:maven-enforcer-plugin …

    ffbd683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

questionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    • 23.3.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.