helix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinayak Borkar <vinay...@gmail.com>
Subject Re: Resource does not have a precomputed preference list
Date Sun, 12 Jan 2014 09:07:29 GMT
Thanks Kanak.


On 1/12/14, 12:38 AM, Kanak Biscuitwala wrote:
> I can reproduce this now. It turns out that this log message is in
> IdealState#getPreferenceList, and will print when there are no live
> instances in the cluster because of a short-circuit that the auto
> rebalance algorithm does (basically saying that a partition has a null
> assignment rather than an empty one).
>
> So in short, this log message can be ignored. I created
> https://issues.apache.org/jira/browse/HELIX-355 to resolve this in
> future releases.
>
> Kanak
>
>  > Date: Sun, 12 Jan 2014 00:00:50 -0800
>  > From: vinayakb@gmail.com
>  > To: user@helix.apache.org
>  > Subject: Re: Resource does not have a precomputed preference list
>  >
>  > This is the code I use to create the resource ideal state:
>  >
>  >
>  > IdealStateBuilder isb = new AutoRebalanceModeISBuilder(resourceName);
>  > isb.setNumPartitions(nPartitions);
>  > isb.setNumReplica(nReplicas);
>  > isb.setStateModel(smType.getName());
>  > isb.setMaxPartitionsPerNode(Integer.MAX_VALUE);
>  >
> hManager.getClusterManagmentTool().addResource(hManager.getClusterName(), resourceName,
>
>  > isb.build());
>  >
>  > Vinayak
>  >
>  >
>  > On 1/11/14, 10:14 PM, Kanak Biscuitwala wrote:
>  > >
>  > > AFAIK, this log message is shown in two situations:
>  > >
>  > > - In FULL_AUTO (AUTO_REBALANCE) when the algorithm doesn't compute a
>  > > mapping for certain partitions (this should never happen)
>  > > - In SEMI_AUTO (AUTO) when you try to rebalance a resource with an
> empty
>  > > list field (i.e. preference list) for a partition in your resource
>  > >
>  > > In either case, I would say it's typically worth a warning because it's
>  > > essentially saying that you have unmapped partitions. Is this
> consistent
>  > > with your usage?
>  > >
> ------------------------------------------------------------------------
>  > > Date: Fri, 10 Jan 2014 09:21:22 -0800
>  > > Subject: Re: Resource does not have a precomputed preference list
>  > > From: g.kishore@gmail.com
>  > > To: user@helix.apache.org
>  > > CC: user@helix.incubator.apache.org
>  > >
>  > > What is the idealstate mode for the resource?. How is the resource
>  > > configured?
>  > >
>  > >
>  > > On Fri, Jan 10, 2014 at 7:13 AM, Vinayak Borkar <vinayakb@gmail.com
>  > > <mailto:vinayakb@gmail.com>> wrote:
>  > >
>  > > Hi Guys,
>  > >
>  > >
>  > > I just switched to 0.6.2-incubating from 0.6.1-incubating. I have
>  > > now started to see messages such as "Resource does not have a
>  > > precomputed preference list". This message is currently being logged
>  > > in WARN mode. Is this truly a warning, or is it just that the log
>  > > level is misclassified?
>  > >
>  > > Thanks,
>  > > Vinayak
>  > >
>  > >
>  >


Mime
View raw message