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

PHOENIX-1674 Snapshot isolation transaction support through Tephra #129

Closed
wants to merge 0 commits into from

Conversation

twdsilva
Copy link
Contributor

@JamesRTaylor @samarthjain

PR will code review feedback.

// recreate index table
admin.createTable(indexTableDesc);
do {
Thread.sleep(15 * 1000); // sleep 15 secs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this sleep helping? Is it account for the async nature of the API? FWIW, the admin.createTable() already retries before it throws TableNotFoundException. If the number of retries is too small then you could possibly increasing the number of retries too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After we re-create the index htable, we wait till the index become ACTIVE again, not sure what process is responsible for enable/disabling the index state.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sleep was already there, though, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it was.

@JamesRTaylor
Copy link
Contributor

I can't find PhoenixTransactionalIndexer. Did your latest pull forget to add new files? Or maybe I'm just missing it? FYI, I remember there are a few bits of commented out code that should be removed from that file. Everything else looks good to me - except for a few minor comments above.

userName = connInfo.getPrincipal();
metaData = newEmptyMetaData();

// Use KeyValueBuilder that builds real KeyValues, as our test utils require this
this.kvBuilder = GenericKeyValueBuilder.INSTANCE;
// TOOD: copy/paste from ConnectionQueryServicesImpl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this TODO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants