Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEODE-9869: Remove geode-for-redis properties from gfsh options #7205

Merged
merged 7 commits into from Jan 10, 2022

Conversation

ringles
Copy link
Contributor

@ringles ringles commented Dec 16, 2021

Remove the GFSH options related to geode-for-redis and update docs, examples, and tests to set such options via Java properties.

@ringles ringles changed the title Remove geode-for-redis properties from gfsh options GEODE-9869: Remove geode-for-redis properties from gfsh options Dec 16, 2021
Copy link
Contributor

@davebarnes97 davebarnes97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc changes LGTM (geode_for_redis.html.md.erb, README.md

--J=-Dgemfire.geode-for-redis-enabled=true \
--J=-Dgemfire.geode-for-redis-port=<geodeForRedisPort> \
--J=-Dgemfire.geode-for-redis-bind-address=<geodeForRedisBindAddress> \
--J=-Dgemfire.geode-for-redis-password=<geodeForRedisPassword>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't seem to be a geode-for-redis-password property in the codebase, so references to this should probably be removed from docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, we switched to using a SecurityManager!

```

If any of the options `geode-for-redis-bind-address`, `geode-for-redis-password`, or `geode-for-redis-port`
are included, a <%=vars.product_name%> server with <%=vars.product_name%> for Redis will be started.
If the option `geode-for-redis-enabled`, is set to `true`, a <%=vars.product_name%> server with
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is wrong to call "geode-for-redis-enabled" an "option". It used to be a gfsh option but is no longer. Consider replacing "option" with "gemfire property".

```

If any of the options `geode-for-redis-bind-address`, `geode-for-redis-username`, or `geode-for-redis-port` are included, a Geode server with Geode for Redis will be started.
If the option `geode-for-redis-enabled` is set to `true`, a Geode server with Geode for Redis will be started.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

option once again

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this needs a fix. Must be explicitly enabled now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except we're getting rid of the Redis README.md now, I think.

Copy link
Contributor

@onichols-pivotal onichols-pivotal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still hoping someday execute_redis_tests.sh will be wrapped in gradle so we don't need to touch the CI framework everytime something in redis changes.

@@ -501,12 +501,6 @@ to true to enable <%=vars.product_name%> for Redis.</td>
<td>false</td>
</tr>
<tr>
<td>geode-for-redis-password</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove this one but not the bind address and username?

--geode-for-redis-password=<geodeForRedisPassword>
--J=-Dgemfire.geode-for-redis-enabled=true \
--J=-Dgemfire.geode-for-redis-port=<geodeForRedisPort> \
--J=-Dgemfire.geode-for-redis-bind-address=<geodeForRedisBindAddress>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do these have to be gemfire. or could they be geode.? just since we generally avoid referencing gemfire in geode

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it makes sense since other properties use that format, I just wanted us to think about if that is the right approach or if we're following a pattern that doesn't make sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was discussed and 'gemfire.' won, mostly on 'principle of least surprise' grounds.

Copy link
Contributor

@jdeppe-pivotal jdeppe-pivotal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some arbitrary references to --geode-for-redis in HyphenFormatterTest in the gfsh module. Could you also remove or change these please.

@ringles
Copy link
Contributor Author

ringles commented Jan 10, 2022

Addressed!

@ringles ringles merged commit e7ca26f into develop Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
redis Issues related to the geode-for-redis module
Projects
None yet
9 participants