Giter Site home page Giter Site logo

memcachedb's People

memcachedb's Issues

increment key issue memcachedb-1.0.0.beta

php example:
<?php
$memcache = new Memcache;
$memcache->addServer('localhost', 21201);

$memcache->set('key1',7);
$memcache->increment('key1',2);


echo "key1=>".$memcache->get('key1') ."\n";

$memcache->increment('key1',2);

echo "key1=>".$memcache->get('key1') ."\n";
?>

result:

key1=>9
PHP Notice:  get(): marked server 'localhost:21201' as failed in ...
key1=>


telnet differencies:

Telneting into memcached 1.2.2

root@x:~# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
add aa 0 0 1
9
STORED
incr aa 1
10
get aa
VALUE aa 0 2
10
END



Telneting into memcachedb 1.0.0
root@x:~# telnet localhost 21201
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
add aa 0 0 1
9
STORED
incr aa 1
10
get aa
VALUE aa 0 1
10
END



There's a notable difference between the response from the servers on the
second get
memcached replies with "VALUE aa 0 2"
memcachedb replies with "VALUE aa 0 1" (number of bytes differs)



What version of the product are you using? On what operating system?

Berkeley DB 4.6.18
libevent 1.4.0-beta
memcachedb-1.0.0-beta
Linux

Original issue reported on code.google.com by [email protected] on 19 Feb 2008 at 4:06

安装报错,谁能给看下

