Commit Graph

5113 Commits (mysqlx-plugin-impl)

Author SHA1 Message Date
Rene Cannao e53d2c76f9 Address PR #5410 review findings across FFTO, sessions, TAP, and docs
4 months ago
Rene Cannao 79c0b383e8 integration: fix pre-CI issues in unified branch
4 months ago
Rene Cannao acef17a8c1 Merge branch 'v3.0-ff_inspect' into v3.0-unified-large-pr
4 months ago
Rene Cannao e2ebc0c449 Merge branch 'v4.0-mcp-stats2' into v3.0-unified-large-pr
4 months ago
Rene Cannao 54bcb5eeca Merge branch 'v3.0-5384' into v3.0-unified-large-pr
4 months ago
Rene Cannao 90462f6d5a ffto: harden MySQL/PgSQL observer state handling and align tests/docs
4 months ago
Rene Cannao 5519080ac2 mcp stats: address review findings and remove --genai CLI flag
4 months ago
Rene Cannao 5988468521 Query Processor: re-initialize parser on rewritten queries and enhance test coverage
4 months ago
René Cannaò 2b710e518f
Merge pull request #5401 from sysown/v3.0_fix-pgsql-extended-query-routing_5387
4 months ago
Rene Cannao 3ccf0982e6 AI: Fix retry logic bug and synchronize TAP tests
4 months ago
Rene Cannao 3240a3a942 Fix SIGSEGV caused by double-finalize of sqlite3_stmt
4 months ago
René Cannaò 3647678193
Merge pull request #5399 from sysown/v3.0_3596_3597
4 months ago
René Cannaò 1dbe9fde97
Merge pull request #5385 from sysown/v3.0-2233
4 months ago
Javier Jaramago Fernández ba5af979ff feat-wip: Add replication lag support for PostgreSQL monitoring
4 months ago
Rene Cannao 1c25787b88 Introduce {mysql,pgsql}-query_processor_first_comment_parsing variable (#5384)
4 months ago
Rene Cannao ca73b9eced Tokenizer: fix type mismatch for grouping limit variables
4 months ago
Rene Cannao 797d4b580c mcp stats: move show_users to in-memory auth snapshots
4 months ago
Rene Cannao 1258a1f2f2 Address PR reviews: improve performance, safety, and robustness of FFTO
4 months ago
Rene Cannao db04a54c92 Fix memory corruption and stack overflow in FFTO due to large queries
4 months ago
Rahim Kanji 194e20b3e8 Revert "Reset current_hostgroup to default when no query rule matches"
4 months ago
Rene Cannao 5d786520b0 Merge remote-tracking branch 'origin/v3.0' into merge/v3.0-into-v3.0-5243
4 months ago
Rene Cannao 5d45d17456 mcp stats: split connection metrics from debug free-pool snapshots
4 months ago
Rene Cannao e762f91cda MCP stats: add in-memory processlist filtering and PgSQL concurrency stress TAP
4 months ago
René Cannaò 9c6945fae8
Merge branch 'v3.0' into v3.0-tsdb-feature
4 months ago
Rene Cannao 9a630a949b Add extended Doxygen documentation for FFTO classes
4 months ago
Rene Cannao 40aff577a9 Complete FFTO implementation with verified metrics and robust error handling
4 months ago
Rene Cannao 70b61a86e3 MCP stats: implement in-memory show_queries Top-K path
4 months ago
René Cannaò bad7ce40c5
Merge pull request #5391 from sysown/v3.0_pgsql_advanced_logging
4 months ago
Rene Cannao c126e63a23 mcp stats: refresh stats tables under admin mutex before direct reads
4 months ago
Rene Cannao f3d4153e7d Final FFTO implementation and verification fixes
4 months ago
Rene Cannao 33fce1ca35 MCP stats: address review findings and add detailed docs
4 months ago
René Cannaò 4a6809b60f
Merge branch 'v3.0' into v3.0-tsdb-feature
4 months ago
Rene Cannao ef397f9f1d Fix TSDB variable patterns and backend monitor runtime source
4 months ago
René Cannaò 5256f3d77a
Merge pull request #5388 from sysown/v3.0_fix-pgsql-extended-query-routing_5387
4 months ago
Rene Cannao 82a28a2e62 fix(pgsql-eventslog): close remaining minor review findings in logger internals
4 months ago
Rene Cannao 3dfd6a97d9 Fix FFTO metric parity: capture and report affected_rows and rows_sent
4 months ago
Rene Cannao 17092487cf Add protocol-labeled logger counters and FLUSH LOGS race TAP
4 months ago
Rene Cannao 6db089883e fix(admin): improve PGSQL eventslog dump failure reporting and stats insert path
4 months ago
Rene Cannao 0aa3c5e153 fix(pgsql-eventslog): harden event ownership and keep newest rows in memory table
4 months ago
Rene Cannao c5191d21f8 logger: avoid log drops during rotate close/open window
4 months ago
Rene Cannao eba795d729 fix(pgsql-eventslog): make dump-to-memory sizing protocol-agnostic across admin ports
4 months ago
Rene Cannao 20d6282a60 build(clean): ignore and remove generated MySQL parser artifacts
4 months ago
Rene Cannao b4e85f1799 Expose PostgreSQL eventslog metrics in stats and Prometheus
4 months ago
Rene Cannao b100235fbd Add PGSQL eventslog dump commands and periodic disk sync scheduling
4 months ago
Rene Cannao acbd7d0df3 Implement PostgreSQL eventslog circular buffer and sink pipeline
4 months ago
Rene Cannao 2a46c239be Add PostgreSQL advanced eventslog schema and variable scaffolding
4 months ago
Rene Cannao 3ca390dacb Fix binary protocol support for prepared statements in FFTO
4 months ago
Rene Cannao 3a3be5a559 Implement Fast Forward Traffic Observer (FFTO) for MySQL and PostgreSQL
4 months ago
Rahim Kanji 1f0756b59f Correct bytes_sent tracking for extended query protocol
4 months ago
Rene Cannao eaadabbb8e logger: fix thread-context map race in buffered logging
4 months ago
Rene Cannao caf324f911 logger: harden buffered logging flush/rotation semantics
4 months ago
René Cannaò 568fe1524e
Merge pull request #5364 from mevishalr/feature/query-logging-improvements
4 months ago
René Cannaò 762afaa44f
Merge branch 'v3.0' into v4.0-mcp-stats
4 months ago
Rene Cannao 4882559239 Cleanup: Uncomment delete statsdb_disk in ProxySQL_Statistics destructor
4 months ago
Rene Cannao 700459f67b tsdb: address AI code review feedback, fix memory safety and logic bugs
4 months ago
René Cannaò 10ff1322ba
Merge pull request #5386 from sysown/v3.0-MCP_multi
4 months ago
Rene Cannao 3bb233e800 tsdb: commit missing REST API safety fixes
4 months ago
Rahim Kanji db5f1ea498 Track query count for extended query protocol executions
4 months ago
Rahim Kanji 1b3d20388e Reset current_hostgroup to default when no query rule matches
4 months ago
Rene Cannao 253d098653 security: fix SQL injection vulnerabilities in SQLite catalog queries
4 months ago
Rene Cannao 2fa1401b05 MCP query+harvest hardening: HGM-based target routing, weighted backend selection, pgsql schema fix, and TAP robustness
4 months ago
Rene Cannao b8c6b4f573 tsdb: address code review comments and improve stability
4 months ago
Rene Cannao 9685cdaa4b mcp discovery: enforce target-scoped run model and add protocol-aware static harvesting (mysql+pgsql)
4 months ago
Rene Cannao 7e54883ba5 mcp query debugging: surface rule-id context for blocks and add backend failure SQL details
4 months ago
Rene Cannao 8fbd570c79 mcp variables: stop writing runtime_global_variables during LOAD MCP VARIABLES TO RUNTIME
4 months ago
Rene Cannao f15460348c mcp query diagnostics: include runtime hostgroup status breakdown when target lacks ONLINE backend
4 months ago
Rene Cannao f4bc1943fb mcp query diagnostics: restore strict ONLINE requirement and explain target non-executable failures
4 months ago
Rene Cannao 49f811a638 mcp query: stop misclassifying reachable targets as non-executable
4 months ago
Rene Cannao 6a788e48c4 mcp: make /mcp/query self-healing when targets/backends appear after startup
4 months ago
Rene Cannao 998bd82387 MCP TAP startup: fix tool-handler initialization order, improve MCP PROFILES observability, and seed monitor users
4 months ago
Rene Cannao af0411bd46 MCP: add target-aware rules/stats tests, explain_sql rule coverage, and AI local docker TAP infra
4 months ago
René Cannaò 28b1114cd9
Merge pull request #5353 from sysown/v3.0_pgsql-prepared-statement-refcount-race-5352
4 months ago
jesmarcannao db40505d18 Fix #2233: Mirror sessions destination_hostgroup overwritten by fast routing
4 months ago
Rene Cannao 013864b36f MCP: introduce profile-based target/auth routing and unified LOAD/SAVE MCP PROFILES commands
4 months ago
Rene Cannao 5f5b7d604f tsdb: improve administrative interface and command support
4 months ago
Rene Cannao a09db8318c tsdb: fix SET command validation by adding tsdb- prefix support
4 months ago
Rene Cannao 6587bfdd40 tsdb: trigger stats refresh on SHOW TSDB STATUS
4 months ago
Rene Cannao 2d51aeff64 tsdb: correctly implement SHOW TSDB commands and variable initialization
4 months ago
Rahim Kanji b3e8955adb Fixed error handling
4 months ago
Rene Cannao 6404d7b365 tsdb: implement SHOW TSDB VARIABLES and SHOW TSDB STATUS
4 months ago
Rahim Kanji 409070faa7 Add PostgreSQL \d tablename describe table support in Admin Handler
4 months ago
Rene Cannao c73011b302 tsdb: implement REST API and basic UI dashboard
4 months ago
Rene Cannao 4e0f94a345 tsdb: fix compilation error in ProxySQL_Admin.cpp
4 months ago
Rene Cannao a236a13787 tsdb: dedicated module for TSDB variables with tsdb- prefix and optimized background tasks
4 months ago
Rene Cannao da877c378b tsdb: align admin variable lifecycle, full prometheus ingestion, docs and tap coverage
4 months ago
Rene Cannao f17e999830 Implement SQLite-based TSDB subsystem
4 months ago
René Cannaò 5de836a4c1
Merge pull request #5373 from sysown/v3.0_improve_mysql_monitoring_5256
4 months ago
René Cannaò 3b578db4bf
Merge pull request #5374 from sysown/v3.0-test0213
4 months ago
René Cannaò 83209da487
Merge pull request #5356 from sysown/v3.0-5355
4 months ago
Rene Cannao 37e72ea3f9 Fix PROXY protocol detection in MySQL_Data_Stream::read_from_net
4 months ago
Rene Cannao 11a43bf768 Fix uninitialized max_allowed_pkt in MySQL_Connection constructor
4 months ago
Rene Cannao ca4f858b29 Fix uninitialized memory read in pgsql tokenizer
4 months ago
Rene Cannao 85952373d9 Fix uninitialized mondb pointer in MySQL_Monitor_State_Data constructor
4 months ago
Rahim Kanji 8ca6323eef Merge remote-tracking branch 'Master/v3.0' into v3.0_pgsql-prepared-statement-refcount-race-5352
4 months ago
Rene Cannao 200fdecb8d Apply AI agent review fixes to PR #5374
4 months ago
Rahim Kanji 1cccfb3220 Fix connection cleanup in failure paths
4 months ago
Rene Cannao 941e6b7320 Fix filters_rwlock initialization race condition
4 months ago
Rene Cannao 3c85c593cf Add GloMTH initialization wait to all monitor and server threads
4 months ago
Rene Cannao aa53d990ed Add GloMTH initialization wait to all monitor threads
4 months ago
Rene Cannao f4cd34be5c Fix race condition in monitor_connect_thread
4 months ago
Rahim Kanji 33ce4217f0 Merge remote-tracking branch 'v3.0' into v3.0_improve_mysql_monitoring_5256
4 months ago
Rahim Kanji 9eac5f6420 Improve async ping mmsd ownership tracking and pool validation
4 months ago
Rene Cannao 09d0dcb808 Fix uninitialized tmp_charset in Data_Stream constructors
4 months ago
Rene Cannao 7c67eb25f1 Fix uninitialized fd and status in Data_Stream constructors
4 months ago
Rene Cannao 4e39297ef9 Fix more Valgrind uninitialized value errors
4 months ago
Rene Cannao fdbea2a32e Fix uninitialized memory in Command_Counter::_counters
4 months ago
Rene Cannao c2f82b3d4e Fix more Valgrind uninitialized value errors
4 months ago
Rene Cannao ee7ee0b387 Fix multiple Valgrind-reported uninitialized memory issues
4 months ago
Rene Cannao af58865b06 Fix uninitialized memory in QueryParserArgs.buf
4 months ago
Rene Cannao cc53ddca23 Merge branch 'v3.0-openssl-fix' into v3.0-test0213
4 months ago
Rene Cannao 52718df11f Fix memory leak in stats processlist functions
4 months ago
vramesha 71143c2e84 Address AI review comments
4 months ago
Rene Cannao 746eca9f7c More sprintf to snprintf conversions and indentation fixes
4 months ago
Rene Cannao 3e37337877 Use RAII for sqlite3 statements across codebase
4 months ago
Rene Cannao 335be9ec72 Fix unsafe sprintf and error message handling
4 months ago
Rene Cannao 61ce0a96e8 Remove redundant sqlite3_finalize calls in pgSQL stats
4 months ago
Rene Cannao afd6dffb05 Fix admin shutdown races and implement graceful teardown
4 months ago
Rene Cannao 368a9e3a63 Fix log_buffer debug leak during shutdown
4 months ago
Rene Cannao ba86be70a6 Fixed some bugs in PR 5358
4 months ago
Rahim Kanji bed851471a Fix MySQL Monitor assertion failure in DEBUG builds
4 months ago
Rene Cannao da7c8e5cf5 Fix missing variable
4 months ago
Rene Cannao 4ae5bd852a Revert "fix: prevent dangling pointer in flush_*_variables___runtime_to_database"
4 months ago
René Cannaò 02ea4f90be
Merge pull request #5360 from sysown/v3.0-5359
4 months ago
René Cannaò e82ff6f8aa
Merge pull request #5361 from sysown/v3.0-5069
4 months ago
Rene Cannao a69b925932 Minor typo fixes
4 months ago
Rahim Kanji 9460520999 Add more tests
4 months ago
Rahim Kanji e76d9dc130 Cleanup
4 months ago
vramesha 091942e9d6 Address AI review suggestions
4 months ago
Rahim Kanji 331b0d6bce Add support for PostgreSQL psql meta-commands in admin interface
4 months ago
vramesha 15a4ed66e9 Optimize query logging performance (#5243)
4 months ago
Wazir Ahmed 2d3d12b9a0 Address review comments from gemini and coderabbit
4 months ago
Wazir Ahmed 471ebca74c fix: GENAI modules fails to initialise
4 months ago
Wazir Ahmed ae92ae265f Merge branch 'v3.0' into v4.0-mcp-stats
4 months ago
Wazir Ahmed 7f19b642c2 MCP: Rewrite stats tool handlers based on updated spec
4 months ago
Rene Cannao 3ab964010d Add protocol labels to Query Cache metrics and enable PostgreSQL QC metrics
4 months ago
Rene Cannao 778e01174c Add protocol labels to Thread Handler metrics and enable PostgreSQL metrics
4 months ago
René Cannaò fa35bda62b
Merge pull request #5069 from evkuzin/v3.0-fix-prometheus-metrics-dumplication
4 months ago
Rene Cannao 17054cd14f fix: memory leak in pull_global_variables_from_peer
4 months ago
Rene Cannao deb19a021c fix: remove double-finalization in stats___save_mysql_query_digest_to_sqlite
4 months ago
Rene Cannao a20b2704f4 fix: prevent dangling pointer in flush_*_variables___runtime_to_database
4 months ago
René Cannaò fcaa904135 fix: crash on macOS/FreeBSD when running PostgreSQL queries
4 months ago
Rene Cannao 6f415dfdb2 fix: correct RAII migration issues - variable naming and redundant declarations
4 months ago
Rene Cannao 7c0ff770f6 refactor: migrate prepare_v2 SIMPLE cases in ProxySQL_Admin_Stats.cpp
4 months ago
Rene Cannao ee85b11ad5 refactor: migrate prepare_v2 SIMPLE case in PgSQL_HostGroups_Manager.cpp
4 months ago
Rene Cannao e4704c5a51 refactor: migrate prepare_v2 SIMPLE cases in PgSQL_Monitor.cpp
4 months ago
Rene Cannao 73555410e9 refactor: migrate prepare_v2 SIMPLE case in FlushDigestTableToDisk template
4 months ago
Rene Cannao 2e907bdd3a refactor: migrate prepare_v2 SIMPLE cases in ProxySQL_Cluster.cpp
4 months ago
Rene Cannao e3ee454369 fix: remove duplicate 'int rc' declarations in prepare_v2 migrated functions
4 months ago
Rene Cannao 5b6381b329 refactor: migrate remaining prepare_v2 SIMPLE cases in ProxySQL_Admin
4 months ago
Rene Cannao 2a83a30972 refactor: migrate more prepare_v2 SIMPLE cases in ProxySQL_Admin
4 months ago
Rene Cannao ca9b72a9df refactor: migrate more prepare_v2 SIMPLE cases in ProxySQL_Admin
4 months ago
Rene Cannao e56da24c81 refactor: migrate more prepare_v2 SIMPLE cases in ProxySQL_Admin
4 months ago
Rene Cannao 575449cdf6 refactor: migrate all prepare_v2 SIMPLE cases to RAII API in ProxySQL_Admin
4 months ago
Rene Cannao f779a6059a refactor: migrate remaining prepare_v2 SIMPLE cases in MySQL_Monitor
4 months ago
Rene Cannao bdba0b44a0 refactor: migrate all prepare_v2 SIMPLE cases to RAII API in MySQL_Monitor
4 months ago
Rene Cannao 854ab4fbb6 refactor: migrate generate_pgsql_hostgroup_attributes_table() to RAII prepare_v2
4 months ago
Rene Cannao 9939fe17e4 refactor: migrate generate_pgsql_servers_table() to RAII prepare_v2
4 months ago
Rene Cannao 41564acaac Fix #5355: Add null pointer check in RequestEnd() to prevent use-after-free crash
4 months ago
Rene Cannao 7c2c6121e5 refactor: migrate prepare_v2 to RAII API in ProxySQL_Admin_Tests2
4 months ago
Rene Cannao 2c8c27bf64 refactor: migrate prepare_v2 to RAII API in Admin_FlushVariables
4 months ago
Rene Cannao 9262089060 refactor: migrate prepare_v2 to RAII API in MySQL_Logger
4 months ago
Rene Cannao 4161372da7 refactor: migrate simple prepare_v2 cases to RAII-based API
4 months ago
Rene Cannao df1c4e7928 fix: medium priority warnings - write-strings and unused variables
4 months ago
Rene Cannao 4c788dcbb3 fix: signed/unsigned comparison warnings (-Wsign-compare)
4 months ago
Rene Cannao 9e83a81b4c fix: critical use-after-free in child_telnet function
4 months ago
Rahim Kanji 557bdb6213 Added missing iterator advancement
4 months ago
Rahim Kanji 230985e93e Fix: PostgreSQL prepared statement purge race condition
4 months ago
René Cannaò a360dc22ae
Merge pull request #5308 from sysown/v3.0_mac
4 months ago
René Cannaò 48f1b3cfef
Merge pull request #5095 from Gonlo2/fix-overflow-if-first-server-is-invalid
4 months ago
René Cannaò de0a9b9c27
Merge pull request #5093 from Gonlo2/fix-usage-deleted-con
4 months ago
René Cannaò 77fe582801
Merge pull request #5317 from sysown/v3.0.6-implement_FLUSH_STATS
4 months ago
René Cannaò ce9fdc9d7a
Merge branch 'v3.0' into v3.0.6-implement_FLUSH_STATS
4 months ago
Rene Cannao e3026cbc6f Fix wrong index in connection cleanup loops (MySQL and PgSQL)
4 months ago
René Cannaò 0524363322
Merge pull request #5339 from sysown/v3.0-merge-v4.0-genai
4 months ago
Wazir Ahmed adb059c4b5 mcp/stats: Add doxygen documentation for tool handlers
4 months ago
Wazir Ahmed 643b322f29 MCP: Add stats endpoint and tools
4 months ago
René Cannaò 27f13ca18d
Merge pull request #5096 from Gonlo2/fix-close-ssl-con
4 months ago
Rene Cannao 79756e78d7 Fix missing #endif for PROXYSQLGENAI guard in Admin_Handler.cpp
4 months ago
Rene Cannao 1af768f932 Fix critical issues in GenAI code (PR #5339)
4 months ago
Rene Cannao b965fc6df4 Fix PROXYSQLGENAI build - resolve circular includes and missing headers
4 months ago
Rene Cannao 48bc7dd7bf Merge v4.0 GenAI features into v3.0 with conditional compilation
4 months ago
René Cannaò e00617be11
Merge pull request #5333 from wazir-ahmed/v4.0-config-embedding-model
4 months ago
Wazir Ahmed 10026891ce RAG: Convert vector similarity search into a subquery
4 months ago
Javier Jaramago Fernández e351a0df74 feat: Add leading comments (--) detection for 'run_sql_readonly'
4 months ago
Miro Stauder cc1d93d08b implement admin command 'PROXYSQL FLUSH STATS' for DEBUG builds
4 months ago
Wazir Ahmed 8d022a0fcc RAG: Add 'model' request parameter for embedding service
4 months ago
Javier Jaramago Fernández fec97bbabe fix: Fix GENAI variable loading during 'ProxySQL_Admin::init'
4 months ago
Javier Jaramago Fernández a5ef787c7e feat: Improve logging for MCP and RAG tools
4 months ago
Wazir Ahmed e4f4dc95ce RAG: bm25 and MATCH do not work with table alias
5 months ago
Wazir Ahmed c52c621b27 MCP: Add mcp-rag_endpoint_auth config
5 months ago
Wazir Ahmed eb495f42ee AI: Fix vector_db table creation
5 months ago
Wazir Ahmed 22c4e94d53 AI: Fix sqlite-vec extension loading
5 months ago
Wazir Ahmed 7167f95247 AI: Enable extensions for vector_db
5 months ago
Wazir Ahmed 4031f85394 AI: Fix vector_db initialization
5 months ago
Wazir Ahmed cecb975f66 fix: LOAD GENAI TO RUNTIME does not initialize the module
5 months ago
Wazir Ahmed 50de536534 MCP: Fix crash during server restarts
5 months ago
Rene Cannao 42a67ebaf2 Merge rahim/v4.0_rag_ingest into v4.0_rag_ingest_2
5 months ago
Rene Cannao 38e5e8e56b Fix critical issues from coderabbitai review
5 months ago
Rene Cannao 9ba3df0ce7 Address AI code review feedback from PR #5318
5 months ago
Rahim Kanji d28444a02e Merge remote-tracking branch 'v4.0' into v4.0_rag_ingest
5 months ago