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

Snap 3061 #1352

Merged
merged 6 commits into from
Jul 27, 2019
Merged

Snap 3061 #1352

merged 6 commits into from
Jul 27, 2019

Conversation

ahshahid
Copy link
Contributor

@ahshahid ahshahid commented Jul 11, 2019

The column table insert code takes a diskstore level read lock in the begin transaction & releases it in the commit or rollback.
The idea is that if the tx thread finds, that the standby oplog is in use, an InsufficientDiskSpaceException is thrown at oplog level to indicate the transaction to be rolledback. Also at oplog level when the oplog is switched to standby oplog, an asynchronous thread is started to shut the down the diskstore. This asynch thread seeks to take a write lock on the diskstore. The idea is that the diskstore should not be shut so long as any active transactions are not rolled back. Once the transaction is ended, the diskstore read lock is released, allowing the asynch diskstore shutdown thread to close the diskstore & regions using that diskstore.

Patch testing

Ran the store:check target.

Other PRs

store-change

@ahshahid
Copy link
Contributor Author

For some reason, I am getting Exception with this change. The batch update fails. Not sure what wrong I am doing , as I am taking the lock in the begin tx part & releasing on commit/rollback

…ent in ColumnarStore is in lower case, causing region not found exception. Fix is to upper case the table name. Not debugged why for some partitions the table name is coming in lower case
@ahshahid
Copy link
Contributor Author

Looks like for some partition task, the table name is coming in lower case, causing the problem.

@ahshahid ahshahid merged commit b8f1d29 into master Jul 27, 2019
@ahshahid ahshahid deleted the SNAP-3061 branch July 27, 2019 00:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants