Skip to content

v1.7.9#148

Merged
alihm merged 21 commits into
masterfrom
development
May 14, 2026
Merged

v1.7.9#148
alihm merged 21 commits into
masterfrom
development

Conversation

@alihm
Copy link
Copy Markdown
Member

@alihm alihm commented May 13, 2026

This pull request introduces several important enhancements and fixes to the cluster operator, focusing on improved SQL query analysis, reliability in query handling, logging robustness, and configuration correctness. It also includes minor updates to versioning and UI display.

SQL Query Analysis and Handling:

  • Improved SQL query splitting and classification by integrating the sql-query-identifier library in lib/sqlAnalyzer.js, enabling more accurate parsing of multi-statement queries, especially for MariaDB. Fallback logic ensures resilience if parsing fails. [1] [2] [3]
  • Enhanced prepared statement execution handling in Operator.js by adding the handleStmtResult method. This ensures that write queries executed via prepared statements are properly replicated and that protocol mismatches are avoided, preventing client desynchronization. [1] [2]

Reliability and Safety Improvements:

  • Added logic in DBClient.js to suppress raw socket writes during changeUser operations, preventing protocol corruption during authentication exchanges. [1] [2]
  • Improved query forwarding and connection authorization logging for better traceability and debugging. [1] [2]

Configuration and Logging:

  • Fixed boolean environment variable parsing for authMasterOnly and ssl in config.js, ensuring correct behavior when these values are set via environment variables.
  • Made log file writing robust against concurrent writes by introducing per-file write queues in lib/log.js, preventing race conditions and potential log data loss.

UI and Miscellaneous:

  • Updated version numbers in both backend config and frontend UI to v1.7.9. [1] [2] [3]
  • Removed flux_backlog from the list of system databases filtered out in the UI, making it visible to users.
  • Slightly relaxed the blacklist for dangerous queries in the UI by allowing alter statements.

Development and Dependency Updates:

  • Added mariadb and sql-query-identifier as dependencies in package.json. [1] [2]
  • Cleaned up ESLint configuration, removing unnecessary overrides for test environments. (.eslintrc.js: [1] [2]

@alihm alihm merged commit 9957974 into master May 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant