Skip to content

Commit afb78ef

Browse files
author
Artem Labazin
committed
fix infinity loop during reading from backup
1 parent e17871e commit afb78ef

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
- Add batch write/read (using FileChannel) with customizable batch size;
1414
- Add concurrent access to queue (methods with `synchronized` keyword or based on locks).
1515

16+
## [2.1.1](https://github.com/infobip/popout/releases/tag/2.1.1) - 2019-09-25
17+
18+
### Fixed
19+
20+
- `SyncedFileQueue` don't fall in infinity loop during restoring from backup.
21+
1622
## [2.1.0](https://github.com/infobip/popout/releases/tag/2.1.0) - 2019-04-28
1723

1824
### Added

benchmarks/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ limitations under the License.
2525
<parent>
2626
<groupId>org.infobip.lib</groupId>
2727
<artifactId>parent</artifactId>
28-
<version>2.1.0</version>
28+
<version>2.1.1</version>
2929
</parent>
3030

3131
<artifactId>benchmarks</artifactId>

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ limitations under the License.
2424

2525
<groupId>org.infobip.lib</groupId>
2626
<artifactId>parent</artifactId>
27-
<version>2.1.0</version>
27+
<version>2.1.1</version>
2828
<packaging>pom</packaging>
2929

3030
<modules>
@@ -71,7 +71,7 @@ limitations under the License.
7171
<url>https://github.com/infobip/popout</url>
7272
<connection>scm:git:https://github.com/infobip/popout.git</connection>
7373
<developerConnection>scm:git:https://github.com/infobip/popout.git</developerConnection>
74-
<tag>2.1.0</tag>
74+
<tag>2.1.1</tag>
7575
</scm>
7676

7777
<distributionManagement>

popout/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ limitations under the License.
2525
<parent>
2626
<groupId>org.infobip.lib</groupId>
2727
<artifactId>parent</artifactId>
28-
<version>2.1.0</version>
28+
<version>2.1.1</version>
2929
</parent>
3030

3131
<artifactId>popout</artifactId>

popout/src/main/java/org/infobip/lib/popout/synced/SyncedFileQueue.java

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class SyncedFileQueue<T> extends FileQueue<T> {
6767
size = new LongAdder();
6868
val iterator = backend.iterator();
6969
while (iterator.hasNext()) {
70+
iterator.next();
7071
size.increment();
7172
}
7273
}

0 commit comments

Comments
 (0)