You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Kirk Lund <kl...@apache.org> on 2018/08/23 20:50:07 UTC
Admin API getMissingPersistentMembers is deprecated
There are a few distributed tests that are using deprecated Admin API to
getMissingPersistentMembers.
Does anyone know if there's a non-deprecated way to do this?
vm2.invoke(() -> {
DistributedSystemConfig config = defineDistributedSystem(getSystem(),
"");
AdminDistributedSystem adminDS = getDistributedSystem(config);
adminDS.connect();
try {
adminDS.waitToBeConnected(MINUTES.toMillis(2));
await().atMost(2, MINUTES).until(() -> {
Set<PersistentID> missingIds =
adminDS.getMissingPersistentMembers();
if (missingIds.size() != 1) {
return false;
}
for (PersistentID missingId : missingIds) {
adminDS.revokePersistentMember(missingId.getUUID());
}
return true;
});
} finally {
adminDS.disconnect();
}
});
Re: Admin API getMissingPersistentMembers is deprecated
Posted by Kirk Lund <kl...@apache.org>.
ShowMissingDiskStoresFunction is probably ok for a test to use. I'll try to
change the test to use that instead. Thanks!
On Fri, Aug 24, 2018 at 1:04 PM, Jens Deppe <jd...@pivotal.io> wrote:
> If you're looking for a non-deprecated way but still (unfortunately)
> internal then 'ShowMissingDiskStoresFunction' will probably help.
>
> --Jens
>
> On Thu, Aug 23, 2018 at 2:27 PM Dan Smith <ds...@pivotal.io> wrote:
>
> > I think this was replaced with a gfsh command that does the same thing.
> > Unfortunately, we don't have a public java API for gfsh as far as I know.
> >
> > -Dan
> >
> > On Thu, Aug 23, 2018 at 1:50 PM, Kirk Lund <kl...@apache.org> wrote:
> >
> > > There are a few distributed tests that are using deprecated Admin API
> to
> > > getMissingPersistentMembers.
> > >
> > > Does anyone know if there's a non-deprecated way to do this?
> > >
> > > vm2.invoke(() -> {
> > > DistributedSystemConfig config = defineDistributedSystem(
> > > getSystem(),
> > > "");
> > > AdminDistributedSystem adminDS = getDistributedSystem(config);
> > > adminDS.connect();
> > > try {
> > > adminDS.waitToBeConnected(MINUTES.toMillis(2));
> > >
> > > await().atMost(2, MINUTES).until(() -> {
> > > Set<PersistentID> missingIds =
> > > adminDS.getMissingPersistentMembers();
> > > if (missingIds.size() != 1) {
> > > return false;
> > > }
> > > for (PersistentID missingId : missingIds) {
> > > adminDS.revokePersistentMember(missingId.getUUID());
> > > }
> > > return true;
> > > });
> > >
> > > } finally {
> > > adminDS.disconnect();
> > > }
> > > });
> > >
> >
>
Re: Admin API getMissingPersistentMembers is deprecated
Posted by Jens Deppe <jd...@pivotal.io>.
If you're looking for a non-deprecated way but still (unfortunately)
internal then 'ShowMissingDiskStoresFunction' will probably help.
--Jens
On Thu, Aug 23, 2018 at 2:27 PM Dan Smith <ds...@pivotal.io> wrote:
> I think this was replaced with a gfsh command that does the same thing.
> Unfortunately, we don't have a public java API for gfsh as far as I know.
>
> -Dan
>
> On Thu, Aug 23, 2018 at 1:50 PM, Kirk Lund <kl...@apache.org> wrote:
>
> > There are a few distributed tests that are using deprecated Admin API to
> > getMissingPersistentMembers.
> >
> > Does anyone know if there's a non-deprecated way to do this?
> >
> > vm2.invoke(() -> {
> > DistributedSystemConfig config = defineDistributedSystem(
> > getSystem(),
> > "");
> > AdminDistributedSystem adminDS = getDistributedSystem(config);
> > adminDS.connect();
> > try {
> > adminDS.waitToBeConnected(MINUTES.toMillis(2));
> >
> > await().atMost(2, MINUTES).until(() -> {
> > Set<PersistentID> missingIds =
> > adminDS.getMissingPersistentMembers();
> > if (missingIds.size() != 1) {
> > return false;
> > }
> > for (PersistentID missingId : missingIds) {
> > adminDS.revokePersistentMember(missingId.getUUID());
> > }
> > return true;
> > });
> >
> > } finally {
> > adminDS.disconnect();
> > }
> > });
> >
>
Re: Admin API getMissingPersistentMembers is deprecated
Posted by Dan Smith <ds...@pivotal.io>.
I think this was replaced with a gfsh command that does the same thing.
Unfortunately, we don't have a public java API for gfsh as far as I know.
-Dan
On Thu, Aug 23, 2018 at 1:50 PM, Kirk Lund <kl...@apache.org> wrote:
> There are a few distributed tests that are using deprecated Admin API to
> getMissingPersistentMembers.
>
> Does anyone know if there's a non-deprecated way to do this?
>
> vm2.invoke(() -> {
> DistributedSystemConfig config = defineDistributedSystem(
> getSystem(),
> "");
> AdminDistributedSystem adminDS = getDistributedSystem(config);
> adminDS.connect();
> try {
> adminDS.waitToBeConnected(MINUTES.toMillis(2));
>
> await().atMost(2, MINUTES).until(() -> {
> Set<PersistentID> missingIds =
> adminDS.getMissingPersistentMembers();
> if (missingIds.size() != 1) {
> return false;
> }
> for (PersistentID missingId : missingIds) {
> adminDS.revokePersistentMember(missingId.getUUID());
> }
> return true;
> });
>
> } finally {
> adminDS.disconnect();
> }
> });
>