我正在CuratorFrameworkFactory.newClient方法的幫助下創建一個Empheral節點,該方法需要znodes地址,sessiontimeoutinms,connectiontimeoutinms,Retry)。我將5 * 1000作爲sessiontimeoutinms和15 * 1000作爲connectiontimeoutinms進行傳遞。這個方法能夠在我的zookeeper中創建EPHEMERAL節點,但是這個EPHEMERAL節點在應用程序運行之前不會被刪除。爲什麼在sessiontimeout值之後沒有從zookeeper中刪除外圍節點
爲什麼會發生這種情況,因爲sessiontimeout是5秒。