Skip to content

Once created instance can't be created after restart #13

@ekho

Description

@ekho

First time

vagrant@vagrant-ubuntu-trusty-64:~$ tarantool
tarantool: version 1.6.7-398-g1c49334
type 'help' for interactive help
tarantool> box.cfg{slab_alloc_arena = 0.1}
2015-11-09 12:51:14.760 [9442] main/101/interactive C> version 1.6.7-398-g1c49334
2015-11-09 12:51:14.761 [9442] main/101/interactive C> log level 5
2015-11-09 12:51:14.761 [9442] main/101/interactive I> mapping 107374184 bytes for tuple arena...
2015-11-09 12:51:14.763 [9442] main/101/interactive I> initializing an empty data directory
2015-11-09 12:51:14.768 [9442] snapshot/101/main I> creating `./00000000000000000000.snap.inprogress'
2015-11-09 12:51:14.769 [9442] snapshot/101/main I> saving snapshot `./00000000000000000000.snap.inprogress'
2015-11-09 12:51:14.769 [9442] snapshot/101/main I> done
2015-11-09 12:51:14.772 [9442] main/101/interactive I> ready to accept requests

---
...

tarantool> memcached = require('memcached')

---
...

tarantool> memcached.create('my_instance', '0.0.0.0:11211')
2015-11-09 12:51:19.951 [9442] wal/101/main I> creating `./00000000000000000000.xlog.inprogress'
2015-11-09 12:51:19.952 [9442] main/104/my_instance_memcached_expire I> Memcached expire fiber started
2015-11-09 12:51:19.953 [9442] main/105/server/0.0.0.0:11211 I> started

---
- name: my_instance
  uri: 0.0.0.0:11211
  listener:
    fd: 12
    name:
      host: 0.0.0.0
      family: AF_INET
      type: SOCK_STREAM
      protocol: tcp
      port: 11211
  status: r
  service: 'cdata<struct memcached_service *>: 0x7f2ee0821030'
  space:
    index:
      0: &0
        unique: true
        parts:
        - type: STR
          fieldno: 1
        id: 0
        space_id: 512
        name: primary
        type: HASH
      primary: *0
    on_replace: 'function: 0x40aed528'
    temporary: false
    id: 512
    engine: memtx
    enabled: true
    name: __mc_my_instance
    field_count: 0
  opts:
    readahead: 16320
    uri: 0.0.0.0:11211
    expire_enabled: true
    expire_items_per_iter: 200
    verbosity: 0
    expire_full_scan_time: 3600
    name: memcached
...

then exit tarantool and run again

vagrant@vagrant-ubuntu-trusty-64:~$ tarantool
tarantool: version 1.6.7-398-g1c49334
type 'help' for interactive help
tarantool> box.cfg{slab_alloc_arena = 0.1}
2015-11-09 12:52:49.940 [9453] main/101/interactive C> version 1.6.7-398-g1c49334
2015-11-09 12:52:49.941 [9453] main/101/interactive C> log level 5
2015-11-09 12:52:49.942 [9453] main/101/interactive I> mapping 107374184 bytes for tuple arena...
2015-11-09 12:52:49.943 [9453] main/101/interactive I> recovery start
2015-11-09 12:52:49.943 [9453] main/101/interactive I> recovering from `./00000000000000000000.snap'
2015-11-09 12:52:49.945 [9453] main/101/interactive I> recover from `./00000000000000000000.xlog'
2015-11-09 12:52:49.946 [9453] main/101/interactive I> done `./00000000000000000000.xlog'
2015-11-09 12:52:49.946 [9453] main/102/hot_standby I> recover from `./00000000000000000000.xlog'
2015-11-09 12:52:49.947 [9453] main/101/interactive I> done `./00000000000000000000.xlog'
2015-11-09 12:52:49.947 [9453] main/101/interactive I> ready to accept requests

---
...

tarantool> memcached = require('memcached')

---
...

tarantool> memcached.create('my_instance', '0.0.0.0:11211')

---
- error: '/usr/share/tarantool/memcached/init.lua:260: Space with name ''__mc_my_instance''
    is already created'
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions