index creation return timeout

62 views
Skip to first unread message

borgez

unread,
May 27, 2013, 8:33:07 AM5/27/13
to rav...@googlegroups.com
update from 2231 to 2370

and this line return timeout : 

IndexCreation.CreateIndexesAsync(typeof(DBManager).Assembly, _documentStore);

Oren Eini (Ayende Rahien)

unread,
May 27, 2013, 8:58:39 AM5/27/13
to ravendb
Just one time? or all the time?
Are you currently indexing?


--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

borgez

unread,
May 29, 2013, 7:07:16 AM5/29/13
to rav...@googlegroups.com
all time, if this comment query work.
index or del index some error.

понедельник, 27 мая 2013 г., 16:58:39 UTC+4 пользователь Oren Eini написал:

Oren Eini (Ayende Rahien)

unread,
May 29, 2013, 7:09:49 AM5/29/13
to ravendb
Can you explain a bit more, I don't understand.

borgez

unread,
Jun 3, 2013, 8:24:57 AM6/3/13
to rav...@googlegroups.com
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raven.Client.Document;
using Raven.Client.Indexes;

namespace RavenTest
{
class Program
{
static void Main(string[] args)
{
var documentStore = new DocumentStore { Url = "http://localhost:8080", DefaultDatabase = "Default" };
documentStore.Initialize();

Console.WriteLine(documentStore.OpenSession().Query<man>().Count());
using (var s = documentStore.OpenSession())
{
int i = 0;
while (i++ < 1000)
{
s.Store(new man() { age = 20, name = "tom" });
}
s.SaveChanges();
s.Query<man>().Count();
}
IndexCreation.CreateIndexes(typeof(man_ByAge).Assembly, documentStore);

}
}
public class man_ByAge : AbstractIndexCreationTask<man, manCount>
{
public man_ByAge()
{
Map = man => from c in man
select new
{
c.age
};
}
}

public class manCount
{
public string age { get; set; }
public int Count { get; set; }
}
public class man
{
public int age;
public string name;
}
}



borgez

unread,
Jun 3, 2013, 8:27:59 AM6/3/13
to rav...@googlegroups.com
client not send index to server

  <add key="Raven/AnonymousAccess" value="All"/>
Get or All



Oren Eini (Ayende Rahien)

unread,
Jun 3, 2013, 9:18:52 AM6/3/13
to ravendb
Do you run this in IIS? do you have webdav?


borgez

unread,
Jun 3, 2013, 10:07:33 AM6/3/13
to rav...@googlegroups.com
raven start from Start.cmd, program new console app.

iss expres and webdav install to but not run

понедельник, 3 июня 2013 г., 17:18:52 UTC+4 пользователь Oren Eini написал:

borgez

unread,
Jun 4, 2013, 5:32:12 AM6/4/13
to rav...@googlegroups.com
This error just me or not?

понедельник, 3 июня 2013 г., 18:07:33 UTC+4 пользователь borgez написал:

borgez

unread,
Jun 4, 2013, 8:25:20 AM6/4/13
to rav...@googlegroups.com
checkIndexExists.ExecuteRequest


borgez

unread,
Jun 4, 2013, 8:29:48 AM6/4/13
to rav...@googlegroups.com
kaspersky block only this request.

вторник, 4 июня 2013 г., 16:25:20 UTC+4 пользователь borgez написал:
checkIndexExists.ExecuteRequest


Chris Marisic

unread,
Jun 4, 2013, 8:35:28 AM6/4/13
to rav...@googlegroups.com
Security products can be pretty aggressive against applications that execute as http servers. Kaspersky exceptionally so. You need to make sure security products completely exclude RavenDB and especially it's data directories. A security product could lock a ravendb needed file and potentially toast your database or atleast some portions of it.

borgez

unread,
Jun 4, 2013, 9:39:02 AM6/4/13
to rav...@googlegroups.com
he block only http 8080 activity and only on 


public string DirectPutIndex(string name, string operationUrl, bool overwrite, IndexDefinition definition)
{
string requestUri = operationUrl + "/indexes/" + name;

var checkIndexExists = jsonRequestFactory.CreateHttpJsonRequest(
new CreateHttpJsonRequestParams(this, requestUri, "HEAD", credentials, convention)
.AddOperationHeaders(OperationsHeaders))
.AddReplicationStatusHeaders(Url, operationUrl, replicationInformer, convention.FailoverBehavior, HandleReplicationStatusChanges);


try
{
// If the index doesn't exist this will throw a NotFound exception and continue with a PUT request
checkIndexExists.ExecuteRequest(); <-------- this
if (!overwrite)
throw new InvalidOperationException("Cannot put index: " + name + ", index already exists");
}
catch (WebException e)
{
var httpWebResponse = e.Response as HttpWebResponse;
if (httpWebResponse == null || httpWebResponse.StatusCode != HttpStatusCode.NotFound)
throw;
}

вторник, 4 июня 2013 г., 16:35:28 UTC+4 пользователь Chris Marisic написал:

borgez

unread,
Jun 4, 2013, 9:40:01 AM6/4/13
to rav...@googlegroups.com
disable checking activity on 8080 and work! )



Reply all
Reply to author
Forward
0 new messages