Skip to content

Naksha_66: fix PG_Crone for RDS - #701

Closed
Marcin-Here wants to merge 17 commits into
v3from
NAKSHA-66_adjust_PG_Crone_for_RDS
Closed

Marcin-Here wants to merge 17 commits into
v3from
NAKSHA-66_adjust_PG_Crone_for_RDS

Conversation

@Marcin-Here

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Code Coverage

Overall Project 63.44% -0.66% 🍏
Files changed 0.52% 🍏

File Coverage
NHSpaceStorageReader.java 76.09% 🍏
PgConfig.kt 75.06% 🍏
PgCron.kt 0% -62.97% 🍏

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Code Coverage

Overall Project 63.44% -0.66% 🍏
Files changed 0.52% 🍏

File Coverage
NakshaVersion.kt 90.36% 🍏
NHSpaceStorageReader.java 76.09% 🍏
PgConfig.kt 75.06% 🍏
PgCron.kt 0% -62.97% 🍏

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Code Coverage

Overall Project 63.44% -0.66% 🍏
Files changed 0.52% 🍏

File Coverage
NakshaVersion.kt 90.36% 🍏
NHSpaceStorageReader.java 76.09% 🍏
PgConfig.kt 75.06% 🍏
PgCron.kt 0% -62.97% 🍏

Consolidate the JBON, geometry, and model libraries into lib-base and retire the JBON1 runtime. Encode headerless JBON2 feature objects with optional local books, and separate row preparation from serialization.

Persist immutable global books and resolve existing rows by their stored book number. Publish cached books after commit and retain the PostgreSQL UNNEST write path.

Keep lib-auth separate via the opaque IUserRightsMatrix marker. Cover authorization, codec compatibility across JVM and Node, and cold-cache global-book reads in PostgreSQL.
Train bounded prefix and structured entries, short-circuit impossible exact matches, and avoid unnecessary per-feature string interning and proxy allocation.

Expose per-encode and per-session structure and GZIP options without changing defaults. Keep the optimistic UNNEST path focused on physical columns and preserve the existing conflict fallback.
Measure prepared UNNEST writes, offline encoding, history allocation, and held-out layer sizes. Compare client GZIP and LZ4 on disposable EXTERNAL bytea columns without adding an LZ4 production wire format.
Keep preparation, ordering, and SQL on the write session while automatically splitting eligible, bounded JVM payload batches. Preserve serial fallback for processors and shared feature graphs.

Keep feature bytea external, make compression optional for other binary members, and default write sessions to size-first client GZIP. Cover retention, column compression, rollback, and serial-versus-automatic writer throughput.
Separate eager and adaptive scheduling, sample eight encoder calls, and reuse results before choosing balanced CPU chunks. Keep session-aware work on the caller.

Walk backing maps and lists without boxing proxies. Treat disjoint feature graphs as a caller contract instead of scanning each write window.
Add a typed SQL wrapper and Kotlin/JS PLV8 decoder that reconstructs features using the collection layout and stored global book. Preserve exact int64 and JSONB numbers through the SQL boundary.
Expose documented builder budgets and require shared configuration identity for merges. Retire the unused primitive-key Map tag and add JBON2 and JSON round-trip coverage.

Upgrade Kotlin to 2.4.21 and record the reproduced Kotlin/JS fractional-number issue.
Classify JavaScript numeric values before Kotlin primitive checks. Use lossless float widths, retain negative zero, and reject BigInt outside signed Int64 without changing JVM encoding.
Persist gbfn only when a global reference is emitted. Enable prefix sampling by default and verify array order, book isolation, and readback. Correct the cron fixture URI and document the PostgreSQL row layout in lib-psql.
@Marcin-Here Marcin-Here closed this Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Code Coverage

Overall Project 64.64% -0.79% 🍏
Files changed 85.65% 🍏

