Commit Graph

5091 Commits (v3.0_pgsql_sslkeylog_5281)

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