From 0a7da3fbf745febf805df973b4e617004248f442 Mon Sep 17 00:00:00 2001 From: John Shahid Date: Mon, 12 May 2014 15:08:31 -0400 Subject: [PATCH] Fix #516. Close WAL log/index files if they aren't needed anymore --- CHANGELOG.md | 9 +++++++-- src/wal/wal.go | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5223a0c7dc..c51b8122be1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.6.3 [unreleased] + +### Bugfixes + +- [Issue #516](https://github.com/influxdb/influxdb/issues/516). Close WAL log/index files when they aren't being used + ## v0.6.2 [2014-05-09] ### Bugfixes @@ -16,7 +22,7 @@ - [Issue #501](https://github.com/influxdb/influxdb/issues/501). Writes with invalid payload should be rejected - [Issue #507](https://github.com/influxdb/influxdb/issues/507). New cluster admin passwords don't propagate properly to other nodes in a cluster - [Issue #508](https://github.com/influxdb/influxdb/issues/508). Don't replay WAL entries for servers with no shards -- [Issue #464](https://github.com/influxdb/influxdb/issues/464). Admin UI shouldn't draw graphs for string columns +- [Issue #464](https://github.com/influxdb/influxdb/issues/464). Admin UI shouldn't draw graphs for string columns - [Issue #480](https://github.com/influxdb/influxdb/issues/480). Large values on the y-axis get cut off ## v0.6.0 [2014-05-02] @@ -487,4 +493,3 @@ ## v0.0.1 [2013-10-22] * Initial Release - diff --git a/src/wal/wal.go b/src/wal/wal.go index 84efd299578..9ff5a77e0b1 100644 --- a/src/wal/wal.go +++ b/src/wal/wal.go @@ -504,6 +504,8 @@ func (self *WAL) rotateTheLogFile(nextRequestNumber uint32) (bool, error) { if err := lastIndex.syncFile(); err != nil { return false, err } + lastLogFile.close() + lastIndex.close() lastLogFile, err := self.createNewLog(nextRequestNumber + 1) if err != nil { return false, err