Skip to content

v0.2 - python 3 compatibility - #30

Open
sjhewitt wants to merge 71 commits into
CurleySamuel:masterfrom
Flipboard:master
Open

sjhewitt wants to merge 71 commits into
CurleySamuel:masterfrom
Flipboard:master

Conversation

@sjhewitt

Copy link
Copy Markdown

No description provided.

@DonDebonair

Copy link
Copy Markdown

Wow this is awesome! @CurleySamuel are you going to merge this soon? If new life is breathed into the library, I'm willing to contribute as well.

@DonDebonair

Copy link
Copy Markdown

Is this going to be merged in the near future? I would be very interested in using PyBase

@sjhewitt

sjhewitt commented Mar 5, 2019

Copy link
Copy Markdown
Author

@dandydev - feel free to use the https://github.com/Flipboard/PyBase fork - We're using it in production so will be keeping it up to date. I'll happily review PRs if you have them

@DonDebonair

Copy link
Copy Markdown

@sjhewitt that's great! Any plans to publish the package on PyPI, with proper versioning etc.? Maybe as pybasenext or something

ianbishop and others added 30 commits October 19, 2021 08:45
Add zk watch for master connection
Make py2 compatible plus remove some dead code
* use native str for region_client exceptions

* minor cleanup

* try enforcing unicode elsewhere

* test log

* use unicode host

* remove test log, fix last flake8 warning
…lExecutor

using a ThreadPoolExecutor to match socket pool
get() and _mutate() retried by calling themselves, so every failed attempt
kept its frame, row values and built request alive. A row that never
succeeded allocated ~3MB per frame and OOM-killed the container before
Python's recursion limit was reached. Retry in a bounded loop and raise the
last exception instead.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Storing the exception in a local kept its traceback, and so the frame
holding the row values, alive through a cycle the refcounter cannot break.
That retained the payload after a successful retry until cyclic gc ran.
Re-raise on the final attempt instead, and cover the retention with a test.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Bound HBase request retries instead of recursing
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.

9 participants