File Coverage
BookType.kt 100% 🍏
LibJbon2.kt 100% 🍏
MemberBookLayout.kt 100% 🍏
JbRawValue.kt 100% 🍏
JbMemberReferencePlan.kt 100% 🍏
JbConstStrings.kt 100% 🍏
JbNumberEncoding.kt 100% 🍏
StandardMembers.kt 100% 🍏
NakshaAdminCollections.kt 100% 🍏
XyzIndices.kt 100% 🍏
TypedMember.kt 100% 🍏
NakshaAdminCatalogs.kt 100% 🍏
NakshaTxCollectionById.kt 100% 🍏
NakshaCatalogCollection.kt 100% 🍏
StandardIndices.kt 100% 🍏
NakshaTxCatalogByName.kt 100% 🍏
NakshaAdminTransactions.kt 100% 🍏
NakshaAdminBooks.kt 100% 🍏
NakshaFeatureList.kt 100% 🍏
MomMetaNs.kt 100% 🍏
SpLineString.kt 100% 🍏
SpPolygon.kt 100% 🍏
SpFeatureList.kt 100% 🍏
SpTransformationList.kt 100% 🍏
SpTransformation.kt 100% 🍏
OpList.kt 100% 🍏
IsFalse.kt 100% 🍏
IsTrue.kt 100% 🍏
WriteList.kt 100% 🍏
POr.kt 100% 🍏
TagAnd.kt 100% 🍏
TagValueIsNull.kt 100% 🍏
TagOr.kt 100% 🍏
SpOr.kt 100% 🍏
TagExists.kt 100% 🍏
PAnd.kt 100% 🍏
LibModel.kt 100% 🍏
NewTuple.kt 100% 🍏
XyzMembers.kt 99.74% 🍏
RandomFeatures.kt 99.15% -0.04% 🍏
JbBookBuilderConfig.kt 98.71% -1.29% 🍏
HereTile.kt 97.64% 🍏
UserRightsMatrix.kt 96.82% 🍏
AnyOp.kt 96.43% 🍏
MemberValuesBook.kt 96.21% -1.42% 🍏
TupleRowData.kt 95.56% -4.44% 🍏
Lte.kt 95.35% 🍏
Gte.kt 95.35% 🍏
Lt.kt 95.35% 🍏
Gt.kt 95.35% 🍏
TagNormalizer.kt 95.33% 🍏
DoubleOp.kt 95.31% 🍏
Equals.kt 95.24% 🍏
Not.kt 94.29% 🍏
CompiledMemberLayout.kt 93.97% -1.66% 🍏
JbEncoding.kt 93.93% -6.07% 🍏
TagNot.kt 93.75% 🍏
PNot.kt 93.75% 🍏
PQuery.kt 93.55% 🍏
JbMemberReferenceBuilder.kt 93.52% 🍏
TagSetContains.kt 93.33% 🍏
SpPoint.kt 92.68% 🍏
StreamException.kt 92.5% 🍏
DataEncoding.kt 92.38% -0.95% 🍏
NakshaIdType.kt 92.06% 🍏
SpBuffer.kt 91.84% 🍏
NakshaAdmin.kt 91.74% 🍏
MemberRetain.kt 91.67% 🍏
StoreMode.kt 91.67% 🍏
TagGt.kt 91.67% 🍏
TagGte.kt 91.67% 🍏
TagLt.kt 91.67% 🍏
TagLte.kt 91.67% 🍏
SortOrder.kt 91.67% 🍏
NakshaProperties.kt 91.6% 🍏
TagEquals.kt 91.55% 🍏
TagMapHasKey.kt 91.3% 🍏
StartsWith.kt 91.3% 🍏
TagIsNull.kt 91.3% 🍏
StringOp.kt 91.18% 🍏
NakshaVersion.kt 90.36% 🍏
JbBookBuilder.kt 90.12% -9.88% 🍏
JbValueMatch.kt 89.87% -10.13% 🍏
MomReviewState.kt 89.34% 🍏
TagStartsWith.kt 89.33% 🍏
TagMatches.kt 89.33% 🍏
TagValueIsString.kt 89.19% 🍏
TagValueMatches.kt 89.19% 🍏
ErrorResponse.kt 88.31% 🍏
Stream.kt 87.5% 🍏
TagValueIsBool.kt 87.5% 🍏
JbBook.kt 87.34% -12.66% 🍏
PropertyFilter.kt 86.76% 🍏
TagValueIsDouble.kt 86.76% 🍏
AbstractStorage.kt 86.44% 🍏
SpIntersects.kt 86.3% 🍏
XyzProcessors.kt 86.22% 🍏
StreamRequest.kt 86.03% 🍏
TagQuery.kt 85.71% 🍏
JbEncoder.kt 85.67% -3.88% 🍏
NakshaError.kt 83.82% 🍏
WriteOp.kt 82.95% 🍏
TagMapHasAllOf.kt 82.86% 🍏
TagMapHasAnyOf.kt 82.86% 🍏
TagListContainsAllOf.kt 82.61% 🍏
TagListContainsAnyOf.kt 82.61% 🍏
IsAnyOf.kt 82.61% 🍏
Write.kt 82.26% 🍏
Intersects.kt 82.18% 🍏
IndexList.kt 82.05% 🍏
MomChangeState.kt 81.13% 🍏
SessionOptions.kt 79.29% -10.48% 🍏
And.kt 78.95% 🍏
Or.kt 78.95% 🍏
TupleMemberReferenceLayout.kt 78.49% 🍏
JbDecoder.kt 78.44% -21.56% 🍏
CustomIndexMappingUtil.kt 78.2% 🍏
StreamTuple.kt 77.03% 🍏
NakshaFeature.kt 76.99% 🍏
JsonPath.kt 75% 🍏
SpRefInHereTile.kt 75% 🍏
SpBuffer.kt 74.58% 🍏
NakshaTxFeatureByPartition.kt 74.36% 🍏
SpTransformation.kt 74.19% 🍏
StreamTransaction.kt 73.91% 🍏
QueryConverter.kt 73.29% 🍏
NakshaBook.kt 72.55% -27.45% 🍏
TagListContains.kt 72% 🍏
MemberType.kt 71.91% -1.64% 🍏
ITupleCache.kt 71.88% 🍏
RequestQuery.kt 70.87% 🍏
MomReference.kt 70.37% 🍏
SpMultiPoint.kt 69.57% 🍏
SpMultiLineString.kt 69.57% 🍏
SpMultiPolygon.kt 69.57% 🍏
Platform.kt 69.51% -0.05% 🍏
MemberMap.kt 69.49% -30.51% 🍏
StreamRequestBuilder.kt 69.35% 🍏
StreamChunk.kt 69.09% 🍏
HeapBook.kt 69.04% -2.48% 🍏
FeatureTuple.kt 66.88% 🍏
Response.kt 66.67% 🍏
IWriteSession.kt 66.67% -10% 🍏
TagList.kt 66.55% 🍏
NakshaCollection.kt 66.07% -0.73% 🍏
SpGeometry.kt 65.81% 🍏
IBook.kt 65.63% -6.25% 🍏
SpType.kt 65.28% 🍏
ReadFeatures.kt 64.21% 🍏
LineStringCoord.kt 62.75% 🍏
MemberList.kt 61.96% 🍏
TupleCache.kt 61.37% 🍏
NakshaStorage.kt 61.22% 🍏
Tuple.kt 61.05% -5.03% 🍏
PointCoord.kt 60.64% 🍏
SuccessResponse.kt 60.07% 🍏
Int64Member.kt 59.52% 🍏
PolygonCoord.kt 58.82% 🍏
Index.kt 58.42% 🍏
ReadCollections.kt 57.72% 🍏
MomReferenceList.kt 57.58% 🍏
NakshaTxCollection.kt 56.05% 🍏
Naksha.kt 55.15% 🍏
StreamInfo.kt 54.52% 🍏
NakshaTxCatalog.kt 53.09% 🍏
NakshaCatalog.kt 51.15% 🍏
NakshaContext.kt 51.03% 🍏
SpBoundingBox.kt 48.26% 🍏
OrderBy.kt 47.64% 🍏
NakshaTx.kt 47.51% 🍏
Request.kt 47.27% 🍏
SpFeatureCollection.kt 46.67% 🍏
IStorage.kt 46.64% 🍏
Proxy.kt 44.62% 🍏
CustomIndexMapping.kt 43.86% 🍏
MomDeltaNs.kt 43.3% 🍏
MemberProcessorList.kt 41.86% 🍏
Member.kt 39.9% -0.77% 🍏
TupleNumberMember.kt 39.2% 🍏
SpatialMember.kt 39.2% 🍏
StringMember.kt 39.2% 🍏
SpFeature.kt 38.52% 🍏
FeatureTupleList.kt 38.02% 🍏
TagMapMember.kt 37.6% 🍏
IReadSession.kt 35.38% -4.62% 🍏
ByteArrayMember.kt 35.2% 🍏
Int32Member.kt 33.33% 🍏
ReadRequest.kt 33.33% 🍏
ReadTransactions.kt 32.61% 🍏
XyzNs.kt 30.43% 🍏
TagMap.kt 27.8% 🍏
WriteRequest.kt 27.47% 🍏
ResultFilterList.kt 26.32% 🍏
MultiPointCoord.kt 25.49% 🍏
MultiLineStringCoord.kt 25.49% 🍏
MultiPolygonCoord.kt 25.49% 🍏
CustomIndexMappingList.kt 19.23% 🍏
TagListMember.kt 16.8% 🍏
Float64Member.kt 16.67% 🍏
Property.kt 15.12% 🍏
MemberProcessorMap.kt 14.13% 🍏
GuidList.kt 10.2% 🍏
Op.kt 8.43% 🍏
XyzVersion.kt 0% 🍏
StreamFeature.kt 0% 🍏
ExtSubNotification.kt 0% 🍏
NotificationAck.kt 0% 🍏
SubNotification.kt 0% 🍏
Notification.kt 0% 🍏
NotificationError.kt 0% 🍏
TuplesByTxn.kt 0% 🍏
NakshaTxList.kt 0% 🍏
Int8Member.kt 0% 🍏
MemberAndIndices.kt 0% 🍏
Float32Member.kt 0% 🍏
Int16Member.kt 0% 🍏
BoolMember.kt 0% 🍏
NakshaSubscriptionState.kt 0% 🍏
SpGeometryCollection.kt 0% 🍏
SpGeometryList.kt 0% 🍏
SpSide.kt 0% 🍏
SpJoinStyle.kt 0% 🍏
IsNull.kt 0% 🍏
SpEndCap.kt 0% 🍏
ReadHandle.kt 0% 🍏
ReturnColumns.kt 0% 🍏
IResultSet.kt 0% 🍏
ReadMaps.kt 0% 🍏
SpEndCap.kt 0% 🍏
SpSide.kt 0% 🍏
SpNot.kt 0% 🍏
SpJoinStyle.kt 0% 🍏
SpAnd.kt 0% 🍏
StoreNumberBits.kt 0% 🍏
CStringReader.kt 0% 🍏
BinaryUtil.kt 0% 🍏
NakshaDatabaseImpl.kt 0% 🍏
TupleList.kt 0% 🍏
FetchMode.kt 0% 🍏
TupleNumberList.kt 0% 🍏
TupleNumberBinaryArray.kt 0% 🍏

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.

2 participants