pmwkaa / serenity

Disk storage and real transactions under Redis compatible protocol.
Other
197 stars 10 forks source link

Buggy scenario #10

Open FGRibreau opened 8 years ago

FGRibreau commented 8 years ago
Endpoint#write *1
$4
info

Redis#write $2688
# Storage info
sophia.version = 1.2.3
sophia.build = 59ff278
sophia.error =
sophia.path = ./serenity_db
sophia.path_create = 1
memory.limit = 10737418240
memory.used = 0
compaction.node_size = 67108864
compaction.page_size = 65536
compaction.page_checksum = 1
compaction.0.mode = 3
compaction.0.compact_wm = 2
compaction.0.branch_prio = 1
compaction.0.branch_wm = 10485760
compaction.0.branch_age = 40
compaction.0.branch_age_period = 40
compaction.0.branch_age_wm = 1048576
compaction.0.backup_prio = 1
compaction.0.gc_wm = 30
compaction.0.gc_db_prio = 1
compaction.0.gc_prio = 1
compaction.0.gc_period = 60
compaction.0.async = 2
compaction.80.mode = 2
compaction.80.compact_wm = 4
compaction.80.branch_prio = 0
compaction.80.branch_wm = 0
compaction.80.branch_age = 0
compaction.80.branch_age_period = 0
compaction.80.branch_age_wm = 0
compaction.80.backup_prio = 0
compaction.80.gc_wm = 0
compaction.80.gc_db_prio = 0
compaction.80.gc_prio = 0
compaction.80.gc_period = 0
compaction.80.async = 2
scheduler.threads = 6
scheduler.zone = 0
scheduler.checkpoint_active = 0
scheduler.checkpoint_lsn = 0
scheduler.checkpoint_lsn_last = 0
scheduler.checkpoint = function
scheduler.on_recover =
scheduler.on_recover_arg =
scheduler.on_event =
scheduler.on_event_arg =
scheduler.event_on_backup = 0
scheduler.gc_active = 0
scheduler.gc = function
scheduler.reqs = 0
scheduler.run = function
scheduler.0.trace = sleep
scheduler.1.trace = sleep
scheduler.2.trace = sleep
scheduler.3.trace = sleep
scheduler.4.trace = sleep
scheduler.5.trace = sleep
metric.dsn = 1
metric.nsn = 1
metric.bsn = 0
metric.lsn = 0
metric.lfsn = 1
metric.tsn = 0
log.enable = 1
log.path = ./serenity_db/log
log.sync = 0
log.rotate_wm = 500000
log.rotate_sync = 1
log.rotate = function
log.gc = function
log.files = 1
log.two_phase_recover = 0
log.commit_lsn = 0
backup.path =
backup.run = function
backup.active = 0
backup.last = 0
backup.last_complete = 0
db.db_0.name = db_0
db.db_0.id = 1
db.db_0.status = online
db.db_0.format = kv
db.db_0.path = ./serenity_db/db_0
db.db_0.sync = 1
db.db_0.mmap = 1
db.db_0.compression_key = 0
db.db_0.compression = none
db.db_0.branch = function
db.db_0.compact = function
db.db_0.deadlock = function
db.db_0.index.memory_used = 0
db.db_0.index.node_count = 1
db.db_0.index.node_size = 232
db.db_0.index.node_origin_size = 232
db.db_0.index.count = 0
db.db_0.index.count_dup = 0
db.db_0.index.read_disk = 0
db.db_0.index.read_cache = 0
db.db_0.index.branch_count = 1
db.db_0.index.branch_avg = 1
db.db_0.index.branch_max = 1
db.db_0.index.branch_histogram = [1]:1
db.db_0.index.page_count = 1
db.db_0.index.update =
db.db_0.index.update_arg =
db.db_0.index.key = string

Endpoint#write *2
$6
select
$1
0

Redis#write +OK

Endpoint#write *2
$6
select
$1
0

Redis#write +OK

Endpoint#write *2
$6
select
$1
0

Redis#write +OK

Endpoint#write *3
$6
config
$3
get
$8
database

Redis#write -ERROR bad request

Endpoint#write *2
$6
select
$1
0

Redis#write -ERROR bad request

Endpoint#write *2
$6
select
$1
0

Redis#write -ERROR bad request

after some actions, the server always answer with "ERROR bad request", it may be in an inconsistent state

pmwkaa commented 8 years ago

i'll fix this as soon as i peek some time :) thanks