-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
planned[Status] This issue is planned to be work on by ADK eng team[Status] This issue is planned to be work on by ADK eng teamservices[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc
Description
Main Issue
In ADK version 1.21.0, MySQL database engine creation fails when EventsCompactionConfig is enabled. The same MySQL configuration works correctly in ADK 1.13.0, but event compaction is not available in that version. This appears to be a regression or an undocumented compatibility change related to database engine initialization.
To Reproduce
Minimal reproduction steps
-
Install ADK 1.21.0:
pip install google-adk==1.21.0
-
Use the following minimal code:
from google.adk.runtime import Runner from google.adk.runtime.config import EventsCompactionConfig runner = Runner( database_url="mysql+mysqlconnector://user:password@host:3306/db", events_compaction_config=EventsCompactionConfig() )
-
Start the application.
-
Observe the error:
ValueError: Failed to create database engine for URL 'mysql+mysqlconnector://user:password@host:3306/db'
Comparison
- ADK 1.13.0: MySQL connection works (EventsCompactionConfig not available)
- ADK 1.21.0: MySQL connection fails when EventsCompactionConfig is enabled
Expected behavior
MySQL connectivity that works in earlier ADK versions should continue to work when upgrading to newer versions, or the supported MySQL drivers for EventsCompactionConfig should be clearly documented with a clear and descriptive error message.
Screenshots
Desktop (please complete the following information)
- OS: Windows
- Python version (python -V): 3.10.x
- ADK version (pip show google-adk): 1.21.0
Model Information
- Model: gemini-2.5-flash
Metadata
Metadata
Assignees
Labels
planned[Status] This issue is planned to be work on by ADK eng team[Status] This issue is planned to be work on by ADK eng teamservices[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc
