GithubHelp home page GithubHelp logo

Comments (5)

mosabua avatar mosabua commented on June 7, 2024

So you are saying it should just send a warning rather than produce an error.

The problem with just sending a warning would be that you basically have properties in your config that might be silently ignored. That would probably be worse.

So I think the behavior in the spilling is actually the bug.

What you can do for now is just comment out the lines ...

from trino.

mosabua avatar mosabua commented on June 7, 2024

Just had a discussion with @martint and @dain -- essentially the behavior with fs.cache is correct, and the behavior with spill-enabled is a bug.

from trino.

Sartan4455 avatar Sartan4455 commented on June 7, 2024

I do no see what is wrong with conditional settings that are ignored? To me, that's not an uncommon thing for config files. Then again, neither is commented out options. :)

I did indeed comment them out because the server errored. But what's the point of = false if = false and comment out are the same?

To me these 4 are equivalent
cache.enabled = false
# cache.enabled = false
# cache.enabled = true
<nothing>

The only difference is the first and last ones causes the server to not start if other settings are set.
I was thinking no warnings or errors.
cache.enabled is there and true, check for required fields.
If not, ignore those required fields.
By commenting them out, that's a sign they are not needed. Then if they are removed potentially valuable information(the directory/size and other settings) could be lost. However I can see if they were old bad settings they'd might silently just work.

I am fine with either way really. It just seemed odd to me, thus the bug.

from trino.

wendigo avatar wendigo commented on June 7, 2024

Setting spill configuration when spill is disabled is a bug, not the other way around

from trino.

mosabua avatar mosabua commented on June 7, 2024

There is really no right answer with this .. and the Trino convention is as implemented for caching. I will therefore close this bug. If anyone wants to send a PR to fix the behavior for spilling .. that would be good but can be tracked separately.

from trino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.