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] Hot-Swap is not working #381

Open
antejavor opened this issue Oct 10, 2023 · 1 comment
Open

[BUG] Hot-Swap is not working #381

antejavor opened this issue Oct 10, 2023 · 1 comment
Labels
community community Effort - High Effort - High Frequency - EveryTime Frequency - EveryTime Priority - Later Priority - Later Reach - VeryFew Reach - VeryFew Severity - S3 Severity - S3

Comments

@antejavor
Copy link

Describe the bug
Once Memgraph is started and you have a QM C/C++, Rust in the form of a .so file.
Loaded and ready to use in Memgraph, after the CALL mg.load_all(); and you have tested it.

Then you decide to change something in QM and compile a new one .so file, cp to the proper location, and call:
CALL mg.load_all(); Everything seems to load properly:

[2023-10-10 11:12:47.933] [memgraph_log] [debug] [Run - memgraph] 'CALL mg.load_all()'
[2023-10-10 11:12:47.956] [memgraph_log] [trace] PrepareCypher has not encountered all shortest paths and will  use of monotonic memory
[2023-10-10 11:12:47.958] [memgraph_log] [info] Closing module "/usr/lib/memgraph/query_modules/wcc.py"...
[2023-10-10 11:12:48.107] [memgraph_log] [info] Closed module "/usr/lib/memgraph/query_modules/wcc.py"
[2023-10-10 11:12:48.108] [memgraph_log] [info] Closing module "/usr/lib/memgraph/query_modules/py_example.py"...
[2023-10-10 11:12:48.143] [memgraph_log] [info] Closed module "/usr/lib/memgraph/query_modules/py_example.py"
[2023-10-10 11:12:48.144] [memgraph_log] [info] Closing module "/usr/lib/memgraph/query_modules/nxalg.py"...
[2023-10-10 11:12:48.261] [memgraph_log] [info] Closed module "/usr/lib/memgraph/query_modules/nxalg.py"
[2023-10-10 11:12:48.261] [memgraph_log] [info] Closing module "/usr/lib/memgraph/query_modules/mgp_networkx.py"...
[2023-10-10 11:12:48.266] [memgraph_log] [warning] Failed to remove the module mgp_networkx from sys.modules
[2023-10-10 11:12:48.266] [memgraph_log] [info] Closing module "/usr/lib/memgraph/query_modules/lib_hello_query_module.so"...
[2023-10-10 11:12:48.277] [memgraph_log] [info] Closed module "/usr/lib/memgraph/query_modules/lib_hello_query_module.so"
[2023-10-10 11:12:48.277] [memgraph_log] [info] Closing module "/usr/lib/memgraph/query_modules/graph_analyzer.py"...
[2023-10-10 11:12:48.282] [memgraph_log] [info] Closed module "/usr/lib/memgraph/query_modules/graph_analyzer.py"
[2023-10-10 11:12:48.282] [memgraph_log] [info] Closing module "/usr/lib/memgraph/query_modules/example_c.so"...
[2023-10-10 11:12:48.283] [memgraph_log] [info] Closed module "/usr/lib/memgraph/query_modules/example_c.so"
[2023-10-10 11:12:48.283] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/graph_analyzer.py"...
[2023-10-10 11:12:49.092] [memgraph_log] [info] Loaded module "/usr/lib/memgraph/query_modules/graph_analyzer.py"
[2023-10-10 11:12:49.092] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/example_c.so"...
[2023-10-10 11:12:49.094] [memgraph_log] [info] Loaded module "/usr/lib/memgraph/query_modules/example_c.so"
[2023-10-10 11:12:49.094] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/nxalg.py"...
[2023-10-10 11:12:49.156] [memgraph_log] [info] Loaded module "/usr/lib/memgraph/query_modules/nxalg.py"
[2023-10-10 11:12:49.156] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/py_example.py"...
[2023-10-10 11:12:49.158] [memgraph_log] [info] Loaded module "/usr/lib/memgraph/query_modules/py_example.py"
[2023-10-10 11:12:49.158] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/example_cpp.so"...
[2023-10-10 11:12:49.160] [memgraph_log] [error] Unable to load module "/usr/lib/memgraph/query_modules/example_cpp.so"; /usr/lib/aarch64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/memgraph/query_modules/example_cpp.so). For more details, visit https://memgr.ph/modules.
[2023-10-10 11:12:49.161] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/mgp_networkx.py"...
[2023-10-10 11:12:49.161] [memgraph_log] [info] Loaded module "/usr/lib/memgraph/query_modules/mgp_networkx.py"
[2023-10-10 11:12:49.161] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/wcc.py"...
[2023-10-10 11:12:49.162] [memgraph_log] [info] Loaded module "/usr/lib/memgraph/query_modules/wcc.py"
[2023-10-10 11:12:49.162] [memgraph_log] [info] Loading module "/usr/lib/memgraph/query_modules/lib_hello_query_module.so"...
[2023-10-10 11:12:49.185] [memgraph_log] [info] Loaded module "/usr/lib/memgraph/query_modules/lib_hello_query_module.so"

But the changes you have made are not included. To make it work, you need to restart the Memgraph

@antejavor antejavor assigned gitbuda and unassigned gitbuda Oct 10, 2023
@antejavor
Copy link
Author

Related: memgraph/memgraph#960

@katarinasupe katarinasupe added Importance - I3 Importance - I3 Severity - S3 Severity - S3 Effort - Unknown Effort - Unknown community community labels Dec 27, 2023
@DavIvek DavIvek added Effort - High Effort - High and removed Effort - Unknown Effort - Unknown labels Jan 23, 2024
@hal-eisen-MG hal-eisen-MG added Priority - Later Priority - Later and removed Priority - Later Priority - Later labels Feb 4, 2024
@hal-eisen-MG hal-eisen-MG added Priority - Later Priority - Later and removed Priority - Later Priority - Later labels Feb 18, 2024
@katarinasupe katarinasupe added Frequency - Monthly Frequency - Monthly Reach - VeryFew Reach - VeryFew Frequency - EveryTime Frequency - EveryTime and removed Importance - I3 Importance - I3 Frequency - Monthly Frequency - Monthly labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community Effort - High Effort - High Frequency - EveryTime Frequency - EveryTime Priority - Later Priority - Later Reach - VeryFew Reach - VeryFew Severity - S3 Severity - S3
Projects
Development

No branches or pull requests

5 participants