ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Antonov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-11812) control.sh ignores quotes in passed arguments
Date Fri, 26 Apr 2019 08:30:00 GMT
Sergey Antonov created IGNITE-11812:

             Summary: control.sh ignores quotes in passed arguments
                 Key: IGNITE-11812
                 URL: https://issues.apache.org/jira/browse/IGNITE-11812
             Project: Ignite
          Issue Type: Bug
            Reporter: Sergey Antonov
             Fix For: 2.8

Control.sh should consider quotes in incoming arguments. i.e. I expect that {{control.sh --baseline
set "p1,p2,p3","p4,p5,p6" --yes}} set BLT with two nodes with consistent ids: {{p1,p2,p3}}
and {{p4,p5,p6}}, but now it tries to set BLT with six nodes {{p1}}, {{p2}}, {{p3}}, {{p4}},
{{p5}}, {{p6}}

Reproducer. (Add this test to {{CommandHandlerParsingTest}})

    public void testQuotesWillNotIgnored() throws Exception {
        CommandHandler hnd = new CommandHandler();

        Arguments args = hnd.parseAndValidate(

        assertEquals(BASELINE, args.command());
        assertEquals(BaselineCommand.SET, args.baselineArguments().getCmd());
        // FIx me: expected 2, actual 6
        assertEquals(2, args.baselineArguments().getConsistentIds().size());
        assertEquals("1,2,3", args.baselineArguments().getConsistentIds().get(0));
        assertEquals("3,2,1", args.baselineArguments().getConsistentIds().get(1));

This message was sent by Atlassian JIRA

View raw message