8000 Support cassandra.directory and cassandra.branch props for CCMBridge. by tolbertam · Pull Request #454 · apache/cassandra-java-driver · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@tolbertam
Copy link
Contributor

As I was testing #453, I enhanced CCMBridge in such a way that I could use a custom install, figured I'd create a PR for this.

Adds optional cassandra.directory and cassandra.branch properties as
a means of running cassandra with CCM beyond deployed cassandra
versions.

The order of precedence for what is used is:

  1. cassandra.directory
  2. cassandra.branch
  3. cassandra.version

cassandra.version is still required for @CassandraVersion annotation
checks for tests, but won't be used to launch CCM if either
cassandra.directory or cassandra.branch is present.

@adutra
Copy link
Contributor
adutra commented Sep 16, 2015

That's very useful! So far I've been using symlinks, e.g.:

ln -s ~/path/to/cassandra ~/.ccm/repository/3.0.0-rc1

Where ~/path/to/cassandra is a local git branch checked out and compiled with ant clean build.

Adds optional cassandra.directory and cassandra.branch properties as
a means of running cassandra with CCM beyond deployed cassandra
versions.

The order of precedence for what is used is:

1. cassandra.directory
2. cassandra.branch
3. cassandra.version

cassandra.version is still required for @CassandraVersion annotation
checks for tests, but won't be used to launch CCM if either
cassandra.directory or cassandra.branch is present.
olim7t added a commit that referenced this pull request Sep 29, 2015
Support cassandra.directory and cassandra.branch props for CCMBridge.
@olim7t olim7t merged commit f188871 into 2.0 Sep 29, 2015
@olim7t olim7t deleted the ccm_branch_dir branch September 29, 2015 23:42
@olim7t
Copy link
Contributor
olim7t commented Sep 29, 2015

Nice. You could already specify a local directory before, but I like having an explicit property for it. Maybe we should also support the -v github: syntax.

@tolbertam
Copy link
Contributor Author

Ah, I wasn't even aware you could do that, nice! Could extend cassandra.branch to support 'github:' syntax. I'll open up a separate PR for that.

Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
If there is no immediately suitable codec can be found and the request is to decode as a String, then fallback to using the VARCHAR codec.

[apache#454][apache#429]
Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
Automatically register an EnumStringCodec and an EnumStringArrayCodec for enums.

[apache#454][resolves apache#429]
Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
Refactor enum to string codecs into StringDecoder and StringArrayDecoder as fallback codecs if no other codec could be found. Allow reuse of ArrayCodec.

[apache#429][resolves apache#454]

Signed-off-by: Mark Paluch <mpaluch@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0