Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_only and temporary spaces #1378

Closed
pgulutzan opened this issue Mar 10, 2016 · 1 comment
Closed

read_only and temporary spaces #1378

pgulutzan opened this issue Mar 10, 2016 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@pgulutzan
Copy link
Contributor

Read-only mode presumably exists to prevent persistent writes.
However, a change to a temporary space should not involve
the binlog anyway. Therefore it seems unnecessary to prevent
insert+update+delete on a temporary space. But it happens.

How to repeat:

tarantool> box.schema.space.create('Z',{temporary=true})
2016-03-10 10:22:52.273 [31701] wal/101/main I> creating `./00000000000000000062.xlog.inprogress'

---
- index: []
  on_replace: 'function: 0x40bc11a0'
  temporary: true
  id: 520
  engine: memtx
  enabled: false
  name: Z
  field_count: 0
- created
...

tarantool> box.cfg{read_only=true}
2016-03-10 10:23:10.505 [31701] main/101/interactive I> set 'read_only' configuration option to true

---
...

tarantool> box.space.Z:insert{1}
2016-03-10 10:23:26.113 [31701] main/101/interactive box.cc:112 E> ER_READONLY: Can't modify data because this server is in read-only mode.

---
- error: Can't modify data because this server is in read-only mode.
...
@kostja kostja added this to the 1.7.0 milestone Mar 20, 2016
@kostja kostja added the bug Something isn't working label Mar 20, 2016
@kostja kostja modified the milestones: 1.7.1, 1.7.2 Jul 11, 2016
@kostja kostja modified the milestones: 1.7.3, 1.7.2 Sep 1, 2016
@kostja kostja modified the milestones: wishlist, 1.7.3, 1.8.0 Sep 27, 2016
@rtsisyk rtsisyk modified the milestones: 1.7.3, 1.8.0 Dec 1, 2016
@rtsisyk rtsisyk assigned locker and unassigned rtsisyk Dec 1, 2016
@rtsisyk
Copy link
Contributor

rtsisyk commented Dec 1, 2016

Needed for #1821, moved to 1.7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants