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 — Fix async vector index rebuild to preserve concurrent mutations by lekmaneb · Pull Request #3684 · ArcadeData/arcadedb

Conversation

@lekmaneb

@lekmaneb lekmaneb commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes issue #3683 where async vector index rebuilds would unconditionally reset the mutation counter to 0 and set the graph state to IMMUTABLE, even when new vectors were added during the rebuild. This prevented subsequent searches from triggering a new rebuild for those concurrent mutations.

The fix:

  1. Snapshots the mutation counter at the start of each rebuild to track only mutations present at build initiation
  2. Subtracts only the snapshotted mutations from the counter after rebuild completes, preserving any mutations that arrived concurrently
  3. Sets graph state to MUTABLE (instead of always IMMUTABLE) when delta vectors remain after rebuild
  4. Removes the unconditional mutationsSinceSerialize.set(0) call that was losing concurrent mutation tracking

Motivation

When vectors are inserted during an async rebuild, the rebuild process was losing track of these concurrent mutations. After the rebuild completed, the mutation counter would be reset to 0 and the graph marked as IMMUTABLE, causing the index to ignore the newly added vectors until enough additional mutations accumulated to trigger another rebuild. This could lead to stale search results.

Related issues

  • Fixes async graph build not re-triggered for embeddings added during an ongoing build #3683: Async graph rebuild should be re-triggered when embeddings are added during an ongoing build

Additional Notes

The fix ensures that:

  • Mutations present at rebuild start are properly accounted for and subtracted from the counter
  • Mutations arriving during rebuild are preserved in the counter
  • Graph state correctly reflects whether delta vectors exist (MUTABLE) or not (IMMUTABLE)
  • The next search will trigger a new rebuild if the preserved mutations exceed the threshold

Checklist

  • I have run the build using mvn clean package command
  • My unit tests cover both failure and success scenarios
    • Added Issue3683AsyncRebuildRetriggerTest which verifies:
      • Initial synchronous build works correctly
      • Async rebuild is triggered when mutations exceed threshold
      • Mutations added during async rebuild are preserved
      • Graph state is MUTABLE when delta vectors exist
      • Subsequent search triggers another rebuild for preserved mutations
      • Final rebuild completes with counter at 0 and IMMUTABLE state

