High memory use / process hang indefinitely when token is invalid

Open
#179 4 comments 0 reactions 1 assignee View on GitHub

@susodapop is already working on this.

Since Jul 21, 2023.

Assessment

This issue has not been assessed yet.

Description

bug

See https://github.com/databricks/dbt-databricks/issues/388

It looks like the high memory use due to this library.

Reproduction

Setup env:

python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install memory_profiler matplotlib databricks-sql-connector

Use the sample script exactly as in the quickstart (https://github.com/databricks/databricks-sql-python#quickstart). Importantly, make sure the access token is not valid, so export something random like export DATABRICKS_TOKEN=whatever.

$ mprof run python quickstart.py
$ mrof plot

image

Dominant language
Python
Stars
233
Forks
152
Avg merge
21h 5m
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databricks/databricks-sql-python

All issues in databricks/databricks-sql-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.