Skip to content

v1.4.2 release

Compare
Choose a tag to compare
@xmtsui xmtsui released this 04 Jun 12:21
· 118 commits to master since this release
2aabea0

所有MR以及issue见milestone1.4.2,修改内容包括:

兼容性

该版本向前兼容v1.4.1

v1.4.2的pom依赖

<!-- 日志门面使用slf4j,日志实现可以选择log4j、log4j2、logback,可参考:https://github.com/alipay/sofa-bolt/wiki/log_implementation_jar -->
 <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.7.21</version>
</dependency>
<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-all</artifactId>
    <version>4.1.25.Final</version>
</dependency>
<dependency>
    <groupId>com.alipay.sofa</groupId>
    <artifactId>bolt</artifactId>
    <version>1.4.2</version>
</dependency>
<dependency>
    <groupId>com.alipay.sofa.common</groupId>
    <artifactId>sofa-common-tools</artifactId>
    <version>1.0.12</version>
</dependency>
<dependency>
    <groupId>com.alipay.sofa</groupId>
    <artifactId>hessian</artifactId>
    <version>3.3.0</version>
</dependency>

主要改动

  1. 修复主线程结束后,bolt内部线程池没有自动关闭的问题。目前除了RpcServer的boss线程非daemon,其他都已改成daemon。具体见PR!31以及commit 0639872
  2. rpc server的初始化逻辑修改,抽象一个initRpcRemoting接口,子类可以覆写。
  3. 调整RemotingServer的启动逻辑,当重复启动时,抛IllegalStateException异常,与重复stop抛的异常一致。另外启动失败后,主动调用一个stop方法,为了状态一致并且释放已经init的资源。
  4. ByteBufAllocator初始化逻辑修改,以bolt的开关为准,bolt目前默认是UnpooledByteBufAllocator
  5. 日志修改:增加rootLogger,增加支持encoding系统参数:"file.encoding"
  6. 格式修改:license头uses /* ... */ instead of/** ... */
  7. mvn插件修改:增加disable-javadoc-doclint,解决1.8下面的编译异常。
  8. netty版本从4.1.13.Final升级到4.1.25.Final