Skip to content

OpenSharing Server 0.1.1

Latest

Choose a tag to compare

@littlegrasscao littlegrasscao released this 16 Nov 20:00
· 2 commits to main since this release
84eca9f

A follow-up release of the OpenSharing reference server. Recipient responses and errors now match what Delta Sharing clients expect, the database schema moves to Flyway, and catalog admins can take over stranded shares and recipients.

Requires Java 17 or later. Published to Maven Central as io.opensharing:opensharing-server-core:0.1.1 and io.opensharing:opensharing-server:0.1.1.

Recipient protocol

• Delta Kernel's errors for a version or timestamp it can't serve, or a broken log, are answered with 400 BAD_REQUEST and Kernel's message (#195)..
• Change data reads that reach a version without change data get 403 PERMISSION_DENIED (#196)..
• A failure after a response has begun ends the stream with an error, through endStreamAction or a final non-JSON line (#196)..
• Clearer errors for conflicting or invalid version, timestamp and boundary parameters (#196)..
• metaData carries version only where the protocol defines it, and size/numFiles come from the exact version's checksum (#193)..
• cdc actions carry dataChange: false (#192)..
• Column-mapped tables are refused to clients that don't advertise columnmapping (#197)..

The Delta Sharing Scala, Spark and Python client integration suites pass against this release.

Provider API

• Catalog admins can transfer a share or recipient to another user with ownerId on PATCH /shares/{share} and PATCH /recipients/{recipient} (#167, #173). UserContext gains an admin flag, and the local catalog adds adminUserIds..

Embedding and persistence

• The standalone server creates and migrates the schema with Flyway on startup (#164). Hosts that supply their own Transactions create the tables in their own migrations, exactly as OpenSharing's define them. Entity ids use the database's native UUID type, enum columns are plain varchar, and constraints are named (#163, #165, #168, #169). A persistent database created by 0.1.0 can't be migrated in place and has to be recreated..
• OpenSharing.Builder takes the public URL and base paths once (#184):.
◦ publicUrl is required..
◦ OpenSharingRecipientApi.mount takes (host, openSharing)..
◦ RecipientService methods no longer take a URL..

Dependencies

• Flyway 13.10.3 (#164)..
• AWS SDK 2.54.18 and commons-lang3 3.19.0; the unused sts module is dropped (#160)..
• Logback is the only logging backend (#166)..
• Unused WASB and Jetty 9.4 jars are dropped from hadoop-azure (#183)..

Full changelog: server-v0.1.0...server-v0.1.1