https://claude.ai/code/session_01Ue8363XvhDLpWGmF6rJGbk

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
@claude
fix: async graph build not re-triggered for mutations during ongoing …
0722a9e
…build (ArcadeData#3683)

When embeddings were added during an ongoing async graph rebuild, the
mutation counter was unconditionally reset to 0 and graph state set to
IMMUTABLE, preventing the next search from triggering a new rebuild.

Fix: snapshot the mutation counter at build start and atomically subtract
only those mutations (not concurrent ones) when the build completes. Set
graph state to MUTABLE when remaining delta vectors exist.

https://claude.ai/code/session_01Ue8363XvhDLpWGmF6rJGbk
Copilot AI review requested due to automatic review settings March 20, 2026 15:30
@gemini-code-assist

gemini-code-assist Bot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical issue where async vector index rebuilds would incorrectly reset the mutation counter and graph state, leading to the loss of concurrent mutation tracking and potentially stale search results. The changes ensure that mutations occurring during an ongoing rebuild are properly accounted for and preserved, and the graph state accurately reflects the presence of new data. This prevents the system from ignoring recently added vectors and ensures that subsequent rebuilds are triggered correctly when needed, maintaining data consistency and search accuracy.

Highlights

  • Mutation Counter Snapshotting: The mutation counter is now snapshotted at the beginning of each rebuild process to accurately track only those mutations present when the build initiated.
  • Preservation of Concurrent Mutations: After a rebuild, only the snapshotted mutations are subtracted from the counter, ensuring that any mutations that occurred concurrently during the rebuild are preserved.
  • Dynamic Graph State Management: The graph state is now set to MUTABLE if delta vectors remain after a rebuild, instead of always being IMMUTABLE, allowing for proper re-triggering of subsequent rebuilds.
  • Removed Unconditional Reset: The unconditional mutationsSinceSerialize.set(0) call has been removed, preventing the loss of concurrent mutation tracking.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of lekmaneb March 20, 2026 15:31
View session
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Mar 20, 2026
View reviewed changes

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly addresses an issue where concurrent mutations during an asynchronous vector index rebuild were lost. The fix involves snapshotting the mutation count at the start of the rebuild and only subtracting those mutations upon completion, preserving any that occurred concurrently. The graph state is also now correctly set to MUTABLE if there are pending mutations. The changes are logical and well-implemented. A new test case has been added that effectively validates this fix. I've added one suggestion to improve the reliability of the new test by replacing a fixed-duration sleep with a more robust polling mechanism.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread engine/src/test/java/com/arcadedb/index/vector/Issue3683AsyncRebuildRetriggerTest.java
Comment on lines +106 to +107
// Wait for async rebuild to complete
Thread.sleep(10000);

@gemini-code-assist gemini-code-assist Bot Mar 20, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using a fixed Thread.sleep() can lead to flaky tests if the rebuild takes longer than expected, or it can slow down the test suite unnecessarily. A more robust approach is to actively poll for the completion of the asynchronous operation.

You can create a helper method to wait for the graphRebuildCount metric to increase, which signals that a rebuild has completed. This makes the test more reliable and potentially faster.

Here's a suggested helper method and how you could integrate it:

private void waitForRebuild(final LSMVectorIndex index, final long expectedRebuilds) throws InterruptedException {
  long timeout = System.currentTimeMillis() + 30_000; // 30s timeout
  while (index.getStats().get("graphRebuildCount") < expectedRebuilds && System.currentTimeMillis() < timeout) {
    Thread.sleep(100);
  }
  assertThat(index.getStats().get("graphRebuildCount"))
      .as("Graph rebuild should have completed")
      .isEqualTo(expectedRebuilds);
}

You can then use this helper in your test like this:

    // ...
    // First search to trigger initial synchronous graph build
    List<Pair<RID, Float>> results = lsmIndex.findNeighborsFromVector(queryVector, 10);
    assertThat(results).isNotEmpty();
    assertThat(lsmIndex.getStats().get("graphRebuildCount")).isEqualTo(1L);

    // ... trigger async rebuild ...
    results = lsmIndex.findNeighborsFromVector(queryVector, 10);

    // ... add vectors during rebuild ...

    // Wait for async rebuild to complete
    waitForRebuild(lsmIndex, 2L);

    // ... assertions ...

    if (mutationsAfterRebuild >= threshold) {
      // ... trigger another rebuild ...
      results = lsmIndex.findNeighborsFromVector(queryVector, 10);

      // Wait for second async rebuild to complete
      waitForRebuild(lsmIndex, 3L);

      // ... assertions ...
    }

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
lvca
lvca approved these changes Mar 20, 2026
View reviewed changes

@lvca lvca left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lvca
lvca merged commit 2fe8080 into ArcadeData:main Mar 20, 2026
9 of 10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lvca lvca assigned lekmaneb Mar 20, 2026
@lvca lvca added this to the 26.3.2 milestone Mar 20, 2026
Copilot AI reviewed Mar 20, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an async vector index rebuild race (issue #3683) where concurrent mutations during rebuild were lost, causing the index to incorrectly transition to IMMUTABLE and skip subsequent rebuilds.

Changes:

  • Snapshot mutation counter at rebuild start and subtract only that snapshot at rebuild end to preserve concurrent mutations.
  • Set graph state to MUTABLE when delta vectors remain after a rebuild.
  • Add a regression test covering “mutations during async rebuild should retrigger rebuild”.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java Adjusts async rebuild accounting/state transitions to preserve concurrent mutations and correctly set MUTABLE/IMMUTABLE.
engine/src/test/java/com/arcadedb/index/vector/Issue3683AsyncRebuildRetriggerTest.java Adds regression coverage for async rebuild retriggering when vectors are inserted during an ongoing rebuild.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread engine/src/test/java/com/arcadedb/index/vector/Issue3683AsyncRebuildRetriggerTest.java
Comment on lines +96 to +108
// Give async rebuild a moment to start
Thread.sleep(200);

// Add more vectors DURING the async rebuild (above threshold count)
final int vectorsDuringBuild = threshold + 5;
database.transaction(() -> {
for (int i = 0; i < vectorsDuringBuild; i++)
database.command("sql", "INSERT INTO Embedding SET vector = ?", (Object) generateRandomVector(random));
});

// Wait for async rebuild to complete
Thread.sleep(10000);

Copilot AI Mar 20, 2026

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test relies on fixed Thread.sleep(...) delays to (a) ensure the async rebuild has started and (b) wait for completion. This is both slow and can be flaky in CI: the rebuild may not have reached the snapshot point within 200ms, and 10s may be insufficient on slower machines. Prefer waiting deterministically (e.g., Awaitility polling for a state change / counter change, or joining the rebuild thread by name) with a bounded timeout.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
Comment thread engine/src/test/java/com/arcadedb/index/vector/Issue3683AsyncRebuildRetriggerTest.java
Comment on lines +116 to +120
// Graph state should be MUTABLE since there are remaining delta vectors
assertThat(stats.get("graphState"))
.as("Graph state should be MUTABLE (2) when mutations exist after rebuild")
.isEqualTo(2L); // GraphState.MUTABLE ordinal

Copilot AI Mar 20, 2026

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asserting graphState via hard-coded ordinal values (2L / 1L) makes the test brittle if the enum order changes. Since the test is in the same package, it can reference LSMVectorIndex.GraphState.MUTABLE.ordinal() / IMMUTABLE.ordinal() (or compare a string state if you expose one) to avoid magic numbers.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
Comment thread engine/src/test/java/com/arcadedb/index/vector/Issue3683AsyncRebuildRetriggerTest.java
final long mutationsAfterRebuild = stats.get("mutationsSinceRebuild");
assertThat(mutationsAfterRebuild)
.as("Mutations added during async rebuild should be preserved in the counter")
.isGreaterThan(0L);

Copilot AI Mar 20, 2026

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion assumes mutations were definitely added after the rebuild thread snapshotted the counter. With the current timing-based approach, those inserts can occur before the snapshot, making mutationsAfterRebuild legitimately become 0 and causing a flaky failure. To make the scenario deterministic, wait until the async rebuild thread has started (and ideally progressed past the initial snapshot) before inserting the second batch, then await completion.

Suggested change
.isGreaterThan(0L);
.isGreaterThanOrEqualTo(0L);

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
Comment thread engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
Comment on lines +1387 to +1388
// Subtract only mutations present at build start, preserving concurrent ones
mutationsSinceSerialize.addAndGet(-mutationsAtBuildStart);

Copilot AI Mar 20, 2026

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mutationsSinceSerialize.addAndGet(-mutationsAtBuildStart) can drive the counter negative if another code path resets the counter while an async rebuild is in progress (e.g., buildVectorGraphNow() does mutationsSinceSerialize.set(0) without coordinating with the async rebuild thread). A negative counter will break the rebuild trigger logic (threshold comparisons) and can leave the index stuck. Consider clamping at 0 (e.g., updateAndGet(curr -> Math.max(0, curr - mutationsAtBuildStart))) and/or preventing concurrent rebuild/reset paths from running while an async rebuild is active (shared status/lock).

Suggested change
// Subtract only mutations present at build start, preserving concurrent ones
mutationsSinceSerialize.addAndGet(-mutationsAtBuildStart);
// Subtract only mutations present at build start, preserving concurrent ones,
// and clamp to zero to avoid breaking threshold logic if a concurrent reset occurred.
mutationsSinceSerialize.updateAndGet(curr -> Math.max(0L, curr - mutationsAtBuildStart));

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
robfrank pushed a commit that referenced this pull request May 12, 2026
@lekmaneb @claude @robfrank
fix: async graph build not re-triggered for mutations during ongoing …
c5a785f
…build (#3683) (#3684)

When embeddings were added during an ongoing async graph rebuild, the
mutation counter was unconditionally reset to 0 and graph state set to
IMMUTABLE, preventing the next search from triggering a new rebuild.

Fix: snapshot the mutation counter at build start and atomically subtract
only those mutations (not concurrent ones) when the build completes. Set
graph state to MUTABLE when remaining delta vectors exist.

https://claude.ai/code/session_01Ue8363XvhDLpWGmF6rJGbk

Co-authored-by: Claude <[email protected]>
(cherry picked from commit 2fe8080)
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
@mergify
chore(deps-dev): bump org.mockito:mockito-core from 5.18.0 to 5.19.0 …
3321315
…[skip ci]

Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito) from 5.18.0 to 5.19.0.
Release notes

*Sourced from [org.mockito:mockito-core's releases](https://github.com/mockito/mockito/releases).*

> v5.19.0
> -------
>
> *Changelog generated by [Shipkit Changelog Gradle Plugin](https://github.com/shipkit/shipkit-changelog)*
>
> #### 5.19.0
>
> * 2025-08-15 - [37 commit(s)](mockito/mockito@v5.18.0...v5.19.0) by Adrian-Kim, Tim van der Lippe, Tran Ngoc Nhan, dependabot[bot], juyeop
> * feat: Add support for JDK21 Sequenced Collections. [([ArcadeData#3708](https://redirect.github.com/mockito/mockito/issues/3708))]([mockito/mockito#3708](https://redirect.github.com/mockito/mockito/pull/3708))
> * Bump actions/checkout from 4 to 5 [([ArcadeData#3707](https://redirect.github.com/mockito/mockito/issues/3707))]([mockito/mockito#3707](https://redirect.github.com/mockito/mockito/pull/3707))
> * build: Allow overriding 'Created-By' for reproducible builds [([ArcadeData#3704](https://redirect.github.com/mockito/mockito/issues/3704))]([mockito/mockito#3704](https://redirect.github.com/mockito/mockito/pull/3704))
> * Bump org.assertj:assertj-core from 3.27.3 to 3.27.4 [([ArcadeData#3703](https://redirect.github.com/mockito/mockito/issues/3703))]([mockito/mockito#3703](https://redirect.github.com/mockito/mockito/pull/3703))
> * Bump androidx.test:runner from 1.6.2 to 1.7.0 [([ArcadeData#3697](https://redirect.github.com/mockito/mockito/issues/3697))]([mockito/mockito#3697](https://redirect.github.com/mockito/mockito/pull/3697))
> * Bump org.junit.platform:junit-platform-launcher from 1.13.3 to 1.13.4 [([ArcadeData#3694](https://redirect.github.com/mockito/mockito/issues/3694))]([mockito/mockito#3694](https://redirect.github.com/mockito/mockito/pull/3694))
> * Bump com.diffplug.spotless:spotless-plugin-gradle from 7.1.0 to 7.2.1 [([ArcadeData#3693](https://redirect.github.com/mockito/mockito/issues/3693))]([mockito/mockito#3693](https://redirect.github.com/mockito/mockito/pull/3693))
> * Bump junit-jupiter from 5.13.3 to 5.13.4 [([ArcadeData#3691](https://redirect.github.com/mockito/mockito/issues/3691))]([mockito/mockito#3691](https://redirect.github.com/mockito/mockito/pull/3691))
> * Bump com.gradle.develocity from 4.0.2 to 4.1 [([ArcadeData#3689](https://redirect.github.com/mockito/mockito/issues/3689))]([mockito/mockito#3689](https://redirect.github.com/mockito/mockito/pull/3689))
> * Bump com.google.googlejavaformat:google-java-format from 1.27.0 to 1.28.0 [([ArcadeData#3688](https://redirect.github.com/mockito/mockito/issues/3688))]([mockito/mockito#3688](https://redirect.github.com/mockito/mockito/pull/3688))
> * Bump com.google.googlejavaformat:google-java-format from 1.25.2 to 1.27.0 [([ArcadeData#3686](https://redirect.github.com/mockito/mockito/issues/3686))]([mockito/mockito#3686](https://redirect.github.com/mockito/mockito/pull/3686))
> * Bump com.diffplug.spotless:spotless-plugin-gradle from 7.0.4 to 7.1.0 [([ArcadeData#3685](https://redirect.github.com/mockito/mockito/issues/3685))]([mockito/mockito#3685](https://redirect.github.com/mockito/mockito/pull/3685))
> * Bump junit-jupiter from 5.13.2 to 5.13.3 [([ArcadeData#3684](https://redirect.github.com/mockito/mockito/issues/3684))]([mockito/mockito#3684](https://redirect.github.com/mockito/mockito/pull/3684))
> * Bump org.shipkit:shipkit-auto-version from 2.1.0 to 2.1.2 [([ArcadeData#3683](https://redirect.github.com/mockito/mockito/issues/3683))]([mockito/mockito#3683](https://redirect.github.com/mockito/mockito/pull/3683))
> * Bump com.diffplug.spotless:spotless-plugin-gradle from 7.0.2 to 7.0.4 [([ArcadeData#3682](https://redirect.github.com/mockito/mockito/issues/3682))]([mockito/mockito#3682](https://redirect.github.com/mockito/mockito/pull/3682))
> * Only run release after both Java and Android tests have finished
>   [([ArcadeData#3681](https://redirect.github.com/mockito/mockito/issues/3681))]([mockito/mockito#3681](https://redirect.github.com/mockito/mockito/pull/3681))
> * Bump org.junit.platform:junit-platform-launcher from 1.12.2 to 1.13.3 [([ArcadeData#3680](https://redirect.github.com/mockito/mockito/issues/3680))]([mockito/mockito#3680](https://redirect.github.com/mockito/mockito/pull/3680))
> * Bump org.codehaus.groovy:groovy from 3.0.24 to 3.0.25 [([ArcadeData#3679](https://redirect.github.com/mockito/mockito/issues/3679))]([mockito/mockito#3679](https://redirect.github.com/mockito/mockito/pull/3679))
> * Bump org.eclipse.platform:org.eclipse.osgi from 3.23.0 to 3.23.100 [([ArcadeData#3678](https://redirect.github.com/mockito/mockito/issues/3678))]([mockito/mockito#3678](https://redirect.github.com/mockito/mockito/pull/3678))
> * Can no longer publish snapshot releases [([ArcadeData#3677](https://redirect.github.com/mockito/mockito/issues/3677))]([mockito/mockito#3677](https://redirect.github.com/mockito/mockito/issues/3677))
> * Update Gradle to 8.14.2 [([ArcadeData#3676](https://redirect.github.com/mockito/mockito/issues/3676))]([mockito/mockito#3676](https://redirect.github.com/mockito/mockito/pull/3676))
> * Bump errorprone from 2.23.0 to 2.39.0 [([ArcadeData#3674](https://redirect.github.com/mockito/mockito/issues/3674))]([mockito/mockito#3674](https://redirect.github.com/mockito/mockito/pull/3674))
> * Correct Junit docs link [([ArcadeData#3672](https://redirect.github.com/mockito/mockito/issues/3672))]([mockito/mockito#3672](https://redirect.github.com/mockito/mockito/pull/3672))
> * Bump net.ltgt.gradle:gradle-errorprone-plugin from 4.1.0 to 4.3.0 [([ArcadeData#3670](https://redirect.github.com/mockito/mockito/issues/3670))]([mockito/mockito#3670](https://redirect.github.com/mockito/mockito/pull/3670))
> * Bump junit-jupiter from 5.13.1 to 5.13.2 [([ArcadeData#3669](https://redirect.github.com/mockito/mockito/issues/3669))]([mockito/mockito#3669](https://redirect.github.com/mockito/mockito/pull/3669))
> * Bump bytebuddy from 1.17.5 to 1.17.6 [([ArcadeData#3668](https://redirect.github.com/mockito/mockito/issues/3668))]([mockito/mockito#3668](https://redirect.github.com/mockito/mockito/pull/3668))
> * Bump junit-jupiter from 5.12.2 to 5.13.1 [([ArcadeData#3666](https://redirect.github.com/mockito/mockito/issues/3666))]([mockito/mockito#3666](https://redirect.github.com/mockito/mockito/pull/3666))
> * Bump org.jetbrains.kotlin:kotlin-stdlib from 2.0.21 to 2.2.0 [([ArcadeData#3665](https://redirect.github.com/mockito/mockito/issues/3665))]([mockito/mockito#3665](https://redirect.github.com/mockito/mockito/pull/3665))
> * Bump org.gradle.toolchains.foojay-resolver-convention from 0.9.0 to 1.0.0 [([ArcadeData#3661](https://redirect.github.com/mockito/mockito/issues/3661))]([mockito/mockito#3661](https://redirect.github.com/mockito/mockito/pull/3661))
> * Bump org.junit.platform:junit-platform-launcher from 1.11.4 to 1.12.2 [([ArcadeData#3660](https://redirect.github.com/mockito/mockito/issues/3660))]([mockito/mockito#3660](https://redirect.github.com/mockito/mockito/pull/3660))
> * Add JDK21 sequenced collections for ReturnsEmptyValues [([ArcadeData#3659](https://redirect.github.com/mockito/mockito/issues/3659))]([mockito/mockito#3659](https://redirect.github.com/mockito/mockito/issues/3659))
> * Bump com.gradle.develocity from 3.19.1 to 4.0.2 [([ArcadeData#3658](https://redirect.github.com/mockito/mockito/issues/3658))]([mockito/mockito#3658](https://redirect.github.com/mockito/mockito/pull/3658))
> * Bump ru.vyarus:gradle-animalsniffer-plugin from 1.7.2 to 2.0.1 [([ArcadeData#3657](https://redirect.github.com/mockito/mockito/issues/3657))]([mockito/mockito#3657](https://redirect.github.com/mockito/mockito/pull/3657))
> * Bump org.eclipse.platform:org.eclipse.osgi from 3.22.0 to 3.23.0 [([ArcadeData#3656](https://redirect.github.com/mockito/mockito/issues/3656))]([mockito/mockito#3656](https://redirect.github.com/mockito/mockito/pull/3656))
> * Bump org.codehaus.groovy:groovy from 3.0.23 to 3.0.24 [([ArcadeData#3655](https://redirect.github.com/mockito/mockito/issues/3655))]([mockito/mockito#3655](https://redirect.github.com/mockito/mockito/pull/3655))
> * Bump junit-jupiter from 5.11.4 to 5.12.2 [([ArcadeData#3653](https://redirect.github.com/mockito/mockito/issues/3653))]([mockito/mockito#3653](https://redirect.github.com/mockito/mockito/pull/3653))
> * Reproducible Build: need to inject JDK distribution details to rebuild [([ArcadeData#3563](https://redirect.github.com/mockito/mockito/issues/3563))]([mockito/mockito#3563](https://redirect.github.com/mockito/mockito/issues/3563))


Commits

* [`144751b`](mockito/mockito@144751b) Add support for JDK21 Sequenced Collections. ([ArcadeData#3708](https://redirect.github.com/mockito/mockito/issues/3708))
* [`b275c7d`](mockito/mockito@b275c7d) Bump actions/checkout from 4 to 5 ([ArcadeData#3707](https://redirect.github.com/mockito/mockito/issues/3707))
* [`ad6ae2f`](mockito/mockito@ad6ae2f) Allow overriding 'Created-By' for reproducible builds ([ArcadeData#3704](https://redirect.github.com/mockito/mockito/issues/3704))
* [`096ee9f`](mockito/mockito@096ee9f) Bump org.assertj:assertj-core from 3.27.3 to 3.27.4 ([ArcadeData#3703](https://redirect.github.com/mockito/mockito/issues/3703))
* [`aa7be27`](mockito/mockito@aa7be27) Bump androidx.test:runner from 1.6.2 to 1.7.0 ([ArcadeData#3697](https://redirect.github.com/mockito/mockito/issues/3697))
* [`c8a698b`](mockito/mockito@c8a698b) Remove unused tests
* [`ea45979`](mockito/mockito@ea45979) Bump errorprone from 2.39.0 to 2.41.0
* [`9c8eb23`](mockito/mockito@9c8eb23) Bump org.junit.platform:junit-platform-launcher from 1.13.3 to 1.13.4 ([ArcadeData#3694](https://redirect.github.com/mockito/mockito/issues/3694))
* [`f05e44d`](mockito/mockito@f05e44d) Bump com.diffplug.spotless:spotless-plugin-gradle from 7.1.0 to 7.2.1 ([ArcadeData#3693](https://redirect.github.com/mockito/mockito/issues/3693))
* [`9d32dfe`](mockito/mockito@9d32dfe) Bump junit-jupiter from 5.13.3 to 5.13.4 ([ArcadeData#3691](https://redirect.github.com/mockito/mockito/issues/3691))
* Additional commits viewable in [compare view](mockito/mockito@v5.18.0...v5.19.0)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=org.mockito:mockito-core&package-manager=maven&previous-version=5.18.0&new-version=5.19.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
@mergify
chore(deps): bump com.google.api.grpc:proto-google-common-protos from…
ab71cec
… 2.63.0 to 2.63.1 [skip ci]

Bumps [com.google.api.grpc:proto-google-common-protos](https://github.com/googleapis/sdk-platform-java) from 2.63.0 to 2.63.1.
Changelog

*Sourced from [com.google.api.grpc:proto-google-common-protos's changelog](https://github.com/googleapis/sdk-platform-java/blob/main/CHANGELOG.md).*

> Changelog
> =========
>
> [2.64.1](googleapis/sdk-platform-java@v2.64.0...v2.64.1) (2025-11-07)
> ------------------------------------------------------------------------------------------------
>
> ### Dependencies
>
> * bump opentelemetry.version to 1.52.0 ([ArcadeData#3979](https://redirect.github.com/googleapis/sdk-platform-java/issues/3979)) ([764778c](googleapis/sdk-platform-java@764778c))
>
> [2.64.0](googleapis/sdk-platform-java@v2.63.0...v2.64.0) (2025-10-31)
> ------------------------------------------------------------------------------------------------
>
> ### Features
>
> * [common-protos] Add `Carousel` widget ([1e4a7e5](googleapis/sdk-platform-java@1e4a7e5))
> * **librariangen:** add generate package ([ArcadeData#3952](https://redirect.github.com/googleapis/sdk-platform-java/issues/3952)) ([2f6c75d](googleapis/sdk-platform-java@2f6c75d))
> * **librariangen:** generate grpc stubs and resource helpers ([ArcadeData#3967](https://redirect.github.com/googleapis/sdk-platform-java/issues/3967)) ([452d703](googleapis/sdk-platform-java@452d703))
>
> ### Dependencies
>
> * Bump grpc-java to v1.76.0 ([ArcadeData#3942](https://redirect.github.com/googleapis/sdk-platform-java/issues/3942)) ([ffb557c](googleapis/sdk-platform-java@ffb557c))


Commits

* [`4aaea1e`](googleapis/sdk-platform-java@4aaea1e) chore(main): release 2.55.1 ([ArcadeData#3695](https://redirect.github.com/googleapis/sdk-platform-java/issues/3695))
* [`2725744`](googleapis/sdk-platform-java@2725744) deps: revert "deps: update arrow.version to v18.2.0" ([ArcadeData#3694](https://redirect.github.com/googleapis/sdk-platform-java/issues/3694))
* [`3d06ab7`](googleapis/sdk-platform-java@3d06ab7) chore(main): release 2.55.1-SNAPSHOT ([ArcadeData#3692](https://redirect.github.com/googleapis/sdk-platform-java/issues/3692))
* [`a38020a`](googleapis/sdk-platform-java@a38020a) chore(main): release 2.55.0 ([ArcadeData#3669](https://redirect.github.com/googleapis/sdk-platform-java/issues/3669))
* [`8fd7b62`](googleapis/sdk-platform-java@8fd7b62) build(deps): update dependency com.google.cloud:google-cloud-shared-config to...
* [`2562a7d`](googleapis/sdk-platform-java@2562a7d) chore: update googleapis commit at Thu Feb 27 02:27:38 UTC 2025 ([ArcadeData#3666](https://redirect.github.com/googleapis/sdk-platform-java/issues/3666))
* [`542d98d`](googleapis/sdk-platform-java@542d98d) chore: add aliases to generate command options. ([ArcadeData#3689](https://redirect.github.com/googleapis/sdk-platform-java/issues/3689))
* [`5192426`](googleapis/sdk-platform-java@5192426) chore: add java 8 compatibility check ([ArcadeData#3688](https://redirect.github.com/googleapis/sdk-platform-java/issues/3688))
* [`25d3101`](googleapis/sdk-platform-java@25d3101) chore: fix logback-classic version for testing ([ArcadeData#3686](https://redirect.github.com/googleapis/sdk-platform-java/issues/3686))
* [`0932605`](googleapis/sdk-platform-java@0932605) test: Reduce the LRO timeout value in Showcase tests ([ArcadeData#3684](https://redirect.github.com/googleapis/sdk-platform-java/issues/3684))
* Additional commits viewable in [compare view](googleapis/sdk-platform-java@v2.63.0...gax/v2.63.1)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=com.google.api.grpc:proto-google-common-protos&package-manager=maven&previous-version=2.63.0&new-version=2.63.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
@lekmaneb @claude
fix: async graph build not re-triggered for mutations during ongoing …
95fc27a
…build (ArcadeData#3683) (ArcadeData#3684)

When embeddings were added during an ongoing async graph rebuild, the
mutation counter was unconditionally reset to 0 and graph state set to
IMMUTABLE, preventing the next search from triggering a new rebuild.

Fix: snapshot the mutation counter at build start and atomically subtract
only those mutations (not concurrent ones) when the build completes. Set
graph state to MUTABLE when remaining delta vectors exist.

https://claude.ai/code/session_01Ue8363XvhDLpWGmF6rJGbk

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@lvca lvca lvca approved these changes
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lekmaneb lekmaneb

Labels

None yet

Projects

None yet

Milestone

26.3.2

Development

Successfully merging this pull request may close these issues.

async graph build not re-triggered for embeddings added during an ongoing build

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@lekmaneb @lvca @claude
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.
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.