Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-704

LP:682967 - auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.5.30, 5.1.67, 5.2.14, 5.3.12
    • Fix Version/s: 10.0, 5.5
    • Component/s: None

      Description

      Apart from both of these variables not allowed to be 0, auto-increment-offset should not be allowed to be greater than auto-increment-increment as that would by definition create an invalid scenario.

      For startup, this could be checked after the config/cmdline params are all processed - this to prevent chucking an error in case they're specified with offset first and increment second.
      For live changes, it could be checked on the spot - although I'd question the sense/need of changing such params live.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            Re: [Bug 682967] [NEW] auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment
            Hi, Arjen!
            >
            > auto-increment-offset should not be allowed to be greater than
            > auto-increment-increment as that would by definition create an invalid
            > scenario.

            It is not at all obvious to me that this situation "should not" be
            allowed, and that it creates "by definition an invalid scenario".

            Somehow I cannot derive A < B from the formula X = A + N*B.

            Regards,
            Sergei

            Show
            serg Sergei Golubchik added a comment - Re: [Bug 682967] [NEW] auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment Hi, Arjen! > > auto-increment-offset should not be allowed to be greater than > auto-increment-increment as that would by definition create an invalid > scenario. It is not at all obvious to me that this situation "should not" be allowed, and that it creates "by definition an invalid scenario". Somehow I cannot derive A < B from the formula X = A + N*B. Regards, Sergei
            Hide
            arjenlentz Arjen Lentz added a comment -

            Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment
            I'd reckon you can get duplicates, as the # you get at is no longer within the safe bounds that can't be touched by another master?

            Not sure about your formula re how auto-inc-offset/increment work.

            Show
            arjenlentz Arjen Lentz added a comment - Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment I'd reckon you can get duplicates, as the # you get at is no longer within the safe bounds that can't be touched by another master? Not sure about your formula re how auto-inc-offset/increment work.
            Hide
            arjenlentz Arjen Lentz added a comment -

            Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment
            can this request please get triaged and classified? as in, accepted as a bug report or feature request? thanks

            Show
            arjenlentz Arjen Lentz added a comment - Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment can this request please get triaged and classified? as in, accepted as a bug report or feature request? thanks
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 682967

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 682967
            Hide
            elenst Elena Stepanova added a comment -

            >> Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment
            >> I'd reckon you can get duplicates, as the # you get at is no longer within the safe bounds that can't be touched by another master?

            I'm not sure how much danger is there in reality, since "If the value of auto_increment_offset is greater than that of auto_increment_increment, the value of auto_increment_offset is ignored." (http://dev.mysql.com/doc/refman/5.1/en/replication-options-master.html#sysvar_auto_increment_offset)

            Anyway, valid or not, it's a FR, not a bug, moving to Tasks.

            Show
            elenst Elena Stepanova added a comment - >> Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment >> I'd reckon you can get duplicates, as the # you get at is no longer within the safe bounds that can't be touched by another master? I'm not sure how much danger is there in reality, since "If the value of auto_increment_offset is greater than that of auto_increment_increment, the value of auto_increment_offset is ignored." ( http://dev.mysql.com/doc/refman/5.1/en/replication-options-master.html#sysvar_auto_increment_offset ) Anyway, valid or not, it's a FR, not a bug, moving to Tasks.

              People

              • Assignee:
                Unassigned
                Reporter:
                arjenlentz Arjen Lentz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: