Skip to content

MENT-2297: Inconsistency detected - create sequence #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 11.4
Choose a base branch
from

Conversation

hemantdangi-gc
Copy link

Issue:
The Create SEQUENCE object on the first/active galera node:
CREATE SEQUENCE seq_moni_num start with 1 minvalue 1 maxvalue 9223372036854775806 increment by 0 cache 1000 nocycle ENGINE=InnoDB

Execute the following query for two or three times on the other nodes:
SELECT NEXT VALUE FOR seq_moni_num;

Resulted in below error on applier node:
[ERROR] Slave SQL: Could not execute Write_rows_v1 event on table monitor.seq_moni_num; Unknown error, Error_code: 1105; handler error No Error!; the event's master log FIRST, end_log_pos 0, Internal MariaDB error code: 1105 [Warning] WSREP: Event 3 Write_rows_v1 apply failed: 195, seqno 28222

Solution:
The error HA_ERR_SEQUENCE_INVALID_DATA 195 happens in sequence_definition::check_and_adjust() but not enough log are provided to know which limit reached or condition failed. So more logs are added on failure in sequence_definition::check_and_adjust().

Issue:
The Create SEQUENCE object on the first/active galera node:
  CREATE SEQUENCE `seq_moni_num` start with 1 minvalue 1 maxvalue 9223372036854775806 increment by 0 cache 1000 nocycle ENGINE=InnoDB

Execute the following query for two or three times on the other nodes:
  SELECT NEXT VALUE FOR seq_moni_num;

Resulted in below error on applier node:
[ERROR] Slave SQL: Could not execute Write_rows_v1 event on table monitor.seq_moni_num; Unknown error, Error_code: 1105; handler error No Error!; the event's master log FIRST, end_log_pos 0, Internal MariaDB error code: 1105
[Warning] WSREP: Event 3 Write_rows_v1 apply failed: 195, seqno 28222

Solution:
The error HA_ERR_SEQUENCE_INVALID_DATA 195 happens in
sequence_definition::check_and_adjust() but not enough log are provided to know
which limit reached or condition failed. So more logs are added on
failure in sequence_definition::check_and_adjust().
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