scylladb / scylla-tools-java

Apache Cassandra, supplying tools for Scylla
Apache License 2.0
53 stars 85 forks source link

install.sh: don't install nodetool #386

Closed denesb closed 7 months ago

denesb commented 7 months ago

Nodetool is now supplied by the scylla core package, the Java tools package shouldn't install it anymore. For now, leave it as a backup nodetool in /opt/scylladb/share/cassandra/bin, but don't symlink it into /usr/bin.

After merged, the submodule update for this PR should be incorporated into https://github.com/scylladb/scylladb/pull/18255.

mykaul commented 7 months ago

When we upgrade the package, will it remove the now defunct Java based nodetool? In the RPM post install script for example?

denesb commented 7 months ago

When we upgrade the package, will it remove the now defunct Java based nodetool? In the RPM post install script for example?

No, and we should. I don't know how to do it though. Will need some help on that.

denesb commented 7 months ago

BTW, the nodetool-wrapper removed by this PR didn't make it into any release yet, so no need to add rules to remove it. We should clear nodetool binary from /opt/shared/cassandra/bin.

denesb commented 7 months ago

v2:

@tchaikov after thinking about it, I don't think I need to do any transition work in the packaging of scylla-tools. Instead all the required changes have to go into the packaging of scylla-server, as it is the one which takes over files from this package, the reverse is not true.

tchaikov commented 7 months ago

v2:

  • Keep installing nodetool to /opt/scylladb/share/cassandra/bin/nodetool, but don't create a thunk/symlink in /usr/bin (in root install).

@tchaikov after thinking about it, I don't think I need to do any transition work in the packaging of scylla-tools. Instead all the required changes have to go into the packaging of scylla-server, as it is the one which takes over files from this package, the reverse is not true.

agreed, I was commenting on the wrong PR. All the comments should apply to the scylladb PR.

tchaikov commented 7 months ago

v2:

  • Keep installing nodetool to /opt/scylladb/share/cassandra/bin/nodetool, but don't create a thunk/symlink in /usr/bin (in root install).

@tchaikov after thinking about it, I don't think I need to do any transition work in the packaging of scylla-tools. Instead all the required changes have to go into the packaging of scylla-server, as it is the one which takes over files from this package, the reverse is not true.

agreed, I was commenting on the wrong PR. All the comments should apply to the scylladb PR.

for scylla-tools , it Breaks scylla-server (<<6.0)

i was wrong. the above comment still applies.

denesb commented 7 months ago

agreed, I was commenting on the wrong PR. All the comments should apply to the scylladb PR.

for scylla-tools , it Breaks scylla-server (<<6.0)

i was wrong. the above comment still applies.

I don't understand. Why is this package breaking scylla-server? Older versions of this package break the new version of scylla-server, but the new one doesn't, they have no common files.

tchaikov commented 7 months ago

sorry for the confusion, i meant: the new scylla-tools should not coexist with old scylla-server, that's why the new scylla-tools "breaks" the old scylla-server.

denesb commented 7 months ago

sorry for the confusion, i meant: the new scylla-tools should not coexist with old scylla-server, that's why the new scylla-tools "breaks" the old scylla-server.

Ok, makes sense.

denesb commented 7 months ago

@scylladb/scylla-maint please merge. Both this and its sister PR https://github.com/scylladb/scylladb/pull/18255 are ready for merge.

denesb commented 7 months ago

(remember to not create a submodule update after merging, the submodule update has to go into https://github.com/scylladb/scylladb/pull/18255, so it is enough to just merge this to scylla-tools-java:master).

denesb commented 7 months ago

@scylladb/scylla-maint ping.