[jira] [Updated] (GEODE-8916) The gfsh export stack traces command should include the locators

2021-02-03 Thread Karen Smoler Miller (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-8916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karen Smoler Miller updated GEODE-8916:
---
Description: 
The gfsh export stack traces command should include the locators, but only 
includes the servers.

Here is an excerpt from a slack conversation showing the behavior:
{noformat}
Shelley Hughes-Godfrey  6:48 PM

I have a question about gfsh export stack-traces ...

"list members" shows me servers and locators ...

gfsh>list members
Member Count : 3
  Name| Id
- | 

gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
gemfire-cluster-locator-0 | 
xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000

But, if I don't specify members on the export stack-traces command, I just get 
the stacks for the servers.

gfsh>export stack-traces
stack-trace(s) exported to file: /path/stacktrace_1612316330340
On host : ...

Specifying a locator returns "No Members found"

gfsh>export stack-traces --member=gemfire-cluster-locator-0
No Members Found




Also, it looks like copy-paste was done from export logs => export stack-traces 
(for --members and --groups).


  was:
The gfsh export stack traces command should include the locators, but only 
includes the servers.

Here is an excerpt from a slack conversation showing the behavior:
{noformat}
Shelley Hughes-Godfrey  6:48 PM

I have a question about gfsh export stack-traces ...

"list members" shows me servers and locators ...

gfsh>list members
Member Count : 3
  Name| Id
- | 

gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
gemfire-cluster-locator-0 | 
xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000

But, if I don't specify members on the export stack-traces command, I just get 
the stacks for the servers.

gfsh>export stack-traces
stack-trace(s) exported to file: /path/stacktrace_1612316330340
On host : ...

Specifying a locator returns "No Members found"

gfsh>export stack-traces --member=gemfire-cluster-locator-0
No Members Found

Barry Oglesby  2 hours ago
That command excludes the locators. It uses this method in ManagementUtils to 
get just the normal members:

public static Set getAllNormalMembers(InternalCache cache) {
  return new HashSet(
  cache.getDistributionManager().getNormalDistributionManagerIds());
}



{noformat}


> The gfsh export stack traces command should include the locators
> 
>
> Key: GEODE-8916
> URL: https://issues.apache.org/jira/browse/GEODE-8916
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Barrett Oglesby
>Priority: Major
>  Labels: pull-request-available
>
> The gfsh export stack traces command should include the locators, but only 
> includes the servers.
> Here is an excerpt from a slack conversation showing the behavior:
> {noformat}
> Shelley Hughes-Godfrey  6:48 PM
> I have a question about gfsh export stack-traces ...
> "list members" shows me servers and locators ...
> gfsh>list members
> Member Count : 3
>   Name| Id
> - | 
> 
> gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
> gemfire-cluster-locator-0 | 
> xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
> gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000
> But, if I don't specify members on the export stack-traces command, I just 
> get the stacks for the servers.
> gfsh>export stack-traces
> stack-trace(s) exported to file: /path/stacktrace_1612316330340
> On host : ...
> Specifying a locator returns "No Members found"
> gfsh>export stack-traces --member=gemfire-cluster-locator-0
> No Members Found
> Also, it looks like copy-paste was done from export logs => export 
> stack-traces (for --members and --groups).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (GEODE-8916) The gfsh export stack traces command should include the locators

2021-02-03 Thread Karen Smoler Miller (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-8916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karen Smoler Miller updated GEODE-8916:
---
Description: 
The gfsh export stack traces command should include the locators, but only 
includes the servers.

Here is an excerpt from a slack conversation showing the behavior:
{noformat}
Shelley Hughes-Godfrey  6:48 PM

I have a question about gfsh export stack-traces ...

"list members" shows me servers and locators ...

gfsh>list members
Member Count : 3
  Name| Id
- | 

gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
gemfire-cluster-locator-0 | 
xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000

But, if I don't specify members on the export stack-traces command, I just get 
the stacks for the servers.

gfsh>export stack-traces
stack-trace(s) exported to file: /path/stacktrace_1612316330340
On host : ...

Specifying a locator returns "No Members found"

gfsh>export stack-traces --member=gemfire-cluster-locator-0
No Members Found

Barry Oglesby  2 hours ago
That command excludes the locators. It uses this method in ManagementUtils to 
get just the normal members:

public static Set getAllNormalMembers(InternalCache cache) {
  return new HashSet(
  cache.getDistributionManager().getNormalDistributionManagerIds());
}



{noformat}

  was:
The gfsh export stack traces command should include the locators, but only 
includes the servers.

Here is an excerpt from a slack conversation showing the behavior:
{noformat}
Shelley Hughes-Godfrey  6:48 PM

I have a question about gfsh export stack-traces ...

"list members" shows me servers and locators ...

gfsh>list members
Member Count : 3
  Name| Id
- | 

gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
gemfire-cluster-locator-0 | 
xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000

But, if I don't specify members on the export stack-traces command, I just get 
the stacks for the servers.

gfsh>export stack-traces
stack-trace(s) exported to file: /path/stacktrace_1612316330340
On host : ...

Specifying a locator returns "No Members found"

gfsh>export stack-traces --member=gemfire-cluster-locator-0
No Members Found

Barry Oglesby  2 hours ago
That command excludes the locators. It uses this method in ManagementUtils to 
get just the normal members:

public static Set getAllNormalMembers(InternalCache cache) {
  return new HashSet(
  cache.getDistributionManager().getNormalDistributionManagerIds());
}

Shelley Hughes-Godfrey  1 hour ago

So, I also ran "export logs" with --member=

And that works

gfsh>list members
Member Count : 3
  Name| Id
- | 

gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
gemfire-cluster-locator-0 | 
xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000

gfsh>export logs --member=gemfire-cluster-locator-0
Logs exported to the connected member's file system: 
/path/exportedLogs_1612374651595.zip

Barry Oglesby  44 minutes ago

The ExportLogsCommand gets all the members including the locators:

Set targetMembers = getMembersIncludingLocators(groups, 
memberIds);

I tried a test by changing ExportStackTraceCommand.exportStackTrace:

From:

Set targetMembers = getMembers(group, memberNameOrId);

To:

Set targetMembers = getMembersIncludingLocators(group, 
memberNameOrId);

And the locator stack was exported:

*** Stack-trace for member locator at 2021/02/03 10:01:28.824 ***
{noformat}


> The gfsh export stack traces command should include the locators
> 
>
> Key: GEODE-8916
> URL: https://issues.apache.org/jira/browse/GEODE-8916
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Barrett Oglesby
>Priority: Major
>  Labels: pull-request-available
>
> The gfsh export stack traces command should include the locators, but only 
> includes the servers.
> Here is an excerpt from a slack conversation showing the behavior:
> {noformat}
> Shelley Hughes-Godfrey  6:48 PM
> I have a question about gfsh export stack-traces ...
> "list members" shows me servers and locators ...
> gfsh>list members
> Member Count : 3
>   Name| Id
> 

[jira] [Updated] (GEODE-8916) The gfsh export stack traces command should include the locators

2021-02-03 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-8916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated GEODE-8916:
--
Labels: pull-request-available  (was: )

> The gfsh export stack traces command should include the locators
> 
>
> Key: GEODE-8916
> URL: https://issues.apache.org/jira/browse/GEODE-8916
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Barrett Oglesby
>Priority: Major
>  Labels: pull-request-available
>
> The gfsh export stack traces command should include the locators, but only 
> includes the servers.
> Here is an excerpt from a slack conversation showing the behavior:
> {noformat}
> Shelley Hughes-Godfrey  6:48 PM
> I have a question about gfsh export stack-traces ...
> "list members" shows me servers and locators ...
> gfsh>list members
> Member Count : 3
>   Name| Id
> - | 
> 
> gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
> gemfire-cluster-locator-0 | 
> xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
> gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000
> But, if I don't specify members on the export stack-traces command, I just 
> get the stacks for the servers.
> gfsh>export stack-traces
> stack-trace(s) exported to file: /path/stacktrace_1612316330340
> On host : ...
> Specifying a locator returns "No Members found"
> gfsh>export stack-traces --member=gemfire-cluster-locator-0
> No Members Found
> Barry Oglesby  2 hours ago
> That command excludes the locators. It uses this method in ManagementUtils to 
> get just the normal members:
> public static Set getAllNormalMembers(InternalCache cache) 
> {
>   return new HashSet(
>   cache.getDistributionManager().getNormalDistributionManagerIds());
> }
> Shelley Hughes-Godfrey  1 hour ago
> So, I also ran "export logs" with --member=
> And that works
> gfsh>list members
> Member Count : 3
>   Name| Id
> - | 
> 
> gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
> gemfire-cluster-locator-0 | 
> xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
> gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000
> gfsh>export logs --member=gemfire-cluster-locator-0
> Logs exported to the connected member's file system: 
> /path/exportedLogs_1612374651595.zip
> Barry Oglesby  44 minutes ago
> The ExportLogsCommand gets all the members including the locators:
> Set targetMembers = getMembersIncludingLocators(groups, 
> memberIds);
> I tried a test by changing ExportStackTraceCommand.exportStackTrace:
> From:
> Set targetMembers = getMembers(group, memberNameOrId);
> To:
> Set targetMembers = getMembersIncludingLocators(group, 
> memberNameOrId);
> And the locator stack was exported:
> *** Stack-trace for member locator at 2021/02/03 10:01:28.824 ***
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (GEODE-8916) The gfsh export stack traces command should include the locators

2021-02-03 Thread Karen Smoler Miller (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-8916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karen Smoler Miller updated GEODE-8916:
---
Component/s: docs

> The gfsh export stack traces command should include the locators
> 
>
> Key: GEODE-8916
> URL: https://issues.apache.org/jira/browse/GEODE-8916
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Barrett Oglesby
>Priority: Major
>
> The gfsh export stack traces command should include the locators, but only 
> includes the servers.
> Here is an excerpt from a slack conversation showing the behavior:
> {noformat}
> Shelley Hughes-Godfrey  6:48 PM
> I have a question about gfsh export stack-traces ...
> "list members" shows me servers and locators ...
> gfsh>list members
> Member Count : 3
>   Name| Id
> - | 
> 
> gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
> gemfire-cluster-locator-0 | 
> xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
> gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000
> But, if I don't specify members on the export stack-traces command, I just 
> get the stacks for the servers.
> gfsh>export stack-traces
> stack-trace(s) exported to file: /path/stacktrace_1612316330340
> On host : ...
> Specifying a locator returns "No Members found"
> gfsh>export stack-traces --member=gemfire-cluster-locator-0
> No Members Found
> Barry Oglesby  2 hours ago
> That command excludes the locators. It uses this method in ManagementUtils to 
> get just the normal members:
> public static Set getAllNormalMembers(InternalCache cache) 
> {
>   return new HashSet(
>   cache.getDistributionManager().getNormalDistributionManagerIds());
> }
> Shelley Hughes-Godfrey  1 hour ago
> So, I also ran "export logs" with --member=
> And that works
> gfsh>list members
> Member Count : 3
>   Name| Id
> - | 
> 
> gemfire-cluster-server-0  | xx.xx.x.xxx(gemfire-cluster-server-0:1):41000
> gemfire-cluster-locator-0 | 
> xx.xx.x.xxx(gemfire-cluster-locator-0:1:locator):41000 [Coordinator]
> gemfire-cluster-server-1  | xx.xx.x.xxx(gemfire-cluster-server-1:1):41000
> gfsh>export logs --member=gemfire-cluster-locator-0
> Logs exported to the connected member's file system: 
> /path/exportedLogs_1612374651595.zip
> Barry Oglesby  44 minutes ago
> The ExportLogsCommand gets all the members including the locators:
> Set targetMembers = getMembersIncludingLocators(groups, 
> memberIds);
> I tried a test by changing ExportStackTraceCommand.exportStackTrace:
> From:
> Set targetMembers = getMembers(group, memberNameOrId);
> To:
> Set targetMembers = getMembersIncludingLocators(group, 
> memberNameOrId);
> And the locator stack was exported:
> *** Stack-trace for member locator at 2021/02/03 10:01:28.824 ***
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)