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
ISPN-7530 InfinispanStoreRocksDBIT leaves files in the current directory #4902
ISPN-7530 InfinispanStoreRocksDBIT leaves files in the current directory #4902
Conversation
</property> | ||
<!-- To debug the Arquillian managed application server: --> | ||
<!-- property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -Xmx512m -Dorg.jboss.remoting-jmx.timeout=300 -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property--> | ||
<!--<property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=8000,server=n,suspend=y -Dorg.jboss.remoting-jmx.timeout=300--> | ||
<!-- -Djboss.socket.binding.port-offset=100 -Xmx512m -Djava.net.preferIPv4Stack=true--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes in this file could be probably removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really want to keep this in because the existing commented javaVmArguments
were incomplete, and it was frustrating when I enabled debugging and the test wouldn't run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, could you please add a comment with those switches at the beginning of the file? Let's now throw rubbish all around :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slaskawi I could remove the comment altogether, but I would definitely not leave the comment as it was before...
builder.persistence() | ||
.addStore(RocksDBStoreConfigurationBuilder.class) | ||
.location(tmpDirectory) | ||
.expiredLocation(tmpDirectory + "-expired"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good one! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused... shouldn't we use expireDir
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think RocksDB needs both those directories (but I might be wrong). Maybe @tristantarrant would know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok but here you are using
tmpDirectory(this.getClass()) + "-expired"
and in the beginning you are creating
private static String expiredDir = tmpDirectory(InfinispanStoreRocksDBIT.class) + File.separator + "rocksdb-expiredtestcache";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed @pruivo
3d5e190
to
3ab4b24
Compare
Updated to fix |
75c04ec
to
646b08b
Compare
646b08b
to
bcc5778
Compare
</property> | ||
<!-- To debug the Arquillian managed application server: --> | ||
<!-- property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -Xmx512m -Dorg.jboss.remoting-jmx.timeout=300 -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property--> | ||
<!--<property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=8000,server=n,suspend=y -Dorg.jboss.remoting-jmx.timeout=300--> | ||
<!-- -Djboss.socket.binding.port-offset=100 -Xmx512m -Djava.net.preferIPv4Stack=true--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, could you please add a comment with those switches at the beginning of the file? Let's now throw rubbish all around :D
builder.persistence() | ||
.addStore(RocksDBStoreConfigurationBuilder.class) | ||
.location(tmpDirectory) | ||
.expiredLocation(tmpDirectory + "-expired"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think RocksDB needs both those directories (but I might be wrong). Maybe @tristantarrant would know.
dd278d7
to
65c485e
Compare
@danberindei and @slaskawi 👍 looks good to me. |
65c485e
to
f88ed8e
Compare
f88ed8e
to
a93972a
Compare
https://issues.jboss.org/browse/ISPN-7530