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

issues when using the benchmark for TVStore #1

Open
panagiotisl opened this issue Sep 10, 2024 · 1 comment
Open

issues when using the benchmark for TVStore #1

panagiotisl opened this issue Sep 10, 2024 · 1 comment

Comments

@panagiotisl
Copy link

Hello, I am trying to execute the benchmark for TVStore and I am facing multiple issues:

The most important one is the following exception:

Exception in thread "0-appender" java.lang.NullPointerException: Cannot invoke "org.apache.iotdb.db.service.IoTDB.insertBatch(org.apache.iotdb.db.qp.physical.crud.BatchInsertPlan)" because "this.tvstore" is null

It seems that this variable is never initialized:


    private IoTDB tvstore;
    
    public TVStore(String directory) {
        super(directory);
    }

I have made the changes below:

    public TVStore(String directory) {
        super(directory);
        this.tvstore = new IoTDB();
    }

Which lead to the following error:

Exception in thread "0-appender" java.lang.NoClassDefFoundError: Could not initialize class org.apache.iotdb.db.engine.StorageEngine

Can you please provide guidance on how to execute the benchmark for TVStore?

@SolomonAnn
Copy link
Collaborator

Hi, this was my mistake, thanks for pointing it out. I have fixed this bug and hope it will help you. The key point is that the initialization of TVStore should be:

public TVStore(String directory) {
    super(directory);
    this.tvstore = IoTDB.getInstance();
    this.tvstore.active();
}

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