Skip to content

Commit

Permalink
refactor:2020春节多个问题修复
Browse files Browse the repository at this point in the history
 BugFixes:

   - 修复DEFAULT_RETRY_AFTER_SECOND拼写错误(#181 @liangxiong3403)
   - 修复metaDataSet default value logic bug(#182 @liangxiong3403)

 Update:

   - JDK版本升级到1.8版本,做一个大的版本升级(#189 @HaoQiangJiang)
   - 重命名ConnectionManager ,解决与openfeign包冲突(#186 @summitxf)
   - 合并增加一种文件下载回调方法(#161 @xlb ),并在此基础上重构
   - 增加连接池控制参数:连接空闲的最小时间、创建时是否进行连接测试、借出时是否检测有效性
   - 调整连接池默认参数,关闭自动检查机制,如果需要自动检查,请手动开启

 Docs:

   - 常见问题:生成的缩略图该怎么访问 (#179 @msh01)
   - 常见问题:能自定义上传路径么,或者有没有类似的解决方案(#173 @yj348382870)
   - 常见问题:请问当上传100M以上文件怎么才能获取进度(#172 @lxge)

 升级提示:

  - 没有接口改动,默认JDK升级到1.8版本

close #181,#182,#189,#186,#161,#179,#173,#172
  • Loading branch information
tobato committed Jan 27, 2020
1 parent a9da4c3 commit 5346644
Show file tree
Hide file tree
Showing 18 changed files with 279 additions and 307 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
## 1.26.8 (2019-12-30)
## 1.27.1 (2020-1-27)

BugFixes:

- 修复DEFAULT_RETRY_AFTER_SECOND拼写错误(#181 @liangxiong3403)
- 修复metaDataSet default value logic bug(#182 @liangxiong3403)

Update:

- JDK版本升级到1.8版本,做一个大的版本升级(#189 @HaoQiangJiang)
- 重命名ConnectionManager ,解决与openfeign包冲突(#186 @summitxf)
- 合并增加一种文件下载回调方法(#161 @xlb ),并在此基础上重构
- 增加连接池控制参数:连接空闲的最小时间、创建时是否进行连接测试、借出时是否检测有效性
- 调整连接池默认参数,关闭自动检查机制,如果需要自动检查,请手动开启

感谢@HaoQiangJiang @summitxf 提交更新

Docs:

- 常见问题:生成的缩略图该怎么访问 (#179 @msh01)
- 常见问题:能自定义上传路径么,或者有没有类似的解决方案(#173 @yj348382870)
- 常见问题:请问当上传100M以上文件怎么才能获取进度(#172 @lxge)


升级提示:

- 没有接口改动,可以直接从1.26.7升级
- 默认JDK升级到1.8版本

## 1.26.7 (2019-08-24)

Expand Down
17 changes: 11 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.tobato</groupId>
<artifactId>fastdfs-client</artifactId>
<version>1.26.8-SNAPSHOT</version>
<version>1.27.1</version>
<packaging>jar</packaging>
<!-- x-SNAPSHOT -->

Expand All @@ -30,14 +29,14 @@
<connection>scm:git:[email protected]:tobato/FastDFS_Client.git</connection>
<developerConnection>scm:git:[email protected]:tobato/FastDFS_Client.git</developerConnection>
<url>https://github.com/tobato/FastDFS_Client</url>
<tag>HEAD</tag>
<tag>fastdfs-client-1.27.1</tag>
</scm>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<relativePath/>
<relativePath />
</parent>

<properties>
Expand All @@ -53,7 +52,7 @@

<!-- Plugin的属性定义 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version>
<java.version>1.8</java.version>

<!-- 本地发布服务器 -->
<local.nexus>192.168.129.12:8081</local.nexus>
Expand Down Expand Up @@ -277,6 +276,12 @@
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>

<!-- <dependency>-->
<!-- <groupId>javax.servlet</groupId>-->
<!-- <artifactId>javax.servlet-api</artifactId>-->
<!-- <version>3.1.0</version>-->
<!-- </dependency>-->
</dependencies>


Expand Down
19 changes: 14 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FastDFS-Client 1.26.7(2019-08-24)
FastDFS-Client 1.27.1(2020-1-27)
---

This is a java client lib for [FastDFS](https://github.com/happyfish100/fastdfs).
Expand Down Expand Up @@ -34,7 +34,7 @@ This is a java client lib for [FastDFS](https://github.com/happyfish100/fastdfs)
<version>2.0.0.RELEASE</version>
<relativePath />

* JDK环境要求 1.7
* JDK环境要求 1.8
* FastDFS服务端 5.07 测试通过

## 单元测试
Expand Down Expand Up @@ -71,7 +71,7 @@ Maven依赖为
<dependency>
<groupId>com.github.tobato</groupId>
<artifactId>fastdfs-client</artifactId>
<version>1.26.7</version>
<version>1.27.1</version>
</dependency>


Expand All @@ -97,7 +97,7 @@ Maven依赖为
// 导入依赖组件
}

对的,只需要一行注解 @Import(FdfsClientConfig.class)就可以拥有带有连接池的FastDFS Java客户端了。
只需要一行注解 @Import(FdfsClientConfig.class)就可以拥有带有连接池的FastDFS Java客户端了。

>注意:`@EnableMBeanExport`解决问题JMX重复注册问题,[issue #8](../../issues/8) [issue #18](../../issues/8),不要再配置 `spring.jmx.enabled=false`,以免影响SpringBoot默认的JMX监控。
Expand All @@ -115,7 +115,16 @@ Maven依赖为
- 192.168.1.105:22122
- 192.168.1.106:22122

如果有必要可以参考 apache.pool2 参数配置连接池属性,默认配置为
### 4.连接池的管理参数

应用启动后拥有两个连接池管理对象:

* Tracker连接池(`TrackerConnectionManager`)
* Storage连接池(`FdfsConnectionManager`)

必要的时候可以注入这两个对象,跟踪打印并分析连接池的情况

两个连接池的参数配置一致,可参考 ConnectionPoolConfig 与 apache.pool2 进行优化配置,默认配置为

fdfs:
..其他配置信息..
Expand Down

This file was deleted.

Loading

0 comments on commit 5346644

Please sign in to comment.