smiklosovic commented on code in PR #2159:
URL: https://github.com/apache/cassandra/pull/2159#discussion_r1108299693
##########
src/java/org/apache/cassandra/triggers/CustomClassLoader.java:
##########
@@ -83,7 +82,7 @@ public void addClassPath(File dir)
logger.info("Loading new jar {}", inputJar.absolutePath());
try
{
- copy(inputJar.toPath(), out.toPath());
+ copy(inputJar.toPath(), out.toPath(),
StandardCopyOption.REPLACE_EXISTING);
Review Comment:
because `FileUtils.createTempFile("cassandra-", ".jar", lib);` creates an
empty file, copying here will fail because it will not copy it when the
destination exists. We need to replace it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]