microsoft / spring-data-gremlin

We are in the process of deprecating Spring Data Gremlin. -- Provide generic annotation oriented programming form based on gremlin for graph database
Other
128 stars 76 forks source link

Getting java.nio.channels.ClosedChannelException after an idle period of time #252

Closed benoit-david closed 3 years ago

benoit-david commented 4 years ago

Expected Behavior

Current Behavior

After several refresh, the connections are recycled and everything is back on track.

Possible Solution

Steps to Reproduce (for bugs)

Snapshot Code for Reproduce

@Repository
public interface MyExampleRepository extends GremlinRepository<FooBar, String> {

}

Then calling a simple method like following would cause the issue after an idle period:

    Optional<FooBar> fooBar = myExampleRepo.findById(myId);
}

Branch

Your Environment

superrdean commented 4 years ago

Hi @benoit-david This is a new feature indeed, and in a short time, we may not consider adding it to our library. But PR is welcome. Sorry for the inconvenience.

chenrujun commented 3 years ago

Closing this issue. Because it's not active for a long time. If anyone have similar issue, please create issue in new repo: https://github.com/Azure/azure-sdk-for-java/issues