RE: redis on windows issues

112 views
Skip to first unread message

Claudio Caldato

unread,
Jul 30, 2012, 11:18:33 PM7/30/12
to redi...@googlegroups.com
Hi Prithvi,
 
Can you share the script you are using for your tests?
I want to repro the problem and find out if it is specific to the Windows implementation. If so we will fix it quickly.
Otherwise feel free to open a bug on https://github.com/MSOpenTech/redis
 
Thanks
Claudio
 
 
Sent from my Windows 8 PC
 
From: Prithvi Raj
Sent: Monday, July 30, 2012 2:36:26 AM
To: redi...@googlegroups.com
Subject: Re: redis on windows issues
 
I am using redis-cli command line, populated the db using node.js script.
Have not used monitor, will look into it.,

Regards,
Prithvi.

On 29-Jul-2012, at 11:45 PM, Josiah Carlson <josiah....@gmail.com> wrote:

> On Sun, Jul 29, 2012 at 3:13 AM, Prithvi Raj <maverick...@gmail.com> wrote:
>> Josiah,
>> I don't plan to use keys * for anything other than debugging. However,
>> I miss seeing table data like in SQL and I suppose Keys is the only
>> command in redis that provides that. I don't know any other command if
>> some one knows, it will be helpful.
>> Yes INFO is working, dbsize is showing 2711. when I flushall and
>> insert 5 keys then keys command works. When I populate using script
>> about 2700 keys, the command just does not do anything. Yes I selected
>> the right database using SELECT 0 as there is no other database.
>>
>> On the other hand, is there a way to name databases in redis, I don't
>> think so, point me if I am wrong. Also does the new version build in
>> cygwin ?
>
> No, you can't name databases in Redis. Personally, I use named
> configurations on my side of things, along with some
> decorators/context managers in Python to provide my functions with the
> right connections to the right resources.
>
> The new version of Redis? I don't know. I've never tried. But I don't
> believe that any patches were specifically made for cygwin support,
> and I don't believe that Salvatore would accept them. Dusan's port
> uses the mingw compiler, which may get you closer to what you want.
>
> What language are you using, and what client are you using?
> Are you running your command via your language bindings?
> Have you tried running the command from redis-cli?
> Have you tried making sure that the command makes it there by running
> 'monitor' in a redis-cli?
>
> - Josiah
>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.

Prithvi Raj

unread,
Aug 1, 2012, 11:05:18 AM8/1/12
to redi...@googlegroups.com
Claudio,
Apparently it had something to do with ANSI, I have to run ansicon.exe from this project https://github.com/adoxa/ansicon/downloads from this project before running redis-cli.exe to see all keys, any idea why it would show 5-10 keys but not show anything when size is like 2500 + or for that matter any arbitrary large size ?

regards,
Prithvi.

Josiah Carlson

unread,
Aug 1, 2012, 11:32:50 AM8/1/12
to redi...@googlegroups.com
The order of keys returned from Redis is arbitrary. It's possible that
a binary key was sent before a 'normal' key, so caused your issues.

Of my databases, the one I'm willing to execute a raw 'keys *' on with
over 2700 keys has 8800, and that works just fine. To note: I only
ever use printable ascii characters in my keys.

Regards,
- Josiah

Claudio Caldato

unread,
Aug 3, 2012, 12:47:53 AM8/3/12
to redi...@googlegroups.com
I have a repro, we see a different behavior between Linux and Windows so we need to investigate this further. We are opening an issue on github  and keep the status up to date but we should be able to fix it quickly.
 
Claudio

 
> Date: Wed, 1 Aug 2012 08:32:50 -0700

> Subject: Re: redis on windows issues

Claudio Caldato

unread,
Aug 7, 2012, 7:09:03 PM8/7/12
to redi...@googlegroups.com
Quick update on this. It was a bug in Redis-cli on Windows. The bug was fixed so I recommend picking the latest version of the code in our github repo.
 
Thanks
Claudio
 

> ----- Original message -----
>
> Received: by 10.42.132.5 with SMTP id b5mr284836ict.7.1343969021274;
> Thu, 02 Aug 2012 21:43:41 -0700 (PDT)
> Received: by 10.42.132.5 with SMTP id b5mr284835ict.7.1343969021255;
> Thu, 02 Aug 2012 21:43:41 -0700 (PDT)
> Return-Path: <clau...@outlook.com>
> Received: from col0-omc2-s14.col0.hotmail.com (col0-omc2-s14.col0.hotmail.com. [65.55.34.88])
> by gmr-mx.google.com with ESMTP id bg10si2855242igc.3.2012.08.02.21.43.41;
> Thu, 02 Aug 2012 21:43:41 -0700 (PDT)
> Received-SPF: pass (google.com: domain of clau...@outlook.com designates 65.55.34.88 as permitted sender) client-ip=65.55.34.88;
> Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of clau...@outlook.com designates 65.55.34.88 as permitted sender) smtp.mail=clau...@outlook.com
> Received: from COL002-W103 ([65.55.34.72]) by col0-omc2-s14.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);
> Thu, 2 Aug 2012 21:43:40 -0700
> Message-ID: <COL002-W103D9AF395...@phx.gbl>
> Return-Path: clau...@outlook.com
> Content-Type: multipart/alternative;
> boundary="_d5560fde-5e85-4218-b921-174618069049_"
> X-Originating-IP: [24.19.170.81]
> From: Claudio Caldato <clau...@outlook.com>
> To: "redi...@googlegroups.com" <redi...@googlegroups.com>
> Subject: RE: redis on windows issues
> Date: Thu, 2 Aug 2012 21:43:40 -0700
> Importance: Normal
> In-Reply-To: <CADcB0ygWggnzWb4mV4zPX8GhcoGQK85_31JBJzjnSf=2fz...@mail.gmail.com>
> References: <COL401-EAS7F9796F3...@phx.gbl>,<CAKcZ_3Zp-v3P3BoB8Vp6F6bm...@mail.gmail.com>,<CADcB0ygWggnzWb4mV4zPX8GhcoGQK85_31JBJzjnSf=2fz...@mail.gmail.com>
> MIME-Version: 1.0
> X-OriginalArrivalTime: 03 Aug 2012 04:43:40.0868 (UTC) FILETIME=[8E061840:01CD7132]

Claudio Caldato

unread,
Aug 7, 2012, 7:09:36 PM8/7/12
to redi...@googlegroups.com

Claudio Caldato

unread,
Aug 7, 2012, 7:10:33 PM8/7/12
to redi...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages