Comments (5)
Similarly, if you put an old app.config, but not vm.args file it will crash. The conditional use of old-style v. cuttlefish is pinned on the existence on the app.config, it should maybe have another level to the case to separate out the vm.args.
from cuttlefish.
yeah, the heart of the problem is in case filelib:is_file(app.config)
I've been going back and forth on the right way to make this choice. Here's where I'm at now:
If both app.config and vm.args exist in platform_etc_dir, skip the fish
If a .conf file is passed into the escript, and it exists, but either (or both) of the app.config and vm.args are missing, generate new vm.args and app.config, but only start riak with the generated version if the legacy one doesn't exist?
make sense? basically, if we're generating one, we're generating both, but we don't have actually use both.
from cuttlefish.
I think if the app.config is present we should always use it, with warnings / messages printed.
from cuttlefish.
@jaredmorrow yeah, that's what I'm saying, the words just aren't coming out right...
If there's an app.config, use it. If there's a vm.args use it. If either is missing, generate both, but only use the generated one for the one that's missing. If both are missing, use both generated. clearer?
from cuttlefish.
Yes, +1
from cuttlefish.
Related Issues (20)
- [docs] db_path variable in Cuttlefish-for-non-node_package-users [JIRA: RIAK-2037]
- Cannot compile with Erlang version 18 [JIRA: RIAK-2055] HOT 8
- crash on riak cs advanced.conf [JIRA: RIAK-2216] HOT 3
- Documentation [JIRA: RIAK-2250] HOT 1
- Relx support [JIRA: RIAK-2251] HOT 4
- Lager 3? [JIRA: RIAK-2309] HOT 2
- Quoted IPv6 address support in address:port pairs [JIRA: RIAK-2462]
- "merge" setting for mappings is broken [JIRA: RIAK-2549]
- Make erlang_vm.schema optional [JIRA: RIAK-2630]
- exception error: no function clause matching lists:unzip/3 [JIRA: RIAK-2783] HOT 1
- Support for sections in .conf [JIRA: RIAK-3054] HOT 3
- Nested config hard to get [JIRA: RIAK-3125]
- Compiling with Elixir fails [JIRA: RIAK-3371] HOT 8
- compile error [JIRA: RIAK-3413]
- Compiling on Erlang 20 HOT 3
- Old values that no longer make sense HOT 3
- No source code for latest cuttlefish version on hex.pm HOT 1
- Show an error message
- Is this repository deprecated? HOT 2
- Can't escape "#" in config file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuttlefish.