Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Undirected query with DISTINCT fails unpredictably on Windows #4903

Open
Tracked by #4905 ...
prrao87 opened this issue Feb 13, 2025 · 5 comments
Open
Tracked by #4905 ...

Bug: Undirected query with DISTINCT fails unpredictably on Windows #4903

prrao87 opened this issue Feb 13, 2025 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@prrao87
Copy link
Member

prrao87 commented Feb 13, 2025

Kùzu version

v0.8.0

What operating system are you using?

Windows

What happened?

Arthur from G.V() ran the following undirected query with a DISTINCT keyword on the LDBC1 and LDBC10 datasets using the Java API. On MacOS, it runs pretty flawlessly, but on Windows, it randomly succeeds (many times it crashes Kùzu)

 MATCH ()-[r]-() RETURN DISTINCT r LIMIT 1000

The task would be to first reproduce the crash on Windows, and see how the behaviour differs from what's happening on macOS.

Are there known steps to reproduce?

Run the above query on a small LDBC1 or LDBC10 dataset on Windows, preferably through the Java API (though the issue is likely at the C++ layer).

@benjaminwinger
Copy link
Collaborator

Does this occur if you run with just one thread?

@prrao87
Copy link
Member Author

prrao87 commented Feb 14, 2025

cc @arthur-bigeard-gdotv

@arthur-bigeard-gdotv
Copy link

I'll check first thing on Monday (few hours ahead of you guys so already in weekend mode :D). Just to confirm, is there a specific way to configure a Kuzu connection to be single threaded?
In the context of G.V() Kuzu operations happen in a Spring Boot app, for this example as the result of running a query - Spring Boot itself is multi threaded so it feels safe to assume we would be running in a multi-threaded environment in this case.

@prrao87
Copy link
Member Author

prrao87 commented Feb 14, 2025

@arthur-bigeard-gdotv seems that this could be linked to a data race issue on windows. That's why testing with single thread makes sense.

You should be able to force single threaded behaviour when you instantiate the Kùzu database object. I'm not sure about the exact argument but the Java docs should show this.

@arthur-bigeard-gdotv
Copy link

arthur-bigeard-gdotv commented Feb 14, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants