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

I set the workdir, but the launch directory still generated the ignite directory. #11605

Open
1ssqq1lxr opened this issue Oct 18, 2024 · 4 comments

Comments

@1ssqq1lxr
Copy link

1ssqq1lxr commented Oct 18, 2024

I set the workdir, but the launch directory still generated the ignite directory.
`
IgniteConfiguration igniteConfiguration = new IgniteConfiguration(); igniteConfiguration.setAsyncCallbackPoolSize(Runtime.getRuntime().availableProcessors() / 2); igniteConfiguration.setWorkDirectory(System.getProperty("user.home") + "/data");

`
image

@1ssqq1lxr
Copy link
Author

Did the set workdir not take effect? What does this file mean?

@ptupitsyn
Copy link
Contributor

It works as expected for me with Ignite 2.16:

package org.example;

import org.apache.ignite.Ignition;
import org.apache.ignite.configuration.IgniteConfiguration;

public class Main {
    public static void main(String[] args) {
        IgniteConfiguration igniteConfiguration = new IgniteConfiguration();
        igniteConfiguration.setWorkDirectory(System.getProperty("user.home") + "/w/tests/ignite-work");

        Ignition.start(igniteConfiguration);
    }
}
 pavel > work > w > tests > ignite-work $ ls -la --recursive
.:
total 16
drwxrwxr-x  4 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 73 pavel pavel 4096 Oct 22 10:39 ..
drwxrwxr-x  4 pavel pavel 4096 Oct 22 10:39 db
drwxrwxr-x  2 pavel pavel 4096 Oct 22 10:39 diagnostic

./db:
total 16
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 0_0_0_0_0_0_0_1_lo_127_0_0_1_172_17_0_1_192_168_13_151_47500
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 marshaller

./db/0_0_0_0_0_0_0_1_lo_127_0_0_1_172_17_0_1_192_168_13_151_47500:
total 8
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..

./db/marshaller:
total 8
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..

./diagnostic:
total 8
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..

@1ssqq1lxr
Copy link
Author

It works as expected for me with Ignite 2.16:

package org.example;

import org.apache.ignite.Ignition;
import org.apache.ignite.configuration.IgniteConfiguration;

public class Main {
    public static void main(String[] args) {
        IgniteConfiguration igniteConfiguration = new IgniteConfiguration();
        igniteConfiguration.setWorkDirectory(System.getProperty("user.home") + "/w/tests/ignite-work");

        Ignition.start(igniteConfiguration);
    }
}
 pavel > work > w > tests > ignite-work $ ls -la --recursive
.:
total 16
drwxrwxr-x  4 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 73 pavel pavel 4096 Oct 22 10:39 ..
drwxrwxr-x  4 pavel pavel 4096 Oct 22 10:39 db
drwxrwxr-x  2 pavel pavel 4096 Oct 22 10:39 diagnostic

./db:
total 16
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 0_0_0_0_0_0_0_1_lo_127_0_0_1_172_17_0_1_192_168_13_151_47500
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 marshaller

./db/0_0_0_0_0_0_0_1_lo_127_0_0_1_172_17_0_1_192_168_13_151_47500:
total 8
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..

./db/marshaller:
total 8
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..

./diagnostic:
total 8
drwxrwxr-x 2 pavel pavel 4096 Oct 22 10:39 .
drwxrwxr-x 4 pavel pavel 4096 Oct 22 10:39 ..

I am also using version 2.16, JDK 21, and a cluster deployment method with a total of 3 nodes. The data mainly consists of some external data sources and some in memory data sources. No problem found

@1ssqq1lxr
Copy link
Author

image
The diagnostic directory I specified is empty, but there are data files in the ignote directory of the startup directory


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

No branches or pull requests

2 participants