[MDEV-31929] unexpected error occurred when setting max_session_mem_used to max value Created: 2023-08-16  Updated: 2023-08-17

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 11.0.3
Fix Version/s: 11.0

Type: Bug Priority: Major
Reporter: fuying Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None

Attachments: PNG File WX20230816-191159.png    

 Description   

When execute the following simple sql query, "ERROR 1290 (HY000): The MariaDB server is running with the --max-session-mem-used=18446744073709551615 option so it cannot execute this statement" occurred.

18446744073709551615 is a valid value for max_session_mem_used variable.

CREATE TABLE users (
    id INT PRIMARY KEY,
    username VARCHAR(50),
    email VARCHAR(100),
    birthdate DATE
);
 
INSERT INTO users (id, username, email, birthdate) VALUES
(1, 'john_doe', 'john@example.com', '1990-05-15'),
(2, 'jane_smith', 'jane@example.com', '1985-09-20'),
(3, 'bob_johnson', 'bob@example.com', '1998-03-10');
 
SET SESSION max_session_mem_used = 18446744073709551615;
 
SELECT * FROM users;

https://mariadb.com/kb/en/server-system-variables/#max_session_mem_used



 Comments   
Comment by fuying [ 2023-08-16 ]

I found that as long as the setting is greater than the default value, this issue will be triggered; if it's smaller than or equal to the default value, there is no problem.

Generated at Thu Feb 08 10:27:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.