You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ALTER TABLE ... FREEZE PARTITION sometimes returns 'File not found' error #393
@alexey-milovidov thank you. I'm getting this again on a version that has the fix. Using version 1.1.54304 and getting this in my application:
Nov 30 14:15:27 ALTER table mydatabase.mytable_1day FREEZE PARTITION '201711'
Nov 30 14:15:37 Unknown error field: Poco::Exception. Code: 1000
Nov 30 14:15:37 Unknown error field: e.code() = 2
Nov 30 14:15:37 Unknown error field: e.displayText() = File not found: /var/lib/clickhouse/data/mydatabase/mytable_1day/20171130_20171130_22782825_22782825_0
Nov 30 14:15:37 { Error: Poco::Exception. Code: 1000, e.code() = 2, e.displayText() = File not found: /var/lib/clickhouse/data/mydatabase/mytable_1day/20171130_20171130_22782825_22782825_0, e.what() = File not found
Nov 30 14:15:37
Nov 30 14:15:37 at parseError (/code/node_modules/@apla/clickhouse/src/parse-error.js:2:15)
Nov 30 14:15:37 at errorHandler (/code/node_modules/@apla/clickhouse/src/clickhouse.js:26:13)
Nov 30 14:15:37 at IncomingMessage. (/code/node_modules/@apla/clickhouse/src/clickhouse.js:94:11)
Nov 30 14:15:37 at emitNone (events.js:110:20)
Nov 30 14:15:37 at IncomingMessage.emit (events.js:207:7)
Nov 30 14:15:37 at endReadableNT (_stream_readable.js:1059:12)
Nov 30 14:15:37 at _combinedTickCallback (internal/process/next_tick.js:138:11)
Nov 30 14:15:37 at process._tickCallback (internal/process/next_tick.js:180:9) type: 'File not found' }
The freeze statements are possibly being issued concurrently, not sure if that is not allowed.
Activity
gudmojo commentedon Oct 12, 2017
I'm experiencing the same issue on 1.1.54245
Sometimes it results in partial data loss in the backup as I described here https://serverfault.com/questions/876648/clickhouse-inconsistent-backup-restore-for-latest-partition-when-using-alter-ta
alexey-milovidov commentedon Oct 12, 2017
This is a bug. Fixed in:
d468473
gudmojo commentedon Dec 1, 2017
@alexey-milovidov thank you. I'm getting this again on a version that has the fix. Using version 1.1.54304 and getting this in my application:
Nov 30 14:15:27 ALTER table
mydatabase.mytable_1dayFREEZE PARTITION '201711'Nov 30 14:15:37 Unknown error field: Poco::Exception. Code: 1000
Nov 30 14:15:37 Unknown error field: e.code() = 2
Nov 30 14:15:37 Unknown error field: e.displayText() = File not found: /var/lib/clickhouse/data/mydatabase/mytable_1day/20171130_20171130_22782825_22782825_0
Nov 30 14:15:37 { Error: Poco::Exception. Code: 1000, e.code() = 2, e.displayText() = File not found: /var/lib/clickhouse/data/mydatabase/mytable_1day/20171130_20171130_22782825_22782825_0, e.what() = File not found
Nov 30 14:15:37
Nov 30 14:15:37 at parseError (/code/node_modules/@apla/clickhouse/src/parse-error.js:2:15)
Nov 30 14:15:37 at errorHandler (/code/node_modules/@apla/clickhouse/src/clickhouse.js:26:13)
Nov 30 14:15:37 at IncomingMessage. (/code/node_modules/@apla/clickhouse/src/clickhouse.js:94:11)
Nov 30 14:15:37 at emitNone (events.js:110:20)
Nov 30 14:15:37 at IncomingMessage.emit (events.js:207:7)
Nov 30 14:15:37 at endReadableNT (_stream_readable.js:1059:12)
Nov 30 14:15:37 at _combinedTickCallback (internal/process/next_tick.js:138:11)
Nov 30 14:15:37 at process._tickCallback (internal/process/next_tick.js:180:9) type: 'File not found' }
The freeze statements are possibly being issued concurrently, not sure if that is not allowed.