Skip to content

Fix for unimplemented flush() on partitioned-PostGIS feature writers - #10959

Open
kylestamper wants to merge 1 commit into
locationtech:mainfrom
kylestamper:main
Open

kylestamper wants to merge 1 commit into
locationtech:mainfrom
kylestamper:main

Conversation

@kylestamper

Copy link
Copy Markdown
Contributor

Encountered this issue in the latest SNAPSHOT release:

The partitioned-PostGIS datastore wraps GeoTools JDBC feature writers to map feature IDs and user-facing schemas, but its FidFeatureWriter and MappedFeatureWriter wrappers do not preserve the delegate’s Flushable interface.

The underlying JDBCInsertFeatureWriter buffers inserts until flush() or close(). Since callers cannot see the wrapped writer as Flushable, buffered writes may remain invisible until the writer is closed, even after the enclosing transaction is committed.

The fix makes both wrappers implement Flushable and delegate flush() to their underlying writer. A regression test verifies that a buffered append is visible after flush() and transaction commit without closing the writer.

{"fundingSource": "41601", "team": "CTO.PLAT.BE.LS", "fshGit": "b9eb7c48", "fshDocker": "sha256:f607ae92"}
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

Successfully merging this pull request may close these issues.

1 participant