FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: serialise native handle lifetime against concurrent close by andygrove · Pull Request #115 · apache/datafusion-java · GitHub

Repository navigation

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (6) .md  (3) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 4 additions & 1 deletion README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ try (var allocator = new RootAllocator();
}
```

`SessionContext` and `DataFrame` are `AutoCloseable` and not thread-safe.
`SessionContext` and `DataFrame` are `AutoCloseable` and safe to share
across threads: `close()` waits for calls already in flight to return
before releasing the native object, and a call that loses the race to a
`close()` throws `IllegalStateException`.

## Documentation

Expand Down
Loading
Loading

Back | FazBrowse Home | New Git URL