Why does it take long time to close the connection?


(jasonInKorea) #1

Hi, everyone

I'm using elasticsearch to search massive data(twitter content).
I satisfied with it's speed.
But I'm why closing time is long.
Blew is code searching twitter data.

Client client = new TransportClient()
.addTransportAddress(new InetSocketTransportAddress("192.168.10.14", 9300));
...
client.close();

additional information
elasticsearch version : 0.16.1
hadoop version : 0.20.2
jdk : 1.6.0_25


(Shay Banon) #2

You mean closing the transport client takes a lot of time? It should be pretty fast.

On Wednesday, June 22, 2011 at 3:55 AM, jasonInKorea wrote:

Hi, everyone

I'm using elasticsearch to search massive data(twitter content).
I satisfied with it's speed.
But I'm why closing time is long.
Blew is code searching twitter data.

Client client = new TransportClient()
.addTransportAddress(new InetSocketTransportAddress("192.168.10.14",
9300));
...
client.close();

additional information
elasticsearch version : 0.16.1
hadoop version : 0.20.2
jdk : 1.6.0_25

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Why-does-it-take-long-time-to-close-the-connection-tp3093722p3093722.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com (http://Nabble.com).


(Karussell) #3

as shay mentioned: closing should be fast.

also have a look at my Open Twitter Search project:

http://jetsli.de/tweets/


(jasonInKorea) #4

this problem is solved. It's my mistake.
The reason is wrong way to use close method.
I'm sorry you to confuse.


(system) #5