Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-20106

Check that client schema version matches server-side schema version

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • None

    Description

      As per https://cwiki.apache.org/confluence/display/IGNITE/IEP-110%3A+Schema+synchronization%3A+basic+schema+changes#IEP110:Schemasynchronization:basicschemachanges-Overallflow , the schema version that the client sends with each request should be validated against the server-side schema version corresponding to the given table in the tx. If it does not match, SCHEMA_VERSION_MISMATCH_ERR should be sent to the client along with the correct server-side schema version.

      The check should be done on a tx coordinator. Also, the coordinator must check that all the tuples sent by the client (in the same request) are encoded using the same schema version.

      The IEP defines baseTs as tableEnlistTs(tx, table). On the first iteration, we should implement a simpler way to calculate baseTs (max(beginTs, tableCreationTs) to allow created tables to 'appear' in a transaction or even simply beginTs). The full-blown baseTs calculation will be implemented in IGNITE-20108. It makes sense to do it later because it requires substantially more work to only support a not-to-common use-case (ALTER TABLEs after a transaction started, but before it enlisted the table).

      Attachments

        Issue Links

          Activity

            People

              rpuch Roman Puchkovskiy
              rpuch Roman Puchkovskiy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: