[
https://issues.apache.org/jira/browse/HTRACE-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14285100#comment-14285100
]
Colin Patrick McCabe commented on HTRACE-53:
--------------------------------------------
bq. What is mini_htraced?
It's for testing, similar to {{MiniDFSCluster}} in HDFS.
bq. Why we need that when startup is fast? It is in the client process so only
useable by client, is that it?
It's easier to have everything in the same process so we can fiddle with it.
Like we can set test flags and stuff. that would be more difficult if we were
spawning another process.
bq. If I set this from the java client, bld.Cnf[conf.HTRACE_WEB_ADDRESS] = ":0"
// use a random port for the REST server, for my web.address, how i figure
where the server came up?
That's a good point. We'll have to figure out a solution for that.
The simplest way might be to have the server print out this port information on
stdout when it starts up. Then the java code can parse that.
If we want to get something off the ground fast, we can just use a fixed port
for now and punt to a follow-up.
bq. Patch LGTM. +1 I did not try it. Suggest commit and we'll sort it out after
if issues.
thanks
> add unit tests for bin/htrace command, htraced REST API
> -------------------------------------------------------
>
> Key: HTRACE-53
> URL: https://issues.apache.org/jira/browse/HTRACE-53
> Project: HTrace
> Issue Type: Improvement
> Affects Versions: 3.2.0
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Attachments: HTRACE-53.001.patch, HTRACE-53.002.patch
>
>
> Add unit tests for the {{bin/htrace}} command and htraced REST API.
> Basically a {{MiniHTraceDCluster}} object that we can launch and then run
> REST queries against.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)