Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级jraft环境,让其能在更高的jdk版本上运行 #1175

Open
9 tasks
shihuili1218 opened this issue Jan 17, 2025 · 0 comments
Open
9 tasks

升级jraft环境,让其能在更高的jdk版本上运行 #1175

shihuili1218 opened this issue Jan 17, 2025 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@shihuili1218
Copy link
Collaborator

shihuili1218 commented Jan 17, 2025

更高版本的jdk,废弃了一些jraft中正在使用的api,需要重构代码以放弃对这些api的使用。

过去我们在这里讨论过,升级jdk的必要性。#1070

我收集了一些需要改动地方,并且拆分成更细的任务。

  1. API替换: sun.misc.Unsafe
  • com.alipay.sofa.jraft.util.Utils
  • com.alipay.sofa.jraft.util.internal.UnsafeUtil
  • com.alipay.sofa.jraft.util.internal.UnsafeIntegerFieldUpdater
  • com.alipay.sofa.jraft.util.internal.UnsafeLongFieldUpdater
  • com.alipay.sofa.jraft.util.internal.UnsafeReferenceFieldUpdater
  • com.alipay.sofa.jraft.rhea.util.concurrent.collection.ConcurrentAutoTable
  • com.alipay.sofa.jraft.rhea.util.concurrent.collection.NonBlockingHashMap
  • com.alipay.sofa.jraft.rhea.util.concurrent.collection.NonBlockingHashMapLong
  1. API替换: sun.nio.ch
  • com.alipay.sofa.jraft.storage.log.SegmentFile
  1. 版本升级: asm、netty
  2. 可能存在的问题:MappedByteBuffer
@shihuili1218 shihuili1218 added the help wanted Extra attention is needed label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant