Google Groups Home
Help | Sign in
RANGE SERVER supplied timestamp is not strictly increasing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
swin  
View profile
 More options Apr 14, 6:08 am
From: swin <wangs...@gmail.com>
Date: Mon, 14 Apr 2008 03:08:05 -0700 (PDT)
Local: Mon, Apr 14 2008 6:08 am
Subject: RANGE SERVER supplied timestamp is not strictly increasing
hi:

   When I insert a record with the same row key but with older
timestamp,it throw error "RANGE SERVER supplied timestamp is not
strictly increasing" , but in my application I need to do so, how can
I avoid this error.

   Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Judd  
View profile
 More options Apr 14, 3:15 pm
From: "Doug Judd" <d...@zvents.com>
Date: Mon, 14 Apr 2008 12:15:40 -0700
Local: Mon, Apr 14 2008 3:15 pm
Subject: Re: [hypertable-user] RANGE SERVER supplied timestamp is not strictly increasing

Hi Wang,

Most applications should *not* supply timestamps.  The timestamps are used
internally by Hypertable to coordinate compactions, recovery, and
concurrency.  Any problems (such as delays, etc.) in the incoming stream of
supplied timestamps can wreak havoc on the system.  So, in general,
applications should let the system auto-assign timestamps.  Unfortunately,
the original apache_log example supplied timestamps , which was misleading,
since this practice should be avoided.

So how do you do time range queries?  Take a look at the most recent Apache
Log example under the examples/apache_log directory.  The way you set up a
table for timestamp range queries is by embedding the timestamp into the row
key.  The apache_log_load.cc program takes an option which will cause the
row key to be generated in one of two ways:

<page> <timestamp>

or

<timestamp> <page>

The following shows a snippet of SELECT output for the above two row key
formats.

/index.html 2008-01-26 00:21:27 ClientIpAddress 81.52.143.15
/index.html 2008-01-26 07:57:15 ClientIpAddress 218.111.214.141
/index.html 2008-01-26 08:29:33 ClientIpAddress 69.208.248.144

or alternatively ...

2008-01-26 00:21:27 /index.html ClientIpAddress 81.52.143.15
2008-01-26 07:57:15 /index.html ClientIpAddress 218.111.214.141
2008-01-26 08:29:33 /index.html ClientIpAddress 69.208.248.144

So, for example, with the last format, to return all rows from January 2008,
you would issue the following SELECT query:

SELECT * from MyTable where ROW STARTS WITH "2008-01";

- Doug

2008/4/14 swin <wangs...@gmail.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Judd  
View profile
 More options Apr 14, 3:38 pm
From: "Doug Judd" <d...@zvents.com>
Date: Mon, 14 Apr 2008 12:38:58 -0700
Local: Mon, Apr 14 2008 3:38 pm
Subject: Re: [hypertable-user] RANGE SERVER supplied timestamp is not strictly increasing

BTW, to get the latest apache_log example code, you need to pull the latest
code from the git repository.  The following page describes how to do this:

http://code.google.com/p/hypertable/wiki/SourceCode?tm=4

- Doug

2008/4/14 Doug Judd <d...@zvents.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google