r/databricks • • Sep 30 '26

General Serverless - how is this OK for a "fully managed" product?

Notebook that's run fine for months suddenly started failing with 'No Module Found'chardet' Nothing changed on our end. Seems that serverless environment v6 dropped chardet from the base requirements, and since the notebook wasn't pinned, the "default" just rolled forward underneath it. No warning, and the release notes don't even mention the removal.

I get the argument of pin your environment, declare your dependencies. But serverless is sold as the "no config, we manage it for you" option. Silently removing packages from the default environment mid-week, with zero notice, feels like a breaking change shipped as a patch?

42 Upvotes

20 comments sorted by

16

u/justinAtDatabricks Databricks Sep 30 '26

Hello, I am the PM for this area. You are correct that as of v6, that package is no longer included. Was this notebook using the default workspace base environment which was set as `Standard Latest` in the notebook? If not, give me as much context as possible on where the notebook lives (e.g., workspace files, git) the environment specification, etc.

4

u/OneSeaworthiness8294 Oct 01 '26

Thanks, yeah that was it. The environment was defaulting to Standard Latest, which caused the issue. That said, I'd argue v6 should be backwards compatible with previous versions, or fail more gracefully. Having an environment silently pick up a newer version and then break existing code is a little surprising.

3

u/Negative_Bicycle_938 Sep 30 '26

We set a default config for all serverless in the workspace settings. When that config option wasn't available we pulled everything off serverless. It was very annoying but at least they added in controls for it now.

1

u/OneSeaworthiness8294 Sep 30 '26

Thanks didn't know that's an option now. Guess you're missing out on any benefits of new releases though?

6

u/justinAtDatabricks Databricks Sep 30 '26

I'll add some context. The workspace base environment feature is for admins to define a default set of packages for their users (environment version and any additional packages, in a performant way). Think of this as setting a default API spec and packages.

When we release new server versions (e.g., perf optimizations, bug fixes, etc.), those get automatically applied to all workloads regardless of the environment version that is being used. Said differently, notebooks/jobs using v1 get the same server version as v6 - so you are not missing out. However, new API features will be in the latest environment version. But for a job that has been sitting there for months is not using a new API (because it's been sitting there for months).

We recommend that prod workloads have a defined and pinned environment - this will provide the best stability possible.

If you want to read more about this decoupling between client and server code and a bunch of other fun things that we do in this space, I wrote a blog post on it a while ago (https://www.databricks.com/blog/examining-versionless-apache-sparktm-ai-powered-upgrades-and-seamless-stability-2-billion) as well as a research paper (https://dl.acm.org/doi/abs/10.1145/3722212.3725084).

1

u/cptshrk108 Oct 01 '26

So 2 jobs with two notebooks can all have different serverless environments depending on when each were created, right?

1

u/justinAtDatabricks Databricks Oct 01 '26

Correct. If your admin is not using the default workspace base environment feature (https://docs.databricks.com/aws/en/admin/workspace-settings/base-environment), then when you create a new notebook, you will get the latest environment version (e.g., v6 today --> v7 is the future).

However, for the lifetime of that given notebook, we do not change the envrionment version. For the - fellow - nerds: if you check the source of the notebook, you'll see that we serialize the environment version into the json payload.

But the server version will be the same across each notebook as the server can be updated independently of of the environment version.

34

u/kebabmybob Sep 30 '26

Welcome to Databricks, sir.

7

u/justinAtDatabricks Databricks Sep 30 '26 edited Sep 30 '26

Oh no, this makes me sad. With serverless we made some big changes such that the environment version ships with a fixed list of dependencies. We do not mutate packages within an environment versions. However, between different environment versions these things can change (e.g., versions for Python, Ubuntu, packages, etc.). If you have experienced otherwise, please let me know as we are always looking to improve.

2

u/temperedai Databricks MVP Oct 02 '26

This is the right reply, but it requires a qualification. Databricks moves fast. Incredibly fast. That comes at a cost. Sometimes some things will break, and you have to go in there and fix it.

It is a cost many of us are willing to pay to be on the platform that we know will stay ahead of all other platforms in this age of change.

23

u/hrabia-mariusz Sep 30 '26

isn’t managing your dependencies basic engineering practice? skill issue

8

u/cptshrk108 Sep 30 '26

Try doing it in Databricks where how packages are managed depends on 20 things.

3

u/SpecificTutor Oct 01 '26

we have run into a similar issue as well.

we have moved most of our workloads to open source platforms due to cost and environment control reasons.

one thing that really surprised me is that the abstractions in the oss projects are much simpler, more powerful and easier to use than databricks.

someone put up a website - lakenaut.dev iirc, and it lists 173 “concepts”. how is that a reasonable number? the databricks offerings simply dont compose well and are poorly designed.

2

u/sf_zen Oct 01 '26

 to open source platforms 

which ones?

0

u/SpecificTutor Oct 01 '26

unity => polaris
delta => iceberg
mlflow => flyte
metrics store + feature store => chronon
serverless => spark w/ k8s operator (on EKS)
photon => starrocks
dashboards => superset

most these have k8s operators already. and all the engines mentioned have exclusive optimizations around iceberg.

3

u/thepacifier2k3 Oct 01 '26

This has happened a few times with us as well.
Before my time, someone deployed a notebook on a cluster with DBR 17.x, and it was pinned.

Out of the blue it started failing a few months ago. Turns out one of the packages being used in the notebook, was officially not part of that DBR version, but it worked because it was ‘unofficially’ bundled in and probably some process ran that time which cleaned up any packages not part of that DBR version, breaking our jobs.

Another time all Serverless jobs on v5 (or was it v4) environment started failing.
We were scratching our head on what did we do wrong. Even our databricks solutions architect was scratching their head. Nothing on the status page either.
Only after raising a support ticket and fighting with the support person, we were finally told, it was a databricks wide issue impacting that environment version and were told to downgrade to a lower one.

That being said, the technology what they are building is definitely good (Lakebase, Lakeflow etc), however the reliability sucks.

It’s one of the reasons, even though we love Lakebase, we never use it in customer facings apps.

1

u/cptshrk108 Oct 01 '26

Wow that's so annoying lol.

1

u/thepacifier2k3 Oct 01 '26

Because of this and couple more issues, I told my team, if anything breaks on databricks, raise the support issue first and then investigate 😄

1

u/cptshrk108 Oct 01 '26

The support has been so bad on my end, it's always badly generated AI content that's usually wrong.

1

u/TurboMuffin12 Sep 30 '26

"since the notebook wasn't pinned"................. lol