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

why Does the bulk index not work? #9

Open
lester015 opened this issue Dec 22, 2016 · 1 comment
Open

why Does the bulk index not work? #9

lester015 opened this issue Dec 22, 2016 · 1 comment

Comments

@lester015
Copy link

lester015 commented Dec 22, 2016

Dear fhussonnois,
I using this IndexBatchBolt class which can realize bulk indexs into elasticsearch,the storm submit the topology was successfully, the storm UI as flows;

image

I see the work log and found the bulkUpdateIndexes method not executed successfully. the work-port.log as bellows:
2016-12-22T10:18:15.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] executeTickTuple is beginning ....source: __system:-1, stream: __tick, id: {}, [1]
2016-12-22T10:18:15.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] bulkUpdateIndexes is beginning ....
2016-12-22T10:18:15.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] queue size ....0
2016-12-22T10:18:15.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] inputs.size ...0
2016-12-22T10:18:16.710+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] executeTickTuple is beginning ....source: __system:-1, stream: __tick, id: {}, [1]
2016-12-22T10:18:16.710+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] bulkUpdateIndexes is beginning ....
2016-12-22T10:18:16.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] queue size ....0
2016-12-22T10:18:16.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] inputs.size ...0
2016-12-22T10:18:16.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] executeTickTuple is beginning ....source: __system:-1, stream: __tick, id: {}, [1]
2016-12-22T10:18:16.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] bulkUpdateIndexes is beginning ....
2016-12-22T10:18:16.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] queue size ....0
2016-12-22T10:18:16.711+0800 c.g.f.s.e.b.IndexBatchBolt [INFO] inputs.size ...0

why Does the inputs.size is zero?
List inputs = new ArrayList<>(queue.size());
LOGGER.info("queue size ...." + queue.size());

thanks,
Levi

@lester015
Copy link
Author

this is initiation,I found the this method:
protected void bulkUpdateIndexes( ) {
queue.drainTo(inputs);
LOGGER.info("queue drainTo ...." + inputs.size());
}

After the drainTo inputs, there is no records in the inputs. I don't know the reason!

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

1 participant