#musicbrainz-devel

/

      • ruaok
        the rate limiter runs on a different IP
      • chirlu`
        Ah, OK.
      • I wondered because the ratelimiter access is the only part where the search server directly deals with sockets.
      • The normal requests are handled by the framework.
      • ruaok
        yeah, it was a good consideration
      • is there a way from a java program to invoke the GC?
      • chirlu`
        System.GC() apparently.
      • Mineo
        the openjdk management console also has a button for that, if you're using that
      • chirlu`
        Or System.gc(), rather.
      • ruaok
        well, does anyone think that invoking it every 60 seconds is a bad idea?
      • chirlu`
        Perhaps? :)
      • ruaok
        Mineo: using sun's jdk atm
      • Mineo
        ah
      • chirlu`
        I’d like to know if running GC in a stuck state removes the CLOSE_WAIT sockets.
      • (Via destructors, or what they are called in Java.)
      • ruaok
        ijabz2: can you please do me a favor?
      • ijabz2
        chirlu thats a good point because I forgot how that code works and lookong at it Im not closing the Datagram socket
      • ruaok
        can you create a new URL endpoint that runs the GC?
      • /run-gc-now-you-piece-of-shit
      • :)
      • then we can hit that URL whenever we want the GC to run
      • then we can see clearly what happens.
      • chirlu`
        ijabz2: Yes, I saw that, but if it connects to a different IP address than what we see, it can’t be that.
      • ijabz2
        ok, I;ll do that
      • ruaok
        thanks
      • chirlu`
        What we see in the netstat output, I mean.
      • ruaok
        CPU usage is climing steadily.
      • roobarb is fine (restarted recently)
      • anjali2906 joined the channel
      • anjali2906 has left the channel
      • ijabz2
        Gc may release memory used by lucene for the memory mapping of indexes but not sure if will as they are not on the heap
      • either way even if it does will just slow searches a little rather breaking anyhting so woth a try
      • ruaok nods
      • ruaok
        it sure seems like the GC isn't doing its job
      • this may not help if the GC gets stuck.
      • but if the GC doesn't fire, it might
      • though running the GC on a regular basis may it getting stuck in the first place
      • s0014 joined the channel
      • nikki
        Gentlecat: hm, the metabrainz sign up thing asks for an email address, couldn't it actually request that info from the mb account when doing oauth?
      • Gentlecat
        yeah, I can add that
      • ruaok
        I'd say auto-fill the form, but allow users to change it.
      • nikki
        (I imagine quite a few people wanting to sign up won't actually be active editors, so they'll have to create an mb account, then sign up "again" (from their point of view))
      • ijabz2
        ruaok ok ive done it, invoked using paramter gc=true
      • nikki
        yeah, I was thinking that
      • ruaok
        on any request or a specifc endpoint, ijabz2?
      • MBJenkins
        Paul Taylor: Close datagram socket after contacting rate limiter
      • ijabz2
      • anjali joined the channel
      • only from local machine, like we do frpo reloading indexes etc, is that ok
      • ruaok
        perfect
      • compiling now
      • s0014
        \nick siddharth
      • chirlu`
        s0014: Forward slash. :)
      • s0014
        Yeah, by mistake. Sorry to spam the list.
      • MBJenkins
        Paul Taylor: Added gc option to force garbage collection
      • ruaok
        heh. ijabz2 my build succeeded. how should I proceed?
      • ijabz2
        What do yo mean, same as usual I guess
      • ruaok
        your build failed.
      • ijabz2
        oh, I see
      • erm, I cant see any errors details on Jenkins ?
      • ruaok I thought there was a way to force Jenkins but cant see it, instead done a tiny bit of refactoring and done a new checkin
      • ruaok
        doing a new pull
      • s0014
        Hey, I am Siddharth Gupta, a final year BTech student. In GSOC'14, I did a Data Visualization project for CiviCRM. I was going through the Idea page, documentation as we as How to contribute. After reading some of the code, I am starting on setting up the server. I would like to know is there anything you are expecting us to do before we start talking about the project.
      • ruaok
        ijabz2: build succeeded. I'll deploy this.
      • MBJenkins
        Project search_server build #45: FIXED in 7 min 31 sec: http://ci.musicbrainz.org/job/search_server/45/
      • Paul Taylor: Tidy up of admin commands
      • ruaok
        invoking gc seems to have no effect on memory usage.
      • which is what I would roughly expect.
      • chirlu`
        But we don’t have any CLOSE_WAIT sockets now, do we?
      • ruaok
        correct, we have none
      • I may need to wait a few hours for that to occur.
      • because a watched server never crashes
      • kepstin-laptop joined the channel
      • ijabz2
        ruaok, classic bad timing Ive just had some feedback on the other bug (TreeMap Null) causing me to commit another change which will get us the neccessary debeugging if/when it happens again
      • Wil need another build and deploy, but Ill leave it you to decide if yo want to do it now or some other time
      • ruaok
        lets check one thing first...
      • what log file should I see your log messages in?
      • ijabz2
        catalina.todaysdate.log
      • ruaok
        I'm seeing a lot of
      • ijabz2
        catalina.2015--03-05.log i think
      • ruaok
        queryparser exceptions.
      • seems new
      • and there are a lot of them.
      • ijabz2
        Right, we didnt use to log these we just returned the error to user
      • Does the line before the satck trace actually show the query ?
      • Leo_Verto
        hmm, looks like an empty request to me
      • ruaok
        05-Mar-2015 16:04:38.311 WARNING [http-nio-8080-exec-16] org.musicbrainz.search.servlet.SearchServerServlet.doGet 9044705516.7897105009 AND artist:sri sai telicom maupakar/prakhar yamraaj:Cannot parse '9044705516.7897105009 AND artist:sri sai telicom maupakar/prakhar yamraaj': Lexical error at line 1, column 74. Encountered: <EOF> after : "/prakhar yamraaj"
      • Leo_Verto
        the slash?
      • MBJenkins
        Project search_server build #46: SUCCESS in 8 min 8 sec: http://ci.musicbrainz.org/job/search_server/46/
      • Paul Taylor: Log query whatever error occurs instead of just if get a parseexception in case it is the query causing the error (which I think it is in this case of SEARCH-411)
      • Siddharth__ joined the channel
      • UmkaDK joined the channel
      • ijabz2
        Leo_Verto yes it doesnt like the slash does it
      • UmkaDK_ joined the channel
      • ruaok
        just a bad client then?
      • ijabz2
        is that a http restriction not a lucene one
      • ruaok
        no clue
      • chirlu`
        I think /.../ is a regex to Lucene.
      • ijabz2
        ah yeah I was looking at lucene 3, thanks chirlu
      • ruaok
        maybe we don't want to log the queryparter errors.
      • the logs have become more spammy now.
      • not useful
      • chirlu`
        Just got a timeout.
      • ruaok
        WFM
      • chirlu`
        Happens only sometimes.
      • Anyway, the query demonstrates the /regex/ syntax. :)
      • ijabz2
        ruaok I could log invalid queries that fail parseexception, but not log the stacktrace bit
      • ruaok
        just skip invalid queries entirely
      • ijabz2
        I could also make that simpler configurable
      • Okay I can remove if you think not useful at all
      • ruaok
        yeah. not useful.
      • ijabz2
        ruaok okay done
      • kepstin-laptop
        invalid queries might be a useful dev log, but if we're running arbitrary user-supplied queries... :)
      • ruaok
        thx
      • chirlu`
        kepstin-laptop: Yes, in particular for advanced search with its many escape-needing special characters …
      • anjali joined the channel
      • Siddharth__ joined the channel
      • MBJenkins
        Paul Taylor: Do not log invalid queries that cannot be parsed.
      • ruaok
      • ijabz2
        ruaok can you get the preious line that shows the query like you did before please
      • ruaok
        ops sorry
      • JesseW joined the channel
      • 05-Mar-2015 16:50:40.726 WARNING [http-nio-8080-exec-41] org.musicbrainz.search.servlet.SearchServerServlet.doGet artist:pandora /reyli barba recording:Solo el y yo/Alguien llena mi lugar:null
      • ijabz2
        ruaok oops no sorry my mistake, its there
      • ruaok
      • anjali2906 joined the channel
      • Leo_Verto
      • ijabz2
        ruaok it those slashes again , causing the treemap error as wel
      • ruaok
        ijabz2: is that useful info?
      • ijabz2
        yeah
      • yeeeargh joined the channel
      • ruaok
        yeeeargh: give me all the ritter!
      • on both servers are in rotation. one has a new jar, the other one is on the auto killer.
      • when I get home I'm going to shove all the traffic down the one with the new jar in hopes of inducing the error and then hitting it with a gc command
      • ijabz2
        okay, Im out for a few hours myself now
      • yeeeargh
      • ruaok joined the channel
      • chirlu`
        [17:28] <yeeeargh> ruaok: http://www.ritter-sport.de/blog/wp-content/uplo... are you sure?
      • ruaok
        FUCK TO THE NO.
      • diana_olhovik joined the channel
      • anjali joined the channel
      • D4RK-PH0ENiX joined the channel
      • diana_olhovik_ joined the channel
      • anjali joined the channel
      • s0014
        <s0014> Hey, I am Siddharth Gupta, a final year BTech student. In GSOC'14, I did a Data Visualization project for CiviCRM. I was going through the Idea page, documentation as we as How to contribute. After reading some of the code, I am starting on setting up the server. I would like to know is there anything you are expecting us to do before we start talking about the project.
      • derwin
        hi s0014 :)
      • s0014
        Hi derwin, I have been looking at the issue tracker, and would now to understand what all I should do before discussing the ideas I have for the project.
      • s1991 joined the channel