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

Increase wait after a DDL to account for idle safe-time propagation period

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • Release Notes Required

    Description

      For an RO transaction to work correctly (that is, the same query returns the same result), an RO transaction sometimes needs to wait. In most scenarios, if the readTimestamp is 'now', it ruins the performance (as such transaction have to wait almost always, up to idle safe-time propagation period). To avoid this, readTimestamp is usually chosen in the past as 'now minus idle safe-time propagation period'.

      But if a DDL has just happened, then looking in the past might look past the DDL, so a table might not be found, or a stale version of it might be seen by the query.

      The 'correct' way to solve this is described in IGNITE-20378, but it will take some time to implement.

      We need the RO-related optimization right now, so we could just increase the after-DDL wait by the same idle safe-time propagation period as a workaround.

      We should also make this period configurable to have ability to make it lower in our tests (so that they don't be too slow waiting for a second after each table creation).

      Attachments

        Issue Links

          Activity

            People

              rpuch Roman Puchkovskiy
              rpuch Roman Puchkovskiy
              Ivan Bessonov Ivan Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h