Displaying #maven-dev/2017-02-28.log:

Tue Feb 28 03:52:50 2017  theRealGent:Joined the channel
Tue Feb 28 07:03:29 2017  Michael-O:Joined the channel
Tue Feb 28 16:33:09 2017  tibor_:Joined the channel
Tue Feb 28 17:52:49 2017  Michael-O:Joined the channel
Tue Feb 28 18:05:05 2017  rfscholte:Joined the channel
Tue Feb 28 18:35:17 2017  hboutemy:Joined the channel
Tue Feb 28 20:08:06 2017  tibor_:Joined the channel
Tue Feb 28 20:33:29 2017  olamy:Joined the channel
Tue Feb 28 21:12:58 2017  stephenc:@hboutemy why why why is the maven site depending on all -SNAPSHOTs
Tue Feb 28 21:13:23 2017  stephenc:tibor_ said For instance my compaly is using WildFly bound to
Tue Feb 28 21:13:25 2017  stephenc: wildcard port already
Tue Feb 28 21:13:46 2017  stephenc:tibor_ you are confusing the wildcard IP with the "assign me a random unused port"
Tue Feb 28 21:14:50 2017  tibor_:no, i dont
Tue Feb 28 21:15:04 2017  stephenc:how not?
Tue Feb 28 21:15:18 2017  stephenc:if I bind a server socket to 0.0.0.0:0
Tue Feb 28 21:15:25 2017  tibor_:I want to prevent from receiving data from webapp bound to 0000
Tue Feb 28 21:15:34 2017  stephenc:that will select a random port that is not in use
Tue Feb 28 21:15:40 2017  stephenc:and bind that port on all interfaces
Tue Feb 28 21:15:50 2017  tibor_:new ServerSocket().getLocalPort() then close()
Tue Feb 28 21:16:01 2017  tibor_:new ServerSocket(0).getLocalPort()
Tue Feb 28 21:16:11 2017  tibor_:this gives me unused port
Tue Feb 28 21:16:15 2017  stephenc:yes that will give you a random unused port
Tue Feb 28 21:16:23 2017  tibor_:and then
Tue Feb 28 21:16:33 2017  tibor_:i can use server socket again
Tue Feb 28 21:16:35 2017  stephenc:use the serversocket
Tue Feb 28 21:16:39 2017  tibor_:yes
Tue Feb 28 21:16:42 2017  stephenc:don't throw it away
Tue Feb 28 21:16:57 2017  tibor_:aha, ok
Tue Feb 28 21:17:24 2017  stephenc:if you throw the socket away, it will not be freed immediately
Tue Feb 28 21:17:28 2017  tibor_:I want to make last test on FreeBSD with subprocesses
Tue Feb 28 21:17:38 2017  tibor_:I know
Tue Feb 28 21:17:46 2017  tibor_:release after 3 or 5 min
Tue Feb 28 21:18:10 2017  tibor_:OS reserves the port due to TCP issue ...
Tue Feb 28 21:18:12 2017  stephenc: * Creates a server socket, bound to the specified port. A port number
Tue Feb 28 21:18:12 2017  stephenc: * of {@code 0} means that the port number is automatically
Tue Feb 28 21:18:12 2017  stephenc: * allocated, typically from an ephemeral port range. This port
Tue Feb 28 21:18:12 2017  stephenc: * number can then be retrieved by calling {@link #getLocalPort getLocalPort}.
Tue Feb 28 21:18:48 2017  tibor_:new ServerSocket(0) ... use until end of Plugin
Tue Feb 28 21:18:49 2017  stephenc:What you want in surefire controller is to start by creating the server socket and getting the port
Tue Feb 28 21:18:52 2017  stephenc:yes
Tue Feb 28 21:18:57 2017  tibor_:yes
Tue Feb 28 21:19:04 2017  stephenc:at least until the end of the plugin execution
Tue Feb 28 21:19:08 2017  tibor_:question
Tue Feb 28 21:19:16 2017  stephenc:when the plugin execution completes you close the server socket
Tue Feb 28 21:19:35 2017  stephenc:next execution can allocate a new server socket that gets a new (free randomly allocated) port
Tue Feb 28 21:19:54 2017  stephenc:what's your question?
Tue Feb 28 21:20:03 2017  tibor_:can I send data from multiple client sockets to the same server? I think server differeniates by remote port
Tue Feb 28 21:20:16 2017  stephenc:yes
Tue Feb 28 21:20:23 2017  stephenc:the server socket is just an accept
Tue Feb 28 21:20:24 2017  tibor_:this is cool
Tue Feb 28 21:20:37 2017  stephenc:you start a thread that just accepts connections
Tue Feb 28 21:20:39 2017  tibor_:because server port is just one
Tue Feb 28 21:20:54 2017  tibor_:for the lifecycle of plugin
Tue Feb 28 21:20:58 2017  stephenc:each incoming connection will give you a socket on your end that you use for I/O
Tue Feb 28 21:21:16 2017  stephenc:tibor_ exactly why I was like "why don't you just do this"
Tue Feb 28 21:21:42 2017  tibor_:I would, but I want to make last test on freebsd
Tue Feb 28 21:21:54 2017  tibor_:I want to understand where the deadlock is
Tue Feb 28 21:22:09 2017  tibor_:according to logs there is a deadlock
Tue Feb 28 21:22:11 2017  stephenc:tibor_ it should be relatively easy to wrap process creation around this so that you get the streams you need
Tue Feb 28 21:22:41 2017  tibor_:I know, I can use CommandlineUtils from Shared Utils
Tue Feb 28 21:23:05 2017  tibor_:are we in hurry?
Tue Feb 28 21:24:17 2017  tibor_:No sorry I cannot use executeCommandLineAsCallable, becuse it uses java.lang.Process
Tue Feb 28 21:24:35 2017  tibor_:An abstraction will be created
Tue Feb 28 21:25:49 2017  tibor_:@stephenc: Before using sockets we should make one refactoring I did from December. I will provide PR, to understand what I mean.
Tue Feb 28 21:28:07 2017  tibor_:Michael-O: How are you?
Tue Feb 28 21:42:03 2017  tibor_:@stephenc: Is the Vote still ongoing?
Tue Feb 28 21:47:44 2017  tibor_:Michael-O: Can we please run build now last time? I committed in Utils branch and Surefire branch as well.
Tue Feb 28 21:58:01 2017  tibor_:@stephenc: Sending events from forked jvm is horrible code spread over the code and therefore I created Encoder and Decoder class with another data encoding base64.
Tue Feb 28 21:58:52 2017  stephenc:tibor_ I am currently trying to sort out getting the site published so I can create the announce email
Tue Feb 28 22:00:57 2017  tibor_:This solves 3 issues: better code encapsulation, wider encoding than one byte e.g. UTF-8, and magic number in the begining of each event from prevents issues in Arquillian and critical issue in Jira (currently bit orianted stream has conflic with JVM native dump in std/out)
Tue Feb 28 22:02:01 2017  tibor_:-verbose:gc sometimes goes to native std/out and breaks communication, and we are able to prevent from this using magic number
Tue Feb 28 22:21:16 2017  Michael-O:tibor_: I will update all components and run the build tomorrow
Tue Feb 28 22:21:34 2017  tibor_:ok
Tue Feb 28 22:24:30 2017  tibor_:Michael-O: Today I configured Jenkins in my office. It's cool tool, I like it. Are you more coding or testing?
Tue Feb 28 22:24:56 2017  Michael-O:More coding
Tue Feb 28 22:25:07 2017  Michael-O:but testing is serious business too
Tue Feb 28 22:25:12 2017  tibor_:C/C++ or Java SE/EE?
Tue Feb 28 22:26:28 2017  tibor_:In testing I like Arquillian and Deltaspike.
Tue Feb 28 22:29:36 2017  Michael-O:Mostly Java, randomly C and Fortran if necessary
Tue Feb 28 22:29:56 2017  Michael-O:Though, my C and Fortran level is low to medium
Tue Feb 28 22:34:38 2017  Michael-O:tibor_: started build
Tue Feb 28 22:42:58 2017  Michael-O:tibor_: tests done
Tue Feb 28 22:43:12 2017  Michael-O:12 run, 0 failed, 3 errors, 0 skikked
Tue Feb 28 22:43:14 2017  Michael-O:skipped
Tue Feb 28 22:43:23 2017  tibor_:there is no fix for sys prop duplicates
Tue Feb 28 22:43:33 2017  tibor_:so few may fail
Tue Feb 28 22:43:44 2017  tibor_:but maybe because of mvn 3.5.0
Tue Feb 28 22:43:56 2017  tibor_:I can commit the fix
Tue Feb 28 22:44:03 2017  tibor_:from master
Tue Feb 28 22:44:13 2017  Michael-O:the branch is just ForkModeIT
Tue Feb 28 22:44:18 2017  tibor_:yes
Tue Feb 28 22:44:26 2017  Michael-O:the prop issue was a different IT
Tue Feb 28 22:44:26 2017  tibor_:tomorrow?
Tue Feb 28 22:44:35 2017  tibor_:was it?
Tue Feb 28 22:44:39 2017  Michael-O:Yes
Tue Feb 28 22:44:47 2017  Michael-O:it was TestNG related
Tue Feb 28 22:44:54 2017  Michael-O:there is no TestNG failure here
Tue Feb 28 22:45:01 2017  tibor_:ah yes
Tue Feb 28 22:45:33 2017  tibor_:can you upload the log?
Tue Feb 28 22:45:54 2017  Michael-O:Tarball uploaded
Tue Feb 28 22:46:03 2017  tibor_:thx
Tue Feb 28 22:46:09 2017  Michael-O:please have a look, will be back shortly
Tue Feb 28 22:46:20 2017  tibor_:what is the link?
Tue Feb 28 22:46:44 2017  tibor_:i have it
Tue Feb 28 22:56:29 2017  tibor_:Michael-O: we have found problem
Tue Feb 28 22:56:41 2017  tibor_:1488321668641 CommandLineUtils before CLI execute 23930466
Tue Feb 28 22:56:51 2017  tibor_:1488321689126 CommandLineUtils after CLI execute 23930466
Tue Feb 28 22:57:46 2017  tibor_:exec takes 20.485 second and Process object is unavailable and streams are not available, and thus comminication is dead
Tue Feb 28 22:58:13 2017  tibor_:This is different experience we had with sleep 3
Tue Feb 28 22:58:40 2017  tibor_:because there ProcessBuilder was fast started
Tue Feb 28 23:00:16 2017  tibor_:These logs are from class CommandLIneUtils from module Shared Utils.
Tue Feb 28 23:00:54 2017  tibor_:Did we use ProcessBuilder correctly?
Tue Feb 28 23:08:53 2017  Michael-O:reading...
Tue Feb 28 23:09:36 2017  Michael-O:I don't think so, do you remember the patch Christian proposed
Tue Feb 28 23:09:52 2017  Michael-O:wen need to split up command and args, then it will block properly
Tue Feb 28 23:10:48 2017  tibor_:let me see
Tue Feb 28 23:13:53 2017  Michael-O:I am going offline now. If you want me to test something else, drop me an email
Tue Feb 28 23:45:52 2017  Michael-O:Joined the channel

Comments