Best unofficial Apache Server developers community |
| |||||
| Aug 26, 2010 | |||||
|
Prajwal Tuladhar |
|
||||
Similar Threads
Created: (CLI-202) Default options are not taken into account for the required options
Default options are not taken into account for the required options
external handlers are not in sync with commits
Hi, I have written couchdb-clucene (http://github.com/normanb/couchdb-clucene) and am doing a lot of testing with heavy datasets where I am sending a bulk doc request with 10 docs at a time, a couple of these every second for a couple of minutes. Very quickly couchdb backs up and hogs the cpu since the database commit and return doesn't wait for an external handler to do its job. The model of fire and forget is fine and I like it, very similar to JMS, however since the external process is a singleton it has to be very quick to keep up with load or the system slowly backs up. Is there a way to either define a pool of externals, or to change the default behaviour from fire and forget? thanks, Norman
Cassandra client - clock sync
Hi, We have an application that uses Cassandra to store data. The application is deployed on multiple nodes that are part of an application cluster. We are at present using single Cassandra node. We have noticed few errors in application and our analysis revealed that the root cause was that the clock on different application nodes was off by few miliseconds (approx 3.5 ms). AFAIK all the application nodes using Cassandra should have clock synched. Is this understanding correct? If yes, what is the recommended way to keep the clocks in sync? Even if we use NTP the clocks go out of sync after few hours. Should we write a cron job to sync time every N minutes or hours? What is the recommendation in production? How are other Cassandra users handling the clock sync in production environment? Thanks, Naren
Resolved: (MAPREDUCE-1937) mvn-deployed snapshot is out of sync with trunk
[
https://issues.apache.org/jira/browse...nels:all-tabpanel
]
Chris Douglas resolved MAPREDUCE-1937.
Re: Issue 173 in redis: Slave not detecting lost connection during sync
Updates: Status: Fixed Comment #2 on issue 173 by antirez: Slave not detecting lost connection during sync http://code.google.com/p/redis/issues/detail?id=173 Fixed, thank you and sorry for the delay. Cheers, Salvatore
Created: (CAMEL-3065) Netty - @deprecated sync option and let it use the MEP to decide if its InOnly
Netty - @deprecated sync option and let it use the MEP to decide if its InOnly or InOut
Closed: (FELIX-2160) SigilProjectEditor can get out of sync if editting in text view and in rich edi
[
https://issues.apache.org/jira/browse...nels:all-tabpanel
]
David Savage closed FELIX-2160.
Re: Issue 97 in redis: Ubuntu 9.10 /etc/init.d/redis-server [stop|restart] does not force a sync to
Updates: Status: Verified Comment #4 on issue 97 by antirez: Ubuntu 9.10 /etc/init.d/redis-server [stop|restart] does not force a sync to disk http://code.google.com/p/redis/issues/detail?id=97 this is now fixed (as Chris suggested)
Re: Difference in output
Basically, there's a few places where CouchDB will give you "id" and "rev" instead of "_id" and "_rev". You will have to special-case those. Also, this question should be on the use### @couchdb.apache.org mailing list. You can subscribe to that from the couchdb website. Wout. On Jun 23, 2010, at 9:32 , adyut wrote: Hi everybody, any guidance for this from anybody!!!! Thanks Adyut On Jun 21, 3:19 pm, adyut <adyu### @gmail.com> wrote: > Hi all, > > I am very new to the CouchDB and really liked the idea. While I was > trying to use it I found this, when I fire an URL (RESTUrl) to create > a doc -- > URL :: PUT http://127.0.0.1:5984/my_first_db/four > > OUTPUT :: > {"ok":true,"id":"four","rev":"1-967a00dff5e02add41819138abb3284d"} > > it's created successfully then I tried to access it > URL :: GET http://127.0.0.1:5984/my_first_db/four > > OUTPUT :: {"_id":"four","_rev":"1-967a00dff5e02add41819138abb3284d"} > > I got the data.... and problem is, please notice the keys in output in > both cases. In first keys "id" and "rev " are without underscore > "_",and while accessing they came with an underscore. In my project I > am using a global variable initialized with say"_rev" and using it > everywhere in project. This is an issue for me because I have > requirement where first I am checking whether doc is exist or not if > not create one and use it. Now I have two options > 1)creating to 2 global variables ....... OR > 2)Fire GET immediately after PUT.... > > Is there any other better way to handle the situation... If the > question is already answered please give me the pointer to the answer. > > Thanks in advance > Adyut
puppet (puppet apply) and reporting and fact sync
If I run in the disconnected mode using 'puppet' or 'puppet apply', is it possible to still have reports and facts synced to a central server? I've tried and it doesn't appear to be so, but I thought I would ask to make sure. Marc Zampetti
Performance difference between two builds.
Hi Folks
We need to find the performance difference between two Java builds in very
deep granular level (up to methods). Can you guys please let me know how
Jmeter can help in this case? (If Jmeter is not capable enough, would you
guys recommend any other tool?)
(Ex:
If there is a runtime difference like,
running time of MyClass.method() in buildX = 1.2 sec
running time of MyClass.method() in buildY = 1.3 sec
then, this should be highlighted in a report.
)
Regards
Mani
Difference between iBatis and myibatis
Iam new to ibatis Can anyone tell me wat is the difference between ibatis and myibatis? Thanks. Regards Senthil Kumar Sekar
Calculating Difference Between Documents
Let's say I have some embedded documents, `my_integers`, and I want to
calculate and display the difference between them
{ "_id" : ObjectId("4c5a86fcf277f91f88000026"), "created_at" : "Thu
Aug 05 2010 02:40:12 GMT-0700 (PDT)", "my_integers" : [
{
"_id" : ObjectId("4c5a86fcf277f91f88000024"),
"value": "1"
},
{
"_id" : ObjectId("4c5a86fcf277f91f88000025"),
"value" : 5
},
{
"_id" : ObjectId("4c5a86fcf277f91f88000026"),
"value" : 10
}
] }
So the output should be
[-4, 5] because -4 is the difference between the first and second, and
4 is the difference the second and third.
Any easy way to do this?
Why there is a difference between wsdl2java and jaxb2 generation?
Hi, I have tried to generate java classes with two different ways: - from a schema xsd with JAXB2.1 and run XJC and generate java classes. - from a wsdl file (with a schema import) and i generate java classes with wsdl2java command using CXF. The problem is about a java class where there is a difference: The difference is the content attribute and its getter and setter which is missing with the wsdl2java command method whereas with the jaxb method it is present. // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs // See http://java.sun.com/xml/jaxb http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BIN", **propOrder = { "content"** }) @XmlSeeAlso({ ED.class }) public abstract class BIN { **@XmlValue protected String content;** @XmlAttribute protected BinaryDataEncoding representation; /** public String getContent() { return content; } /** * * Binary data is a raw block of bits. Binary data is a * protected type that MUST not be used outside the data * type specification. * * * @param value * allowed object is * {@link String } * */ **public void setContent(String value) { this.content = value; }** /** * Gets the value of the representation property. * * @return * possible object is * {@link BinaryDataEncoding } * */ public BinaryDataEncoding getRepresentation() { if (representation == null) { return BinaryDataEncoding.TXT; } else { return representation; } } /** * Sets the value of the representation property. * * @param value * allowed object is * {@link BinaryDataEncoding } * */ public void setRepresentation(BinaryDataEncoding value) { this.representation = value; } } I need this attribute into this class with wsdl2java method. This is my wsdl2java command: call wsdl2java -Debug -verbose -exsh true -autoNameResolution -p %PACKAGE_BASE%.pa -p "urn:hl7-org:v3"=%PACKAGE_BASE%.patient.hl -d %PROJECT_HOME%\src\main\java\ %WSDL_HOME%\Test.wsdl thank you very much
Metro vs. CXF difference in enumerating schemas within a WSDL
Team, I recently noticed a problem perhaps related to Tom's[1] regarding the schemaLocation value in a JAXB binding file[2]. CXF enumerates schemas using Schema Component Descriptors (SCD's) within a WSDL differently from Metro, resulting in JAXB binding files being incompatible between the two: mybindingfile.xjb: <!--CXF --> <jaxb:bindings schemaLocation="ShoppingService.wsdl#types1" node="/xs:schema"> <!--Metro --> <jaxb:bindings schemaLocation="ShoppingService.wsdl#types?schema1" node="/xs:schema"> Where 1,2,3 in both cases refers to the 1-based count of the xsd:schema within the single wsdl:type. The XJC compiler during the wsdl2java generation process will reject the former for Metro and the latter for CXF. I'd like this to be standardized so the binding files would be portable between the two frameworks but I'm not sure which framework is correct. The CXF method of incrementing the number next to the types seems inaccurate because there can be only one wsdl:types. On the other hand, Metro's usage of the ? as a delimiter does not appear to be defined in the SCD candidate recommendation (http://www.w3.org/TR/xmlschema-ref/#section-scd-syntax). Granted, the CXF dev list might not be the most unbiased of forums, but any idea which team is "wrong"? Thanks, Glen [1] http://cxf.547215.n5.nabble.com/Inval...395.html#a1046395 [2] http://www.jroller.com/gmazza/entry/c...facts#BindingFile [3] http://www.w3.org/TR/xmlschema-ref/#section-scd-syntax
nested collection mapping - difference between 'id' and 'result' elements
I'm using mybatis 3.0.1, PostgreSQL 8.4 and have some trouble
understanding the difference between 'id' and 'result' elements. take
a look at this mapping:
<select id="getTestStories" resultMap="rmTestStory">
SELECT story_id, author, vote_type_id, vote_count FROM (
VALUES
(1, 'author1', 2, 1),
(1, 'author1', 3, 2),
(1, 'author1', 4, 4),
(2, 'author2', 1, 1),
(2, 'author2', 3, 2),
(2, 'author2', 4, 2)
) AS Votes (story_id, author, vote_type_id, vote_count)
ORDER BY 1 ASC
</select>
<resultMap id="rmTestStory" type="TestStory">
<id property="id" column="story_id"/>
<result property="author" column="author"/>
<collection property="voteCounts" ofType="VoteCount"
javaType="ArrayList">
<result property="voteTypeId" column="vote_type_id"/>
<result property="count" column="vote_count"/>
</collection>
</resultMap>
the important part is <result property="voteTypeId"
column="vote_type_id"/>. if it is set as an 'id' element, I get funny
results - for story with story_id = 2 and vote_type_id = 4 the
vote_count is 4 which is obviously wrong. on the other hand the
results are correct if I set the same mapping as 'result' element.
Re: Problem with the Cursor in the java driver. A mongo-db java driver Bug ?
Thanks you for your answer Eliot. After a lot of try and error i
finally find the issue.
You're right with the timeout. I just reduced the batch size in my
query : "DBCursor cur = this.mongoDBCollectionProducts.find(new
BasicDBObject("is_active", true)).batchSize(100);" and now everything
is working fine.
I belive the cursor connection get a timeout between two calls.
What is really stange is that i did not get any exception to warn me
about the expiration of the cursor...
An hint i'm going to keep in mind for all my db projects. really
touchy...
Thank you for your help
On 3 août, 18:10, Eliot Horowitz <eliotho### @gmail.com> wrote:
Mongo cursors timeout after 10 minutes.
So if the downloading is slow you'l see that.
What version are you using? You should be getting a cursor timed
out exception
On Tue, Aug 3, 2010 at 12:07 PM, sebastien <seb.### @gmail.com>
wrote:
> Hello,
> Im a using the java driver for mongo-db and each night, i need
to
> iterate through all the items of my collection (aprox. 10000
items) to
> make some special process (image caching).
> My code is very simple :
> DBCursor cur = this.mongoDBCollectionProducts.find(new
> BasicDBObject("is_active", true));
> System.out.println("NB items: "+cur.count());
> int processed_items = 0;
> while (cur.hasNext())
> {
> DBObject obj = cur.next();
> // My custom process on the object.
> //...
> processed_items ++;
> }
> System.out.println("Processed items : "+processed_items
> +" ("+cur.count()+")");
> The problem is that the cusor did not iterate through all the
items of
> my data set... The "hasNext()" method is returning false, but
all the
> objects have not been processed.
> The outpout is like :
> NB items : 9799
> Processed items : 1575 (9799)
> No exception thrown, nothing else on the output.
> I tried to "force" the cusor to go through the all the items by
> replacing the "while" with a "for (int i=0; i<cur.count();
i++)" and i
> get an error "Exception in thread "Thread-0"
> java.lang.RuntimeException: no more
> at
com.mongodb.DBApiLayer$Result.next(DBApiLayer.java:347)
> ...
> "
> As a second test, i just removed the part of my process witch is
a bit
> "long" : downloading an image from a website, croping it and
storing
> it back to a cache server and ... miracle ! the cursor iterate
through
> all the data set...
> I precise, the commented process has nothing to do with
mongo-db. it's
> just slowing down the process between two iterations.
> I am really despaired, does anybody already has such a problem
or has
> an idea for me ?
> Best regards,
> --
>
Created: (PIG-1506) Need to clarify the difference between null handling in JOIN and COGROUP
Need to clarify the difference between null handling in JOIN and COGROUP
Re: Safe way to backup an RDB file
Can an AOF file be backed up with a simple 'cp' command? Or must we create a dump file to do a backup? Thanks, David On Jul 27, 3:39 pm, Salvatore Sanfilippo <ant### @gmail.com> wrote: On Tue, Jul 27, 2010 at 9:31 AM, teleo <lev.### @gmail.com> wrote: > What is the safest way to backup an RDB file in Redis? In Redis .rdb files can be copied while the server is running without any need of lock. No corruption is possible since the new file is always saved in a temp location and atomically rename(2)d to the new location. So just use "cp" :) Cheers, Salvatore > Thanks, > T > -- >
Assigned: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timest
[
https://issues.apache.org/jira/browse...nels:all-tabpanel
]
Knut Anders Hatlen reassigned DERBY-3856:
| |||||
(41 lines) Aug 26, 2010 14:15
(56 lines) Aug 26, 2010 14:46
(75 lines) Aug 26, 2010 14:50
(83 lines) Aug 26, 2010 15:11
(102 lines) Aug 26, 2010 15:16