René's URL Explorer Experiment


Title: CursorIterable/KeyRange broken in v0.9.0 · Issue #228 · lmdbjava/lmdbjava · GitHub

Open Graph Title: CursorIterable/KeyRange broken in v0.9.0 · Issue #228 · lmdbjava/lmdbjava

X Title: CursorIterable/KeyRange broken in v0.9.0 · Issue #228 · lmdbjava/lmdbjava

Description: The changes in v0.9.0 have broken CursorIterable for some KeyRange types and keys. I noticed the problem when using KeyRange.atLeastBackward(. The cursor was starting on the wrong key. I think the problem is this line: lmdbjava-0.8.3...l...

Open Graph Description: The changes in v0.9.0 have broken CursorIterable for some KeyRange types and keys. I noticed the problem when using KeyRange.atLeastBackward(. The cursor was starting on the wrong key. I think the ...

X Description: The changes in v0.9.0 have broken CursorIterable for some KeyRange types and keys. I noticed the problem when using KeyRange.atLeastBackward(. The cursor was starting on the wrong key. I think the ...

Opengraph URL: https://github.com/lmdbjava/lmdbjava/issues/228

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CursorIterable/KeyRange broken in v0.9.0","articleBody":"The changes in v0.9.0 have broken CursorIterable for some KeyRange types and keys.  I noticed the problem when using `KeyRange.atLeastBackward(`.  The cursor was starting on the wrong key.\r\n\r\nI think the problem is this line:\r\n\r\nhttps://github.com/lmdbjava/lmdbjava/compare/lmdbjava-0.8.3...lmdbjava-0.9.0#diff-a5dda1cdb60b45d45a5a4364768ad1f7c62ac0ec025f295f78d489cf08392bf2R206\r\n\r\nIt is using the standard java `ByteBuffer.compareTo` method rather than your lexographical `AbstractByteBufferProxy::compareBuff` method, so 150 is considered \u003c 110.\r\n\r\nSee my branch (on the link below) where I have changed your `CursorIterableTest` to use 200 ... 900 instead of 2 ... 9 for the key values to demonstrate the problem.  With the modified values a lot of the tests fail.  Changing `AbstractByteBufferProxy` to use `compareBuf` makes them all pass again.\r\n\r\nhttps://github.com/lmdbjava/lmdbjava/compare/master...at055612:backwards-at-least?expand=1\r\n\r\nI think this is the problem is in `AbstractByteBufferProxy`.\r\n```java\r\n    @Override\r\n    protected Comparator\u003cByteBuffer\u003e getComparator(final DbiFlags... flags) {\r\n      final int flagInt = mask(flags);\r\n      if (isSet(flagInt, MDB_INTEGERKEY)) {\r\n        return this::compareCustom;\r\n      }\r\n      return this::compareDefault;\r\n      // TODO Think the above line should be changed to this:\r\n      // return AbstractByteBufferProxy::compareBuff;\r\n    }\r\n```\r\n\r\nIt may also be an issue for netty/agrona but I am not using those so have not looked.\r\n\r\nThis is a pretty serious bug for anyone using KeyRanges and it will present in subtle ways depending on the keys in the db and the keyRange type used.","author":{"url":"https://github.com/at055612","@type":"Person","name":"at055612"},"datePublished":"2023-12-11T13:44:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/228/lmdbjava/issues/228"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:055b1ece-79ca-bd16-8af1-8345dd5cad43
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE486:2AD947:2663B4A:35E875C:6970FA3E
html-safe-nonce94791a92cb097887915df988d3f03a0dd1e0c640342649c222a89857c7bb1e62
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDg2OjJBRDk0NzoyNjYzQjRBOjM1RTg3NUM6Njk3MEZBM0UiLCJ2aXNpdG9yX2lkIjoiODE5NDYwODg5NDU1ODkyNzQyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8117abb9a6998d2322b03773ecbd36590d5d6555def877d615ff167a7c630b10
hovercard-subject-tagissue:2035713639
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lmdbjava/lmdbjava/228/issue_layout
twitter:imagehttps://opengraph.githubassets.com/58e83160895ec2ba615704035cdbe805e9841910a45d812bd7a0b9f159fa4b6d/lmdbjava/lmdbjava/issues/228
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/58e83160895ec2ba615704035cdbe805e9841910a45d812bd7a0b9f159fa4b6d/lmdbjava/lmdbjava/issues/228
og:image:altThe changes in v0.9.0 have broken CursorIterable for some KeyRange types and keys. I noticed the problem when using KeyRange.atLeastBackward(. The cursor was starting on the wrong key. I think the ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameat055612
hostnamegithub.com
expected-hostnamegithub.com
None1b239ebed690c3053869ff31a3b7597834c25673659d63e7b6fd6a9b5d7853de
turbo-cache-controlno-preview
go-importgithub.com/lmdbjava/lmdbjava git https://github.com/lmdbjava/lmdbjava.git
octolytics-dimension-user_id19765602
octolytics-dimension-user_loginlmdbjava
octolytics-dimension-repository_id60480511
octolytics-dimension-repository_nwolmdbjava/lmdbjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id60480511
octolytics-dimension-repository_network_root_nwolmdbjava/lmdbjava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaeacfd55297f3de5395c83f200ac35d1f474115e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lmdbjava/lmdbjava/issues/228#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flmdbjava%2Flmdbjava%2Fissues%2F228
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flmdbjava%2Flmdbjava%2Fissues%2F228
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=lmdbjava%2Flmdbjava
Reloadhttps://github.com/lmdbjava/lmdbjava/issues/228
Reloadhttps://github.com/lmdbjava/lmdbjava/issues/228
Reloadhttps://github.com/lmdbjava/lmdbjava/issues/228
lmdbjava https://github.com/lmdbjava
lmdbjavahttps://github.com/lmdbjava/lmdbjava
Notifications https://github.com/login?return_to=%2Flmdbjava%2Flmdbjava
Fork 124 https://github.com/login?return_to=%2Flmdbjava%2Flmdbjava
Star 866 https://github.com/login?return_to=%2Flmdbjava%2Flmdbjava
Code https://github.com/lmdbjava/lmdbjava
Issues 8 https://github.com/lmdbjava/lmdbjava/issues
Pull requests 1 https://github.com/lmdbjava/lmdbjava/pulls
Actions https://github.com/lmdbjava/lmdbjava/actions
Projects 0 https://github.com/lmdbjava/lmdbjava/projects
Wiki https://github.com/lmdbjava/lmdbjava/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/lmdbjava/lmdbjava/security
Please reload this pagehttps://github.com/lmdbjava/lmdbjava/issues/228
Insights https://github.com/lmdbjava/lmdbjava/pulse
Code https://github.com/lmdbjava/lmdbjava
Issues https://github.com/lmdbjava/lmdbjava/issues
Pull requests https://github.com/lmdbjava/lmdbjava/pulls
Actions https://github.com/lmdbjava/lmdbjava/actions
Projects https://github.com/lmdbjava/lmdbjava/projects
Wiki https://github.com/lmdbjava/lmdbjava/wiki
Security https://github.com/lmdbjava/lmdbjava/security
Insights https://github.com/lmdbjava/lmdbjava/pulse
New issuehttps://github.com/login?return_to=https://github.com/lmdbjava/lmdbjava/issues/228
New issuehttps://github.com/login?return_to=https://github.com/lmdbjava/lmdbjava/issues/228
#237https://github.com/lmdbjava/lmdbjava/pull/237
CursorIterable/KeyRange broken in v0.9.0https://github.com/lmdbjava/lmdbjava/issues/228#top
#237https://github.com/lmdbjava/lmdbjava/pull/237
https://github.com/at055612
https://github.com/at055612
at055612https://github.com/at055612
on Dec 11, 2023https://github.com/lmdbjava/lmdbjava/issues/228#issue-2035713639
lmdbjava-0.8.3...lmdbjava-0.9.0#diff-a5dda1cdb60b45d45a5a4364768ad1f7c62ac0ec025f295f78d489cf08392bf2R206https://github.com/lmdbjava/lmdbjava/compare/lmdbjava-0.8.3...lmdbjava-0.9.0#diff-a5dda1cdb60b45d45a5a4364768ad1f7c62ac0ec025f295f78d489cf08392bf2R206
https://github.com/lmdbjava/lmdbjava/compare/master...at055612:backwards-at-least?expand=1https://github.com/lmdbjava/lmdbjava/compare/master...at055612:backwards-at-least?expand=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.