Skip to content
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

Refactor loop in test harness w.r.t. Catalog Version Mismatch #8089

Open
tedyu opened this issue Apr 19, 2021 · 0 comments
Open

Refactor loop in test harness w.r.t. Catalog Version Mismatch #8089

tedyu opened this issue Apr 19, 2021 · 0 comments

Comments

@tedyu
Copy link
Contributor

tedyu commented Apr 19, 2021

In test code, we have

      for (int i = 0; i < 2; i++) {
        try {
...
        } catch (Exception e) {
          if (e.toString().contains("Catalog Version Mismatch: A DDL occurred while processing")) {
            continue;
          } else {
            throw e;
          }
        }

As @bmatican pointed out,

there's no guarantee that the 2nd iteration will actually work

  ie: if the master takes a couple of seconds to initialize, in say TSAN, then we'll be failing the scoped leader lock check over and over in that period

This issue is to refactor such formation to increase the retry count while limiting the total duration.

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

No branches or pull requests

1 participant