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

dist: drop Java tools and change packaging just for cassandra-stress #384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

syuu1228
Copy link
Contributor

Since Java based tools are deprecated and now we only need cassandra-stress, change package name to "scylla-cassandra-stress" and drop deprecated tools from the package.

Closes #370

Architecture: all
Depends: %{product}-conf, %{product}-tools-core, ${misc:Depends}
Priority: optional
Copy link
Contributor

Choose a reason for hiding this comment

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

since you are specifying the "Priority" of this package. i'd suggest either do the same to ${product}-cassandra-stress, or just drop both of them. because, according to Debian Policy Manual,

extra
This priority is deprecated. Use the optional priority instead. This priority should be treated as equivalent to optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added Priority: optional to %{product}-cassandra-stress and %{product}-cassandra-stress.


Package: %{product}-cassandra-stress
Architecture: all
Depends: %{product}-conf, %{product}-cassandra-stress-core, ${misc:Depends}
Recommends: ntp | time-daemon
Copy link
Contributor

Choose a reason for hiding this comment

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

ntp and time-daemon were added in https://issues.apache.org/jira/browse/CASSANDRA-4606 and https://issues.apache.org/jira/browse/CASSANDRA-5816 respectively. they intended to run a cassandra cluster . but cassandra-stress as a client-side tool, it does not rely on a ntp or chrony service to operate. so i'd suggest take this opportunity to drop them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dropped.

Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

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

lgtm. just a couple nits. but they are not blockers.

@denesb
Copy link
Contributor

denesb commented Mar 22, 2024

I think scylladb/scylla-ccm#565 has to go in, before we can merge this.

@syuu1228 syuu1228 force-pushed the packaging_just_for_cassandra_stress branch from 448006b to e82d976 Compare March 25, 2024 08:39
@yaronkaikov
Copy link
Contributor

I think scylladb/scylla-ccm#565 has to go in, before we can merge this.

@denesb It was merged yesterday, can we merge this one?

@denesb
Copy link
Contributor

denesb commented Apr 3, 2024

I think scylladb/scylla-ccm#565 has to go in, before we can merge this.

@denesb It was merged yesterday, can we merge this one?

Not yet. The above PR was reduced in scope to just prepare ccm for the post JMX world. Throwing out all of Java on on go proved too big of a bite, to chew at once.

I just realized we also didn't yet finish scylladb/scylladb#14856, notably, there are still dtests around testing the java tools. These need to be either:

  • Dropped altogether, if we decided we don't want/need a native replacement for the tested tool (e.g. sstableutil).
  • Rewrite the test to test the native variant. We are still lacking native variant to some of these (small ones but still).

@syuu1228
Copy link
Contributor Author

Rebased, since it was conflicted.

@syuu1228
Copy link
Contributor Author

I need to modify Obsoletes/Breaks/Replaces on this patch, since I supposed next release version is 5.5 so I wrote something like Replaces: %{product}-tools (<< 5.5) in this patch, but now we already released 6.0.

Since Java based tools are deprecated and now we only need
cassandra-stress, change package name to "scylla-cassandra-stress" and
drop deprecated tools from the package.

Closes scylladb#370
@syuu1228 syuu1228 force-pushed the packaging_just_for_cassandra_stress branch from ee4654d to fbf55a3 Compare May 27, 2024 10:26
@syuu1228
Copy link
Contributor Author

Replaced << 5.5 with << 6.1.

@roydahan
Copy link
Collaborator

I think this one is not needed and this task #370 misled you.

We can/should keep the packaging as "scylla-tools-java" and c-s will be part of it.
There is no need to separate it now after we separated it from Scylla.

So, the packaging can remain as scylla-tools-java but just not a dependency of scylladb.

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.

Separate cassandra-stress to its own build, package, container
5 participants