错误信息如下:
memcachedb.c: In function `process_rep_command':
memcachedb.c:1284: error: structure has no member named `rep_set_priority'
memcachedb.c:1299: error: structure has no member named 
`repmgr_set_ack_policy'
memcachedb.c: In function `process_bdb_command':
memcachedb.c:1342: error: `DB_COMPACT' undeclared (first use in this 
function)
memcachedb.c:1342: error: (Each undeclared identifier is reported only once
memcachedb.c:1342: error: for each function it appears in.)
memcachedb.c:1342: error: syntax error before "c_data"
memcachedb.c:1343: error: structure has no member named `compact'
memcachedb.c:1343: error: `c_data' undeclared (first use in this function)
memcachedb.c:1343: error: `DB_FREE_SPACE' undeclared (first use in this 
function)
make[2]: *** [memcachedb.o] Error 1
make[2]: Leaving directory `/usr/local/memcachedb-1.2.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/memcachedb-1.2.0'
make: *** [all] Error 2



非常感谢。
email:[email protected]

Original issue reported on code.google.com by [email protected] on 10 Mar 2010 at 4:13

when adding an existing key memcached server failed

What steps will reproduce the problem?

From php connect to memcachedb via Memcache() class 

1. add a key with a value
2. try to add again the same key 


What is the expected output? What do you see instead?
-normaly this should return false

Result: PHP Notice:  add(): marked server 'localhost:21211' as failed in ... 

What version of the product are you using? On what operating system?

Berkeley DB 4.6.18
libevent 1.4.0-beta
memcachedb-0.1.0
Linux





Original issue reported on code.google.com by [email protected] on 14 Jan 2008 at 1:44

can not telnet on the memcachedb

What steps will reproduce the problem?
1. memcachedb -p 21201 -d -r -u root -f 21201.db -H /data1/demo
-N -P /data1/logs/21201.pid -vv
2. telnet 127.0.0.1 21201
3. then the memcachedb server output the information below:
'Catastrophic: event fd doesn't match conn fd!'
What is the expected output? What do you see instead?
expected: some useful infomation
instead: Catastrophic: event fd doesn't match conn fd!

What version of the product are you using? On what operating system?
1.memcachedb 1.2.1-beta
2.db-4.7.25
3.libevent-1.4.9-stable
Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Feb 2009 at 3:33

db_checkpoint等memcachedb私有命令怎么用?

hi,您好!

     我用java开源的memcached client访问memcachedb,象 db_archive ,db_ismaster,db_checkpoint等memcachedb私有命令怎么用?

     要扩展memcached client还是memcachedb也提供同样的API来调用?


     期待您的回复,谢谢!

Original issue reported on code.google.com by [email protected] on 24 Jun 2010 at 3:30

segfault in opensolaris

i compiled and installed BDB 4.6 and memcachedb in opensolaris, and when i
run it i get a segfault

/memcachedb -f /tmp/default.db  -H /tmp -p 11411 -u mark
Segmentation Fault


I have attached the core dump file.

Original issue reported on code.google.com by [email protected] on 4 Dec 2007 at 8:10

Attachments:

Errors with memory pool size over 2G

What version of the product are you using? On what operating system?
- CentOS 5.2 x84_64
- 15GB of RAM
- libevent-1.4.9-stable.tar.gz
- db-4.7.25.tar.gz
- memcachedb-1.2.0.tar.gz

We attempted to run the memcachedb daemon with 12GB of memory in cache. 
After seeing revision r94 about a bugfix for allocating more than 2GB in
the memory pool, we decreased our cache size to 2GB.  Here are some of the
errors we saw:


"Failed to write, and not due to blocking: Broken pipe"    
dbp->put: Cannot allocate memory
unable to allocate space from the buffer cache

Is the bug fix in r94 only for 1.2.1-beta?  Also, do you recommend the beta
version over the stable 1.2.0?  Finally, with this bug fix, what is the
maximum allowed size for the memory pool?

Thanks,
Bryan

Original issue reported on code.google.com by [email protected] on 9 Mar 2009 at 6:07

memcachedb的命中问题

您好!

    如果我增加一台memcachedb服务器,根据memcached client哈希算法,原来在第一台memcachedb上的数据可能会被指向到这台新的服务器,这样一来就存在命中问题,等价于数据丢失,如果是memcached到没有什么,但如果是db的话,就有问题了,不知道我说的问题存不存在?

   期待您的回复,谢谢!

Original issue reported on code.google.com by [email protected] on 24 Jun 2010 at 4:17

log files issue

same configuration like Issue 2

1. limited space on disk .. like 200 mb
2. set some 50.000 - 75.000 keys with values
3. these keys have some index that is also a key here

database is in env/
here are also some log files 10 mb each that sems to only grow in number 
so my free space in became 0
to delete a key from memcachedb I also need to change value on the index key.
but index key value dosn't change, in result my script run to infinite loop.

If I delete something and make some free space , my script works fine

question is: can this memcachedb log be deactivated? if yes, how?









Original issue reported on code.google.com by [email protected] on 16 Jan 2008 at 9:50

>9 SERVER_ERROR out of memory

What steps will reproduce the problem?
1. ./configure && make && make install
2. /usr/local/bin/memcachedb -l 127.0.0.1  -u nobody -vv -f
/var/cache/memcachedb/default.db -H /var/cache/memcachedb 
3. <9 set b0779a1737d196b5536656a5321243aade7df486 0 86400 13989

What is the expected output? What do you see instead?

The expected output is:

>9 STORED
<9 connection closed.

I get:

>9 SERVER_ERROR out of memory

What version of the product are you using? On what operating system?

memcachedb-1.0.2-beta with:

Kubuntu 7.10, db4.6, libevent (the latest in Ubuntu).

Please provide any additional information below.

I'm trying to use memcachedb as a session storage for PHP, using the
memcache extension of PHP. Something like this works:

<9 set 47e33a215d3f30195bfc511174299c0572ada092 0 86400 332
>9 STORED

but this doesn't:

<9 set 47e33a215d3f30195bfc511174299c0572ada092 0 86400 13961
>9 SERVER_ERROR out of memory

I tracked the problem up to memcachedb.c line 1154:

    it = item_alloc(key, nkey, flags, vlen+2);

    if (it == 0) {
        out_string(c, "SERVER_ERROR out of memory");
        /* swallow the data line */
        c->write_and_go = conn_swallow;
        c->sbytes = vlen + 2;
        return;
    }

but after that I'll need some help. Thanks.

Original issue reported on code.google.com by [email protected] on 4 Mar 2008 at 4:40

SIGSEGV, Segmentation fault in __ham_get_h_ffactor ()

What steps will reproduce the problem?

1. Install & run

export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.7/lib:/usr/local/lib
memcachedb -p21201 -d -r -u raru -H /home/raru/dev/local/tmp/memcahedb/test -N 
-v

2. Test with telnet

telnet localhost 21201
set test 0 0 4
get test

What is the expected output? What do you see instead?

Set seems to work.
But instead of getting "test" value I get a SEGFAULT and memcachedb process 
dies.

What version of the product are you using? On what operating system?

raru@P16661:~/dev/local/tmp/memcahedb/test$ uname -a
Linux P16661 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:19:35 UTC 2013 i686 
i686 i686 GNU/Linux

berkeleydb -> db-4.7.25
libevent -> libevent-2.0.21-stable
memcachedb -> memcachedb-1.2.0

Please provide any additional information below.

Program received signal SIGSEGV, Segmentation fault.
0xb7e956e1 in __ham_get_h_ffactor () from 
/usr/local/BerkeleyDB.4.7/lib/libdb-4.7.so
(gdb) back
#0  0xb7e956e1 in __ham_get_h_ffactor () from 
/usr/local/BerkeleyDB.4.7/lib/libdb-4.7.so
#1  0x0804ea5f in item_get (key=0x8070214 "test", nkey=4) at item.c:232
#2  0x0804c5f8 in process_get_command (tokens=<optimized out>, c=<optimized 
out>, ntokens=<optimized out>) at memcachedb.c:1004
#3  process_command (command=<optimized out>, c=0x8070120) at memcachedb.c:1387
#4  try_read_command (c=0x8070120) at memcachedb.c:1470
#5  drive_machine (c=<optimized out>) at memcachedb.c:1737
#6  event_handler (fd=32, which=2, arg=0x8070120) at memcachedb.c:1926
#7  0xb7e073fa in event_process_active_single_queue (activeq=0x8059318, 
base=<optimized out>) at event.c:1350
#8  event_process_active (base=<optimized out>) at event.c:1420
#9  event_base_loop (base=0x8059008, flags=flags@entry=0) at event.c:1621
#10 0x0804a5a4 in main (argc=9, argv=0xbfffefe4) at memcachedb.c:2706
(gdb) 


Original issue reported on code.google.com by [email protected] on 15 May 2014 at 9:56

Multi-get bug

BUG:

trying to get multiple keys from memcachedb in one call, it returns only
the first key value

php test:

<?php
$memcache = new Memcache;
$memcache->addServer('localhost', 21211);

$memcache->set('key1','val1');
$memcache->set('key2','val2');
$memcache->set('key3','val3');
$memcache->set('key4','val4');

echo "\nnormal get";
echo "\nkey1=>".$memcache->get('key1') ."\n";
echo "key1=>".$memcache->get('key2') ."\n";
echo "key1=>".$memcache->get('key3') ."\n";
echo "key1=>".$memcache->get('key4') ."\n";

$keys = array();
$keys[]= 'key1';
$keys[]= 'key2';
$keys[]= 'key3';
$keys[]= 'key4';
echo "\nmulti get";
echo "<pre>";
print_r($memcache->get($keys));
echo "</pre>";
?>

result:


normal get
key1=>val1
key1=>val2
key1=>val3
key1=>val4

multi-get
<pre>Array
(
    [key1] => val1
)
</pre>

BOX:
Linux
Berkeley DB 4.6.18
libevent 1.4.0-beta
memcachedb-0.1.0


#define END_LEN 5001
#define END_LEN_STR "5000"

./memcachedb -p 21211 -d -r -u root -H ./env -N

Original issue reported on code.google.com by [email protected] on 18 Jan 2008 at 3:16

Error in set into memcachedb

What steps will reproduce the problem?
1. memcachedb  -l 192.168.16.106 -p7001  -d -r -u root  -H /db/memcachedb
2. telnet  192.168.16.106  7001
3. set test 0 0 1
   1234

4. there was no responsed "STORED" ,why ?????





What version of the product are you using? On what operating system?
db-4.7.25
libevent-1.4.12-stable
memcachedb-1.2.0 
AS4-U2 ,2.6.9-22.EL



Original issue reported on code.google.com by [email protected] on 22 Sep 2009 at 5:50

Memcachedb产生的db文件不会减小

Memcachedb产生的db文件怎么不会变小?我循环插入50万条数据,
然后过了一段时间挨个删除,结果db文件停在44M就没有变化,
这是什么原因呢?望高手赐教! 


Original issue reported on code.google.com by [email protected] on 24 Aug 2010 at 1:16

Compilation error on OpenBSD 4.7 box - memcachedb 1.2.0 and 1.2.1

What steps will reproduce the problem?
1. ./configure --with-bdb=/usr/local
2. make

Output from configure and make:

# ./configure --with-bdb=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for libevent directory... (system)
checking for library containing db_create... -ldb
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing mallinfo... no
checking for daemon... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... no
checking for socklen_t... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating tools/Makefile
config.status: creating conf/Makefile
config.status: creating config.h
config.status: executing depfiles commands
# make
make  all-recursive
Making all in doc
Making all in tools
Making all in conf
gcc -DHAVE_CONFIG_H -I.    -I/usr/local/include  -g -O2 -MT memcachedb.o -MD 
-MP -MF .deps/memcachedb.Tpo -c -o memcachedb.o memcachedb.c
In file included from memcachedb.c:20:
memcachedb.h:304: error: syntax error before '*' token
memcachedb.h:385: error: syntax error before '*' token
memcachedb.h:385: warning: data definition has no type or storage class
memcachedb.c:106: error: syntax error before '*' token
memcachedb.c:106: warning: data definition has no type or storage class
memcachedb.c: In function `process_rget_command':
memcachedb.c:1099: error: `txn' undeclared (first use in this function)
memcachedb.c:1099: error: (Each undeclared identifier is reported only once
memcachedb.c:1099: error: for each function it appears in.)
memcachedb.c:1100: error: `DBC' undeclared (first use in this function)
memcachedb.c:1100: error: `cursorp' undeclared (first use in this function)
memcachedb.c:1129: error: request for member `txn_begin' in something not a 
structure or union
memcachedb.c:1137: error: structure has no member named `cursor'
memcachedb.c:1137: error: `DB_READ_COMMITTED' undeclared (first use in this 
function)
memcachedb.c:1144: error: `DB_SET_RANGE' undeclared (first use in this function)
memcachedb.c:1153: error: `DB_NEXT' undeclared (first use in this function)
memcachedb.c: In function `process_rep_command':
memcachedb.c:1435: error: request for member `rep_set_priority' in something 
not a structure or union
memcachedb.c:1450: error: request for member `repmgr_set_ack_policy' in 
something not a structure or union
memcachedb.c: In function `process_bdb_command':
memcachedb.c:1471: error: request for member `log_archive' in something not a 
structure or union
memcachedb.c:1471: error: `DB_ARCH_REMOVE' undeclared (first use in this 
function)
memcachedb.c:1482: error: request for member `txn_checkpoint' in something not 
a structure or union
memcachedb.c:1493: error: syntax error before "c_data"
memcachedb.c:1494: error: structure has no member named `compact'
memcachedb.c:1494: error: `c_data' undeclared (first use in this function)
memcachedb.c:1494: error: `DB_FREE_SPACE' undeclared (first use in this 
function)
memcachedb.c: In function `server_socket':
memcachedb.c:2157: error: `AI_ADDRCONFIG' undeclared (first use in this 
function)
memcachedb.c: In function `main':
memcachedb.c:2675: error: `DB_PRIVATE' undeclared (first use in this function)
memcachedb.c:2678: error: `DB_REP_CLIENT' undeclared (first use in this 
function)
memcachedb.c:2682: error: `DB_REP_MASTER' undeclared (first use in this 
function)
*** Error code 1

Stop in /usr/src/memcachedb-1.2.1-beta (line 92 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /usr/src/memcachedb-1.2.1-beta (line 311 of Makefile).
*** Error code 1

Stop in /usr/src/memcachedb-1.2.1-beta (line 175 of Makefile).

Regards,
Artur

Original issue reported on code.google.com by [email protected] on 17 Jun 2010 at 3:44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.